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 13:38, 8 March 2008 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Revision as of 13:39, 8 March 2008 (edit) (undo)
Sandman (Talk | contribs)
m
Next diff →
Line 24: Line 24:
}}{{#if:{{{list1|}}}|<br>{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}} }}{{#if:{{{list1|}}}|<br>{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list1}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list1}}}|,|&#32;•&#32;}}}} {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list1}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list1}}}|,|&#32;•&#32;}}}}
-}}{{#if:{{{list2|}}}| +}}{{#if:{{{list2|}}}|<br>{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}
- +
-{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}+
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list2}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list2}}}|,|&#32;•&#32;}}}} {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list2}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list2}}}|,|&#32;•&#32;}}}}
-}}{{#if:{{{list3|}}}| +}}{{#if:{{{list3|}}}|<br>{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}
- +
-{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}+
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list3}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list3}}}|,|&#32;•&#32;}}}} {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list3}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list3}}}|,|&#32;•&#32;}}}}
-}}{{#if:{{{list4|}}}| +}}{{#if:{{{list4|}}}|<br>{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}
- +
-{{!-}} style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}}+
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list4}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list4}}}|,|&#32;•&#32;}}}} {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list4}}}|{{{listseperator}}}|&#32;{{Navbox_listseperator}}&#32;}}|{{#replace:{{{list4}}}|,|&#32;•&#32;}}}}
-}}+}}|}<noinclude>
-|}<noinclude>+
== Example == == Example ==
{| style="width: 100%" {| style="width: 100%"

Revision as of 13:39, 8 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,
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
align, // align the list elements (left/right/center/justify)
{{{name}}}

Example

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