Difference between revisions of "Template:NavTable/doc"

From Golly.Life Wiki
(Created page with "==Description== This template is used to create Navboxes. You start by setting some named parameters to configure the table, then add rows to it using the {{Tl|NavRow}} or {...")
 
 
Line 64: Line 64:
 
   |also.}}
 
   |also.}}
 
}}
 
}}
 +
 +
[[Category:Navbox]]

Latest revision as of 06:23, 8 February 2021

Description

This template is used to create Navboxes.

You start by setting some named parameters to configure the table, then add rows to it using the {{NavRow}} or {{NavFooterRow}} templates.

Example:

{{NavTable
| name = Richmond
<!-- add state=mw-collapsible for the [Collapse] button to show up -->
| state = mw-collapsible
<!-- set the header text with `header` and color with `headercolor` -->
| header = [[Richmond Harrison|Richmond Harrison]]
| headercolor = #BADA55
<!-- Each positional parameter must be a {{NavRow}} or {{NavFooterRow}}. -->
| {{NavRow
  |[[Richmond Harrison|Richmond Harrison]]
  |row1_title=is
  |my
  |row2_title=best
  |friend.}}
| {{NavRow|Richmond Harrison is my best friend. Reply if he is your best friend also.
}}
| {{NavRow
  |Reply if
  |row1_title=he
  |is}}
| {{NavRow
  |your
  |best}}
| {{NavFooterRow
  |friend}}
| {{NavFooterRow
  |also.}}
}}