Difference between revisions of "Template:Navbox/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m (1 revision: Full import of Wikia (that might sting a bit))
 
m (category)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
;Description
+
Meta-template for building navboxes. A navbox is a grouping of links used in multiple related articles to facilitate navigation between those articles.
:This template is used to create a basic [[Help:Navbox|navbox]].
 
;Syntax
 
:Type <code>{{t|navbox|...}}</code> somewhere, with parameters as shown below.
 
;Sample output
 
  
<pre>{{navbox
+
Based on [[wikipedia:Template:Navbox]], see documentation there.
|header=Land of Bob
 
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
 
}}</pre>
 
  
Results in...
+
==Usage==
 +
Blank template with commonly use options:
 +
<pre>
 +
{{Navbox
 +
| name = Navbox/doc
 +
| state = uncollapsed
 +
| title = title
 +
| group1 = Group1
 +
| list1  = List1
 +
| group2 = Group2
 +
| list2  = List2
 +
| group3 = Group3
 +
| list3 = List3
 +
| group4 = Group4
 +
| list4 = List4
 +
}}
 +
</pre>
  
{{navbox
+
{{Navbox
|header=Land of Bob
+
| name = Navbox/doc
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
+
| state = uncollapsed
 +
| title = title
 +
| group1 = Group1
 +
| list1  = List1
 +
| group2 = Group2
 +
| list2  = List2
 +
| group3 = Group3
 +
| list3 = List3
 +
| group4 = Group4
 +
| list4 = List4
 
}}
 
}}
 +
==Parameters==
 +
; name: Template name.
 +
; title: text in the title bar.
 +
; state: controls when a navbox is expanded or collapsed. (use "mw-collapsed" to set the navbox to collapsed)
 +
; above/below: optional text to appear above or below the group/list section.
 +
; group(n):
 +
; listn(n):
  
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
<noinclude>[[Category:Template documentation]]</noinclude>
 +
<includeonly>[[Category:Navigation templates]]</includeonly>

Latest revision as of 10:43, 11 August 2022

Meta-template for building navboxes. A navbox is a grouping of links used in multiple related articles to facilitate navigation between those articles.

Based on wikipedia:Template:Navbox, see documentation there.

Usage[edit]

Blank template with commonly use options:

{{Navbox
| name = Navbox/doc
| state = uncollapsed
| title = title
| group1 = Group1
| list1  = List1
| group2 = Group2
| list2  = List2
| group3 = Group3
| list3 = List3
| group4 = Group4
| list4 = List4
}}

Parameters[edit]

name
Template name.
title
text in the title bar.
state
controls when a navbox is expanded or collapsed. (use "mw-collapsed" to set the navbox to collapsed)
above/below
optional text to appear above or below the group/list section.
group(n)
listn(n)