Template:Nav/doc: Difference between revisions
m 2 revisions: importing Template namespace from Wikia |
new nav syntax |
||
| Line 11: | Line 11: | ||
*title: An optional parameter for specifying a title other than the name of the titlelink parameter. Useful when you want the title to link to a category page. | *title: An optional parameter for specifying a title other than the name of the titlelink parameter. Useful when you want the title to link to a category page. | ||
*class: An optional parameter for specifying a class name which will alter the colors/styles of the navigation bar. By default, the navMainSeries class is used. This parameter must come after the 3 required parameters. | *class: An optional parameter for specifying a class name which will alter the colors/styles of the navigation bar. By default, the navMainSeries class is used. This parameter must come after the 3 required parameters. | ||
=== | ===Section=== | ||
A | A section call is made to designate a subcategory row within the navigation bar. Each subcategory row will then contain a variable number of links. | ||
<pre>{{nav| | <pre>{{nav|section|Characters| | ||
* | * [[link 1]] | ||
* [[link 2]] | |||
⋮ | |||
}}</pre> | |||
*section: A required parameter marking this as a section. This parameter must be the first parameter. | |||
*title: A required parameter specifying the name of the subheader category. This parameter must be the second parameter. | *title: A required parameter specifying the name of the subheader category. This parameter must be the second parameter. | ||
*class: An optional parameter for specifying a class name which will alter the colors/styles of the subheader. By default, the navMainSeries class is used. This parameter must come after the 2 required parameters. | *class: An optional parameter for specifying a class name which will alter the colors/styles of the subheader. By default, the navMainSeries class is used. This parameter must come after the 2 required parameters. | ||
* | *content: A required parameter listing the links for a section. | ||
===Footer=== | ===Footer=== | ||
The footer call marks the end of the navigation bar. | The footer call marks the end of the navigation bar. | ||
| Line 35: | Line 33: | ||
===Sample=== | ===Sample=== | ||
{{nav|header|DQI|Dragon Quest}} | {{nav|header|DQI|Dragon Quest}} | ||
{{nav| | {{nav|section|Characters| | ||
* [[Hero (Dragon Quest I)|Hero]] | |||
* [[Roto]] | |||
}} | |||
{{nav| | {{nav|section|Locations| | ||
* [[Alefgard]] | |||
* [[Brecconary]] | |||
* [[Roto's Cave]] | |||
* [[Southern Shrine]] | |||
* [[Swamp Cave]] | |||
* [[Tantegel]] | |||
}} | |||
{{nav|footer}} | {{nav|footer}} | ||
===Code=== | ===Code=== | ||
<pre> | <pre> | ||
{{nav|header|DQI|Dragon Quest}} | {{nav|header|DQI|Dragon Quest}} | ||
{{nav| | {{nav|section|Characters| | ||
* [[Hero (Dragon Quest I)|Hero]] | |||
* [[Roto]] | |||
}} | |||
{{nav| | {{nav|section|Locations| | ||
* [[Alefgard]] | |||
* [[Brecconary]] | |||
* [[Roto's Cave]] | |||
* [[Southern Shrine]] | |||
* [[Swamp Cave]] | |||
* [[Tantegel]] | |||
}} | |||
{{nav|footer}} | {{nav|footer}} | ||
</pre> | </pre> | ||