틀:NavHeader
kiseki
다른 명령
Template documentation (for the above template, sometimes partially or fully invisible)[view] [edit] [history] [refresh]
This template provides a standard header template for all other Navigation Templates. When used over providing the header yourself, you get:
- Correct centering of header title text.
- Clear, concise code on the navigation template page.
- Expanding/collapsing. Starts out expanded on the page name you pass in to the first parameter (so viewing/editing the navigation template is easier).
- Call to {{tnav}} using the provided page name.
This template creates the start of a table. Use the "|}" markup to end it after providing navigational links.
Parameters
- first param: Provides the page name of the caller. You should use the name of the template for this.
- second param: Provides the text to place in the header. You should use a friendly name, such as a game's title (and link to game) or the set of things this template is to navigate.
- third param: Sets how collapsing works.
- Default action: collapsible but start hidden.
- Use "show" to make it always expanded with no collapsing (no button either).
- Use "expand" to make it collapsible but start visible. This is the same behavior as if first param is equal to
{{PAGENAME}}.
- fourth param: Sets whether to use the tnav template to add view/edit small links. Default is yes, write "tnav" to add it or anything else to remove it.
- span: DEFAULT: 2. This sets the number that is passed to create the table header's
colspan. Standard navigational templates have a short header part on the left and a long content part on the right, so "2" columns are spanned to create this header.- Must be typed as "span=<number>" in the arguments.
- class: DEFAULT: "navbox". This sets the CSS class for the created table.
- Must be typed as "class=<class>" in the arguments.
Example
On page Template:Nav Lists Books:
{{NavHeader|Nav Lists Books|Books}}
|-
| colspan="2" class="article-table-sub-header" |Lists of books - [[Liberl arc]]
|-
|...
|...
|}
Books
| |
|---|---|
| Lists of books - Liberl arc | |
| ... | ... |
The above text is transcluded from 틀:NavHeader/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to 틀:NavHeader/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to 틀:NavHeader/doc. (View all subpages of this page.)