Template:Part: Difference between revisions
Jump to navigation
Jump to search
ShadowWolf (talk | contribs) m add usage information to the template |
extend the template to allow for omission of the "Number" parameter if the "Name" parameter is included. |
||
| Line 1: | Line 1: | ||
{{#ifeq: {{{name| }}} | | | {{#ifeq: {{{name| }}} | | | ||
=== Part {{{number}}} === | | === Part {{{number}}} === | | ||
=== Part {{{number}}}: {{{name}}} === | {{#ifeq: {{{number| }}} | | | ||
=== {{{name}}} === | | |||
=== Part {{{number}}}: {{{name}}} === | |||
}} | |||
}} | }} | ||
<br/> | <br/> | ||
<noinclude> | <noinclude> | ||
Usage: <nowiki>{{part|name=Name|number=Number}}, though you can omit the "Name" parameter.</nowiki> | Usage: <nowiki>{{part|name=Name|number=Number}}, though you can omit the "Name" or "Number" parameter - The template will fail if you omit both.</nowiki> | ||
</noinclude> | </noinclude> | ||
Revision as of 15:38, 20 July 2007
{{#ifeq: | |
=== Part {{{number}}} === |
{{#ifeq: | |
=== {{{name}}} === |
=== Part {{{number}}}: {{{name}}} ===
}}
}}
Usage: {{part|name=Name|number=Number}}, though you can omit the "Name" or "Number" parameter - The template will fail if you omit both.