Template:Nb-header: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
Parameters: | Parameters: | ||
; 1 | ; 1 | ||
: table header title - none means table with no header | : table header title - none means table with no header | ||
; vtepage | ; vtepage | ||
: full page name of either the containing navbox template, or a text source page (see Portal page for examples), to be used to create view-talk-edit (VTE) links - none means no VTE links | : full page name of either the containing navbox template, or a text source page (see Portal page for examples), to be used to create view-talk-edit (VTE) links - none means no VTE links | ||
; hsize | ; hsize | ||
: table header type. Valid options: 1, 2, 3 (analogous with actual headers). Default value: 3. This parameter is mainly intended for the Portal page, which displays some larger headers. | : table header type. Valid options: 1, 2, 3 (analogous with actual headers). Default value: 3. This parameter is mainly intended for the Portal page, which displays some larger headers. | ||
</div></noinclude>< | |||
{{# | [[Category:Nb templates|header]] | ||
</div></noinclude><div class="llwiki-nb" {{#ifeq:{{{hsize|3}}}|3||style="background-color:#f8f9fa;{{#ifeq:{{{hsize|}}}|2|margin-top:1.5em;}}"}}> | |||
{{#if:{{{1|}}}|<div class="llwiki-nb-h{{{hsize|3}}}box">{{#if:{{{vtepage|}}}|<div class="plainlinks llwiki-nb-vte">[[{{{vtepage|}}}|V]]·[[{{TALKPAGENAME:{{{vtepage|}}}}}|T]]·[{{fullurl:{{{vtepage|}}}|action=edit}} E]</div>}}<h{{{hsize|3}}}>{{{1|}}}</h{{{hsize|3}}}></div> | |||
}}<table> |
Revision as of 20:05, 13 April 2020
The header for a navigation box (navbox).
Navbox naming conventions:
Template:NavBox:Xyz
- a navbox for Xyz.Template:Nb-xyz
- a navbox component called xyz.
NOTE: Use </table>
to close this header!
See Template:NavBox:LanguageDescriptions for usage example.
Parameters:
- 1
- table header title - none means table with no header
- vtepage
- full page name of either the containing navbox template, or a text source page (see Portal page for examples), to be used to create view-talk-edit (VTE) links - none means no VTE links
- hsize
- table header type. Valid options: 1, 2, 3 (analogous with actual headers). Default value: 3. This parameter is mainly intended for the Portal page, which displays some larger headers.