Template:Part: Difference between revisions
Jump to navigation
Jump to search
ShadowWolf (talk | contribs) mNo edit summary |
ShadowWolf (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#vardefine:name|{{{1| }}}}} | |||
</includeonly> | {{#vardefine:number|{{{2| }}}}} | ||
{{#vardefine:text|{{#ifeq:{{#var:name}}| |{{#ifeq:{{#var:number}}| |<hr/>|Part {{{number}}}}}|{{#ifeq:{{#var:number}}| |{{{name}}}|Part {{{number}}}: {{{name}}}}}}}}} | |||
{{#ifeq:{{NAMESPACE}}|Template|<nowiki>{{part|name=section name|number=section number|seper=separator template type}}</nowiki>|{{#ifeq:{{{seper| }}}| |{{#ifeq:{{#var:text}}|<hr/>|<hr/>|{{#var:text}}}}|{{#ifeq:{{{seper}}}|hr|{{Separator}} | |||
{{#var:text}}|{{Separator|{{{seper}}}|{{#var:text}}}}}}}}}}</includeonly> | |||
<noinclude> | <noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
| Line 9: | Line 12: | ||
:: The "seper" parameter refers to one of the types of separators that can take a text argument. See [[Help:Templates]] and [[Template:Separator]] for more information. Use "seper=hr" if you want a horizontal rule type separator instead of one of the graphical ones. | :: The "seper" parameter refers to one of the types of separators that can take a text argument. See [[Help:Templates]] and [[Template:Separator]] for more information. Use "seper=hr" if you want a horizontal rule type separator instead of one of the graphical ones. | ||
:: See [[User:ShadowWolf/Test_Page]] for examples. | :: See [[User:ShadowWolf/Test_Page]] for examples. | ||
==WARNING: This Template No Longer Generates Sections On It's Own. There Was An Implementation Flaw!=== | |||
</noinclude> | </noinclude> | ||
Revision as of 02:57, 5 August 2007
- Usage:
- {{part|name=Name|number=Number|seper=type}}
- 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.)
- The "seper" parameter refers to one of the types of separators that can take a text argument. See Help:Templates and Template:Separator for more information. Use "seper=hr" if you want a horizontal rule type separator instead of one of the graphical ones.
- See User:ShadowWolf/Test_Page for examples.