Difference between revisions of "Template:TemplateExample"

Jump to navigation Jump to search
8 bytes added ,  10:03, 26 February 2012
use pre and <nowiki>{{subst:!}}</nowiki> instead of <nowiki>{{!}}</nowiki> for arguments
imported>Qazaaq
m (fixing)
imported>Qazaaq
(use pre and <nowiki>{{subst:!}}</nowiki> instead of <nowiki>{{!}}</nowiki> for arguments)
Line 1: Line 1:
Produces a template example. The first and only argument are the template's arguments used in the example. Use <tt><nowiki>{{!}}</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.


Note that the template must not be recursive.
Note that the template must not be recursive.


<includeonly><onlyinclude>; Example
<includeonly><onlyinclude>; Example
: <tt>{{((}}{{FULLPAGENAME}}<nowiki>|</nowiki>{{{1}}}<nowiki>}}</nowiki></tt>
: <pre>{{((}}{{FULLPAGENAME}}<nowiki>|</nowiki>{{{1}}}<nowiki>}}</nowiki></pre>


; Result
; Result
: {{{{FULLPAGENAME}}|{{{1}}}}}</onlyinclude></includeonly>
: {{{{FULLPAGENAME}}|{{{1}}}}}</onlyinclude></includeonly>
Anonymous user

Navigation menu