Difference between revisions of "Template:Navbox/doc"

From Underrail Wiki
Jump to navigation Jump to search
m (1 revision: importing navbox templates from mediawiki)
m
Line 3: Line 3:
 
== Syntax ==
 
== Syntax ==
 
<pre>{{Navbox
 
<pre>{{Navbox
|bodyclass  =
 
 
|name      = {{subst:PAGENAME}}
 
|name      = {{subst:PAGENAME}}
|title     =  
+
|state     = autocollapse, uncollapsed or collapsed. defaults to autocollapse.
|titlestyle =  
+
|title      = text in the title bar
|image      =  
+
|image      = an optional right-side image, coded as the whole image. Should be coded as <nowiki>[[Image:XX.jpg|90px|link=|alt=]</nowiki>
|above      =  
+
|above      = text to appear above the group/list section (eg. a list of overall wikilinks)
  
|group1    =  
+
|group1    = the left-side text before list-n (if group-n omitted, list-n starts at left of box)
|list1      =  
+
|list1      = text listing wikilinks, often separated by middot, such as: <nowiki>[[A]] · [[B]]</nowiki>
  
 
|group2    =  
 
|group2    =  
Line 19: Line 18:
 
|list20    =  
 
|list20    =  
  
|below      =  
+
|below      = optional text to appear below the group/list section.
 
}}</pre>
 
}}</pre>
 
Please remove the parameters that are left blank.
 
Please remove the parameters that are left blank.
  
 +
== Samples ==
 +
<pre>
 +
CODE GOES HERE
 +
</pre>
  
 +
Results in...
 +
 +
{{Navbox
 +
|name      = Navbox/doc
 +
|title      = navbox title!
 +
|image      = [[Image:Misc_icon.png|link=]]
 +
|above      = text above
 +
|style      = width: 100%;
 +
|basestyle  = background: #222;
 +
 +
 +
|group1    = first group
 +
|list1      = blah blah blah blah blah
 +
 +
|group2    = second group
 +
|list2      = some more text goes here
 +
 +
|below      = text 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>

Revision as of 05:54, 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}}
|state      = autocollapse, uncollapsed or collapsed. defaults to autocollapse.
|title      = text in the title bar
|image      = an optional right-side image, coded as the whole image. Should be coded as [[Image:XX.jpg|90px|link=|alt=]
|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

CODE GOES HERE

Results in...