Template:Nb-header: Difference between revisions

From the Logical Languages Wiki
Jump to navigation Jump to search
m (Maiku moved page Template:PT-header to Template:Nb-header without leaving a redirect)
No edit summary
 
(4 intermediate revisions by the same user not shown)
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 '''portal table'''.
The header for a '''navigation box''' (navbox).


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


'''NOTE:''' Use <code><nowiki></table></nowiki></code> to close this header!
See [[Template:NavBox:LanguageDescriptions]] for usage example.


See [[Template:Portal: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


Parameters:
[[Category:Box component templates]]
; 1
</div></noinclude><div class="llwiki-nb" {{#ifeq:{{{hsize|3}}}|3||style="background-color:#f8f9fa;{{#ifeq:{{{hsize|}}}|2|margin-top:1.5em;}}"}}>
: table header title - none means table with no header row
{{B-heading|{{{1|}}}|{{{vtepage|}}}|{{{hsize|3}}}|
; 2
}}<table>
: colspan e.g. 2 - none means no colspan element (i.e. 1 col)
; 3
: portal-table page-name (excluding Template:Portal: pseudo-namespace) - none means no link to template
; 4
: table header type. Valid options: h1, h2, h3 (analogous with actual headers).  Default value: h3. This parameter is mainly intended for the Portal page, which displays some larger headers.
</div></noinclude><table class="llwiki-pt" {{#ifeq:{{{4|}}}|h2|style="margin-top:1.5em;"}}>
{{#if:{{{1|}}}|<tr><th {{#if:{{{2|}}}|colspan={{{2|}}}}} class="llwiki-pt-{{{4|h3}}}">{{#if:{{{3|}}}|<div style="float:right;font-size:70%;font-weight:normal;">[[Template:Portal:{{{3|}}}|T&nbsp;]]</div>}}<span>{{{1|}}}</span></th></tr>}}

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