Difference between revisions of "Template:TemplateExample"
Jump to navigation
Jump to search
imported>Qazaaq (use pre and <nowiki>{{subst:!}}</nowiki> instead of <nowiki>{{!}}</nowiki> for arguments) |
imported>Qazaaq (can't get this to work) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Incomplete}} | |||
Produces a template example. The first and only argument are the template's arguments used in the example. Use <tt><nowiki>{{subst:!}}</nowiki></tt> instead of pipe characters (<tt>|</tt>) to separate the arguments. | Produces a template example. The first and only argument are the template's arguments used in the example. Use <tt><nowiki>{{subst:!}}</nowiki></tt> instead of pipe characters (<tt>|</tt>) to separate the arguments. | ||
Line 4: | Line 6: | ||
<includeonly><onlyinclude>; Example | <includeonly><onlyinclude>; Example | ||
: < | : <code>{{((}}{{FULLPAGENAME}}<nowiki>|</nowiki>{{{1}}}<nowiki>}}</nowiki></code> | ||
; Result | ; Result | ||
: {{{{FULLPAGENAME}}|{{{1}}}}}</onlyinclude></includeonly> | : {{{{FULLPAGENAME}}|{{{1}}}}}</onlyinclude></includeonly> |
Latest revision as of 10:32, 26 February 2012
Produces a template example. The first and only argument are the template's arguments used in the example. Use {{subst:!}} instead of pipe characters (|) to separate the arguments.
Note that the template must not be recursive.