Template:Part: Difference between revisions

From Shifti
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
:: (Four or more headings automatically creates a Table of Contents.)
:: (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.
:: 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.
{{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:
=== Part 1: Test ===
 
{{part|name=Test|number=1|seper=k}} nets you:
==={{separator|k|Part 1: Test}}===
 
{{part|name=Test|number=1|seper=hr}} nets you:
{{Separator}}
=== Part 1: Test ===
</noinclude>
</noinclude>

Revision as of 02:50, 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.