Template:Nav/doc: Difference between revisions
merged nav templates |
added doc for titlelink and title parameters |
||
| Line 5: | Line 5: | ||
===Header=== | ===Header=== | ||
A header call to this template must be the first usage of this template. | A header call to this template must be the first usage of this template. | ||
<pre>{{nav|header|DQI|Dragon Quest|class=navMainSeries}}</pre> | <pre>{{nav|header|DQI|Dragon Quest|title=Ninjas|class=navMainSeries}}</pre> | ||
*header: A required parameter which marks this as the start of a navigation bar. This parameter must be the first parameter. It does not take a value. | *header: A required parameter which marks this as the start of a navigation bar. This parameter must be the first parameter. It does not take a value. | ||
* | *template: A required parameter specifying the name of the template containing the nav template calls. This parameter is a value only. The parameter must be the second parameter. It is used in the [[Template:tnav|tnav]] template in order to provide easy access to editing and discussion of the parent template. | ||
* | *titlelink: A required parameter specifying the name to be displayed as the title of the navigation bar. This parameter must be the third parameter. If a title parameter is not specified, this parameter becomes both the title link destination and the actual title. | ||
*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. | ||
===Subheader=== | ===Subheader=== | ||