Template:Nb-header: Difference between revisions

From the Logical Languages Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<noinclude><div style="border: 1px solid black; background-color: #fafafa; padding: 1em;">
<noinclude><div class="llwiki-noinclude">
The header for a '''navigation box''' (navbox).
The header for a '''navigation box''' (navbox).


Navbox naming conventions:
'''NOTE:''' Use <code><nowiki>{{Nb-footer}}</nowiki></code> to close this header!
* <code><nowiki>Template:NavBox:Xyz</nowiki></code> - a navbox for Xyz.
* <code><nowiki>Template:Nb-xyz</nowiki></code> - a navbox component called xyz.
 
'''NOTE:''' Use <code><nowiki></table></nowiki></code> to close this header!


See [[Template:NavBox:LanguageDescriptions]] for usage example.
See [[Template:NavBox:LanguageDescriptions]] for usage example.


Parameters:
Parameters (all passed to [[Template:B-heading]]):
; 1
; 1
: table header title - none means table with no header
: see B-heading - parameter 1
; 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
: see B-heading - parameter 2
; 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.
: Default for this template: 3
: see B-heading - parameter 3


[[Category:Nb templates|header]]
[[Category:Box component templates]]
</div></noinclude><div class="llwiki-nb" {{#ifeq:{{{hsize|3}}}|3||style="background-color:#f8f9fa;{{#ifeq:{{{hsize|}}}|2|margin-top:1.5em;}}"}}>
</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>}}<div class="llwiki-nb-h{{{hsize|3}}}">{{{1|}}}</div></div>
{{B-heading|{{{1|}}}|{{{vtepage|}}}|{{{hsize|3}}}|
}}<table>
}}<table>

Latest revision as of 18:13, 16 January 2021

The header for a navigation box (navbox).

NOTE: Use {{Nb-footer}} to close this header!

See Template:NavBox:LanguageDescriptions for usage example.

Parameters (all passed to Template:B-heading):

1
see B-heading - parameter 1
vtepage
see B-heading - parameter 2
hsize
Default for this template: 3
see B-heading - parameter 3