Template:Part: Difference between revisions
Jump to navigation
Jump to search
ShadowWolf (talk | contribs) m Rework documentation a bit. |
ShadowWolf (talk | contribs) m blank TOC entries don't make any sense. Lets drop in a nice message :) |
||
| Line 1: | Line 1: | ||
{{#ifeq: {{{name| }}} | | | {{#ifeq: {{{name| }}} | | | ||
{{#ifeq: {{{number| }}} | | | {{#ifeq: {{{number| }}} | | | ||
=== | === Usage Error! === | | ||
=== Part {{{number}}} === | === Part {{{number}}} === | ||
}} | | }} | | ||
| Line 12: | Line 12: | ||
<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)</span> | :: <span style="font-size: 14pt;>You '''''can''''' omit the parameters (as shown), but this gives you a "usage error" for the heading.</span> | ||
:: (As you can see, four or more headings automatically creates a Table of Contents.) | |||
{{part}} | {{part}} nets you: | ||
=== Usage Error! === | |||
{{part|number=1}} nets you: | {{part|number=1}} nets you: | ||
Revision as of 16:06, 20 July 2007
{{#ifeq: | |
{{#ifeq: | |
=== Usage Error! === |
=== 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.
- (As you can see, four or more headings automatically creates a Table of Contents.)
{{part}} nets you:
Usage Error!
{{part|number=1}} nets you:
Part 1
{{part|name=Test}} nets you:
Test
{{part|name=Test|number=1}} nets you: