Template:Part: Difference between revisions

From Shifti
Jump to navigation Jump to search
m add blank third level heading to place where we just output a <hr/> in an attempt to fill in the small hole found by Erastus
mNo edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{name| }}}| |{{#ifeq:{{{number| }}}| |===&nbsp;=== <hr/>|===Part {{{number}}}===}}|{{#ifeq: {{{number| }}}| |==={{{name}}}===|===Part {{{number}}}: {{{name}}}===}}}}<noinclude>
<includeonly>
;Usage&#58;: &#123;&#123;part|name=Name|number=Number&#125;&#125;
{{#vardefine:name|{{{name| }}}}}
{{#vardefine:number|{{{number| }}}}}
{{#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>
__NOTOC__
;Usage&#58;: &#123;&#123;part|name=Name|number=Number|seper=type&#125;&#125;
:: <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.)
:: (Four or more headings automatically creates a Table of Contents.)
&#123;&#123;part&#125;&#125; nets you a horizontal rule (&lt;hr/&gt;)
:: 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.
&#123;&#123;part|number=1&#125;&#125; nets you&#58;
<span style="font-size: 150%; font-weight: 132%;">WARNING: This Template Has Been Deprecated!</span>
=== Part 1 ===
 
&#123;&#123;part|name=Test&#125;&#125; nets you&#58;
=== Test ===
 
&#123;&#123;part|name=Test|number=1&#125;&#125; nets you&#58;
=== Part 1&#58; Test ===
</noinclude>
</noinclude>

Latest revision as of 03:07, 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.

WARNING: This Template Has Been Deprecated!