Data:Templatedata/ifsubst.tab
Jump to navigation
Jump to search
Meta-template that shows different results when substituted or transcluded.
name | type | suggested | autovalue | label | description |
---|---|---|---|---|---|
string | string | boolean | string | localized | localized |
name | type | suggested | autovalue | label | description |
1 | content | ☑ | Substituted(1) | The result when this template is substituted.(1) | |
2 | content | ☑ | {{error:must be substituted|{{subst:#switch:{{subst:NAMESPACE}}|{{subst:ns:10}}=|{{subst:ns:0}}=:|#default={{subst:NAMESPACE}}:}}{{subst:PAGENAME}}}} | Transcluded(1) | The result when this template is not substituted.(1) |
demo | string | ☐ | {{{demo|<noinclude>1</noinclude>}}} | Demo?(1) | Whether to show the substituted result regardless of whether the template was actually substituted. Set to “no” to always show the transcluded result.(1) |
TemplateData for Template:Ifsubst (Q6176172), original work by User:ExE Boss
Data available under Creative Commons Zero.