Difference between revisions of "Template:Navbox/doc"

From Underrail Wiki
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>{{Navbox
 
<pre>{{Navbox
 
|name      = {{subst:PAGENAME}}
 
|name      = {{subst:PAGENAME}}
|state      = autocollapse, uncollapsed or collapsed. defaults to autocollapse.
 
 
|title      = text in the title bar
 
|title      = text in the title bar
|image      = an optional right-side image, coded as the whole image. Should be coded as <nowiki>[[Image:XX.jpg|90px|link=|alt=]</nowiki>
+
|image      = an optional right-side image, coded as the whole image. Should be coded as <nowiki>[[Image:Misc_icon.png|link=]]</nowiki>
 
|above      = text to appear above the group/list section (eg. a list of overall wikilinks)
 
|above      = text to appear above the group/list section (eg. a list of overall wikilinks)
  
Line 23: Line 22:
  
 
== Samples ==
 
== Samples ==
<pre>
+
<pre>{{Navbox
CODE GOES HERE
+
|name      = Navbox/doc
</pre>
+
|image      = {{{image}}}
 +
|title      = {{{title}}}
 +
|above      = {{{above}}}
 +
 
 +
|group1    = {{{group1}}}
 +
|list1      = {{{list1}}}
 +
 
 +
|group2    = {{{group2}}}
 +
|list2      = {{{list2}}}
  
Results in...
+
|list3      = {{{list3}}} ''without {{{group3}}}''
  
 +
|group4    = {{{group4}}}
 +
|list4      = {{{list4}}}
 +
 +
|below      = {{{below}}}
 +
}}</pre>
 +
 +
Results in...
 
{{Navbox
 
{{Navbox
 
|name      = Navbox/doc
 
|name      = Navbox/doc
|title     = navbox title!
+
|image     = {{{image}}}
|image     = [[Image:Misc_icon.png|link=]]
+
|title     = {{{title}}}
|above      = text above
+
|above      = {{{above}}}
|style      = width: 100%;
+
 
|basestyle  = background: #222;
+
|group1    = {{{group1}}}
 +
|list1      = {{{list1}}}
  
 +
|group2    = {{{group2}}}
 +
|list2      = {{{list2}}}
  
|group1    = first group
+
|list3     = {{{list3}}} ''without {{{group3}}}''
|list1     = blah blah blah blah blah
 
  
|group2     = second group
+
|group4     = {{{group4}}}
|list2     = some more text goes here
+
|list4     = {{{list4}}}
  
|below      = text below
+
|below      = {{{below}}}
 
}}
 
}}
 
<includeonly>[[Category:Navbox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:Navbox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 06:02, 6 June 2013

Navbox template lazily copied off mediawiki. See http://www.mediawiki.org/wiki/Template:Navbox for more details.

Syntax

{{Navbox
|name       = {{subst:PAGENAME}}
|title      = text in the title bar
|image      = an optional right-side image, coded as the whole image. Should be coded as [[Image:Misc_icon.png|link=]]
|above      = text to appear above the group/list section (eg. a list of overall wikilinks)

|group1     = the left-side text before list-n (if group-n omitted, list-n starts at left of box)
|list1      = text listing wikilinks, often separated by middot, such as: [[A]] · [[B]]

|group2     = 
|list2      = 
 ...
|group20    = 
|list20     = 

|below      = optional text to appear below the group/list section.
}}

Please remove the parameters that are left blank.

Samples

{{Navbox
|name       = Navbox/doc
|image      = {{{image}}}
|title      = {{{title}}}
|above      = {{{above}}}

|group1     = {{{group1}}}
|list1      = {{{list1}}}

|group2     = {{{group2}}}
|list2      = {{{list2}}}

|list3      = {{{list3}}} ''without {{{group3}}}''

|group4     = {{{group4}}}
|list4      = {{{list4}}}

|below      = {{{below}}}
}}

Results in...