Template:Nb-header: Difference between revisions

From the Logical Languages Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
[[Category:Nb templates|header]]
[[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;}}"}}>
</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>
{{#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>
}}<table>
}}<table>

Revision as of 19:39, 16 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.