This wiki is out of date, use the continuation of this wiki instead

Template:Navbox

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:36, 10 March 2008 (edit)
Sandman (Talk | contribs)
(Added parameters list1, list2, list3, list4, talign and align)
← Previous diff
Revision as of 15:37, 10 March 2008 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 7: Line 7:
Variables: Variables:
<pre> <pre>
-name,+name, // title (mandatory)
list, // separate elements with the delimiter "," or specify it with ''listseparator'' list, // separate elements with the delimiter "," or specify it with ''listseparator''
list1, // separate elements with the delimiter "," or specify it with ''listseparator'' list1, // separate elements with the delimiter "," or specify it with ''listseparator''
Line 13: Line 13:
list3, // separate elements with the delimiter "," or specify it with ''listseparator'' list3, // separate elements with the delimiter "," or specify it with ''listseparator''
list4, // separate elements with the delimiter "," or specify it with ''listseparator'' list4, // separate elements with the delimiter "," or specify it with ''listseparator''
-listseparator, // specify a listseparator+listseparator, // specify a listseparator (default: ",")
-talign, // title align (left/right/center/justify)+talign, // title align (left/right/center/justify) (default: center)
-align, // align the list elements (left/right/center/justify)+align, // align the list elements (left/right/center/justify) (default: center)
</pre> </pre>
</noinclude>{| border="1" cellpadding="2" style="width: 100%; border-collapse: collapse; margin-left:auto; margin-right:auto; font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" </noinclude>{| border="1" cellpadding="2" style="width: 100%; border-collapse: collapse; margin-left:auto; margin-right:auto; font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}"

Revision as of 15:37, 10 March 2008

Template

Navigation box template.

Throw in a name and a list of items and they will appear in this box. It's centered and 100% wide.

Variables:

name, // title (mandatory)
list, // separate elements with the delimiter "," or specify it with ''listseparator''
list1, // separate elements with the delimiter "," or specify it with ''listseparator''
list2, // separate elements with the delimiter "," or specify it with ''listseparator''
list3, // separate elements with the delimiter "," or specify it with ''listseparator''
list4, // separate elements with the delimiter "," or specify it with ''listseparator''
listseparator, // specify a listseparator (default: ",")
talign, // title align (left/right/center/justify) (default: center)
align, // align the list elements (left/right/center/justify) (default: center)
{{{name}}}

Example

{{Navbox2
  | name = Apples
  | list = Elstar,Goudrenet,Golden Delicious,etc
}}
Apples
Elstar • Goudrenet • Golden Delicious • etc
Personal tools