Template:Subst only: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
R'n'B (talk | contribs)
fix param
Correct output when used on non-template pages
Line 4: Line 4:
|type=notice
|type=notice
|image=[[File:Imbox notice.png|32px|alt=|link=]]
|image=[[File:Imbox notice.png|32px|alt=|link=]]
|text='''This template should always be [[Wikipedia:Substitution|substituted]]''' &ndash; use <tt><nowiki>{{subst:</nowiki>{{#if: {{{caps|}}} | {{ucfirst: {{BASEPAGENAME}} }} | {{lcfirst: {{BASEPAGENAME}} }} }}<nowiki>}}</nowiki></tt>.}}
|text='''This template should always be [[Wikipedia:Substitution|substituted]]''' &ndash; use <tt><nowiki>{{subst:</nowiki>{{template other|{{#if: {{{caps|}}} | {{ucfirst: {{BASEPAGENAME}} }} | {{lcfirst: {{BASEPAGENAME}} }} }}|{{FULLPAGENAME}}}}<nowiki>}}</nowiki></tt>.}}
}}<includeonly>{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikipedia substituted templates]]}}</includeonly><noinclude>
}}<includeonly>{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikipedia substituted templates]]}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}

Revision as of 21:57, 5 November 2011

Template documentation