This wiki has undergone a migration to Confluence found Here

Difference between revisions of "Template:SimpleNavbox"

From HL7Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>class="navbox hlist collapsible {{{class|}}}" ! class="navbox-top" {{#if: {{{topstyle|}}} | style="{{{topstyle}}}" }} colspan="2" | {{ #if: {{{navbar|}}} | <div c...")
 
 
Line 4: Line 4:
 
}}<span class="navbox-title">{{{1}}}</span>{{#if: {{#var: history-head }} | {{#ifeq: {{#var: history-mode }} | foot || [[Category:Pages missing history footer]] }} }}
 
}}<span class="navbox-title">{{{1}}}</span>{{#if: {{#var: history-head }} | {{#ifeq: {{#var: history-mode }} | foot || [[Category:Pages missing history footer]] }} }}
 
|-</includeonly>
 
|-</includeonly>
 +
<noinclude>
 +
{{documentation}}
 +
<!-- Put categories/interwiki on the documentation page -->

Latest revision as of 22:00, 17 December 2015


[edit] 50px Template documentation

{{#invoke: documentation | docPage }} This is a simplified version of Template:Tl. It uses a plain wikitable and requires no lua, which makes it more memory and time efficient, while perhaps being a bit easier to break.

Usage

This template should be placed after the starting table tag.

Parameter(s) Usage Default value(s)
{{{1}}} Sets the title shown at the top of the navbox. {{{1}}}
{{{navbar}}} Will add a navigation bar giving links to view, discuss, and edit the template. Should be identical to the template's name without namespace. None
{{{mini}}} If set, changes the titles of the navbar links to v, d, and e instead of view, discuss, and edit. Does nothing unless {{{navbar}}} is set. None

Example

{| {{SimpleNavbox|Example}}
! Example group 1
| Example list 1
|-
! Example group 2
| Text above a sub-table
  {|
  ! Example Sub-group 1
  | Example Sub-list 1
  |-
  ! Example Sub-group 2
  | Example Sub-list 2<br>Taking up two lines
  |-
  ! Example Sub-group 3
  | Example Sub-list 3
  |}
* Horizontal list
* Under a sub-table
|}

ko:틀:SimpleNavBox nl:Sjabloon:SimpleNavbox ru:Шаблон:SimpleNavbox zh:Template:SimpleNavbox