Шаблон:Substcheck
SUBST
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
This template can be used in conditional processing in other templates to detect substitutions.
If you use Module:Unsubst, you need not use this template.
Usage
If you put <includeonly>{{subst:substcheck}}</includeonly>
into a template, it will expand into one of the following, depending how the template is being viewed.
- SUBST if the template is being substituted
- {{subst:substcheck}} if the template is being transcluded
- Empty string if you are viewing the template page.
Using this template differently may yield different results; the above is the most universal way.
Lua replacement
if mw.isSubsting() then-- substituting: "SUBST"elseif mw.getCurrentFrame():getParent():getTitle() == mw.title.getCurrentTitle().fullText then-- viewed directly: ""else-- transclusion: "{{subst:substcheck}}"end
See also
🔥 Top keywords: Главна странаЕвропско првенство у фудбалу 2024.Вања МаринковићСтилске фигуреЕвропско првенство у фудбалуРаде БогдановићДушан ТадићМарко АрнаутовићПосебно:ПретражиДушан ВлаховићКилијан МбапеСловачкаФудбалска репрезентација СрбијеСрбијаДраган Стојковић ПиксиЕвропско првенство у фудбалу 2020.Данило I Петровић Његош (књаз)Светско првенство у фудбалуВељко БирманчевићПрилог (врста речи)Светско првенство у фудбалу 2022.Књижевни родови и врстеМирдита, добар дан!Александар МитровићМатија ШаркићСтрахиња ПавловићВук Стефановић КараџићЏуд БелингамРазвој језика код Срба од 9. до 19. векаРумунијаДијалекти српског језикаФилип КостићФудбалска репрезентација ФранцускеРомелу ЛукакуПредраг РајковићПредлогБелгијаАнтоан ГризманПерсонификација