Template:Nb-header: Difference between revisions

From the Logical Languages Wiki
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 row
: table header title - none means table with no header
; colspan
: colspan e.g. 2 - none means no colspan element (i.e. 1 col)
; 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><table class="llwiki-nb" {{#ifeq:{{{hsize|}}}|2|style="margin-top:1.5em;"}}>
 
{{#if:{{{1|}}}|<tr><th {{#if:{{{colspan|}}}|colspan={{{colspan|}}}}} class="llwiki-nb-h{{{hsize|3}}}">{{#if:{{{vtepage|}}}|<div class="plainlinks llwiki-nb-vte">[[{{{vtepage|}}}|V]]·[[{{TALKPAGENAME:{{{vtepage|}}}}}|T]]·[{{fullurl:{{{vtepage|}}}|action=edit}} E]&nbsp;</div>}}<span>{{{1|}}}</span></th></tr>}}
[[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.