Template:Part: Difference between revisions
Jump to navigation
Jump to search
ShadowWolf (talk | contribs) m Protected "Template:Part": It was hard enough to make this work. There is no reason for the average user to edit this template. [edit=sysop:move=sysop] |
ShadowWolf (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{#ifeq: {{{name| }}} | | {{#ifeq:{{{name| }}}| |{{#ifeq:{{{number| }}}| |<hr/>|===Part {{{number}}}===}}|{{#ifeq: {{{number| }}}| |==={{{name}}}===|===Part {{{number}}}: {{{name}}}===}}}}<noinclude> | ||
}} | |||
<noinclude> | |||
;Usage:: {{part|name=Name|number=Number}} | ;Usage:: {{part|name=Name|number=Number}} | ||
:: <span style="font-size: 14pt;>You '''''can''''' omit the parameters (as shown), but this gives you a "usage error" for the heading.</span> | :: <span style="font-size: 14pt;>You '''''can''''' omit the parameters (as shown), but this gives you a "usage error" for the heading.</span> | ||
:: ( | :: (Four or more headings automatically creates a Table of Contents.) | ||
{{part}} nets you& | {{part}} nets you a horizontal rule (<hr/>) | ||
{{part|number=1}} nets you: | {{part|number=1}} nets you: | ||
Revision as of 00:53, 21 July 2007
{{#ifeq: | |{{#ifeq: | |
|===Part {{{number}}}===}}|{{#ifeq: | |==={{{name}}}===|===Part {{{number}}}: {{{name}}}===}}}}
- Usage:
- {{part|name=Name|number=Number}}
- You can omit the parameters (as shown), but this gives you a "usage error" for the heading.
- (Four or more headings automatically creates a Table of Contents.)
{{part}} nets you a horizontal rule (<hr/>)
{{part|number=1}} nets you:
Part 1
{{part|name=Test}} nets you:
Test
{{part|name=Test|number=1}} nets you: