Template talk:If pagename: Difference between revisions

From Knot Atlas
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
For each pagename you'd like to test against, you need to create a new template. For example, if you want to be able to use
For each pagename you'd like to test against, you need to create a new template. For example, if you want to be able to use


<nowiki>{{If pagename|Sandbox|We're on the Sandbox, no place else.}}</nowiki>
<nowiki>{{If pagename|Sandbox|We're on the Sandbox, no place else.}}</nowiki>


you need to create a page [[Template:CallSandbox]], with content
you need to create a page [[Template:CallSandbox]], with content


<nowiki>{{{{{Sandbox}}}|{{{1}}}|{{{2}}}|{{{3}}}}}</nowiki>
<nowiki>{{{{{Sandbox}}}|{{{1}}}|{{{2}}}|{{{3}}}}}</nowiki>


See also [[Template:If not pagename]], for which the same note applies.
See also [[Template:If not pagename]], [[Template:If pagename transclude]] and [[Template:If not pagename transclude]], for each of which the same note applies.

Latest revision as of 11:29, 29 August 2005

For each pagename you'd like to test against, you need to create a new template. For example, if you want to be able to use

{{If pagename|Sandbox|We're on the Sandbox, no place else.}}

you need to create a page Template:CallSandbox, with content

{{{{{Sandbox}}}|{{{1}}}|{{{2}}}|{{{3}}}}}

See also Template:If not pagename, Template:If pagename transclude and Template:If not pagename transclude, for each of which the same note applies.