- This wiki is out of date, use the continuation of this wiki instead
Template:Navbox
From FenixWiki
(Difference between revisions)
Revision as of 13:10, 8 March 2008 (edit) Sandman (Talk | contribs) ← Previous diff |
Revision as of 13:13, 8 March 2008 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
Line 14: | Line 14: | ||
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 | ||
+ | align, // align the list elements (left/right/center/justify) | ||
</pre> | </pre> | ||
</noinclude>{| border="1" cellpadding="2" style="width: 100%; border-collapse: collapse; font-size: 95%; background: #FF9966; margin-left:auto; margin-right:auto" | </noinclude>{| border="1" cellpadding="2" style="width: 100%; border-collapse: collapse; font-size: 95%; background: #FF9966; margin-left:auto; margin-right:auto" | ||
! {{{name}}} | ! {{{name}}} | ||
{{#if:{{{list|}}}| | {{#if:{{{list|}}}| | ||
- | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align: | + | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}} |
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list}}}|,| • }}}} | {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list}}}|,| • }}}} | ||
}}{{#if:{{{list1|}}}| | }}{{#if:{{{list1|}}}| | ||
- | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align: | + | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}} |
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list1}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list1}}}|,| • }}}} | {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list1}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list1}}}|,| • }}}} | ||
}}{{#if:{{{list2|}}}| | }}{{#if:{{{list2|}}}| | ||
- | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align: | + | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}} |
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list2}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list2}}}|,| • }}}} | {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list2}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list2}}}|,| • }}}} | ||
}}{{#if:{{{list3|}}}| | }}{{#if:{{{list3|}}}| | ||
- | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align: | + | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}} {{!}} |
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list3}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list3}}}|,| • }}}} | {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list3}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list3}}}|,| • }}}} | ||
}}{{#if:{{{list4|}}}| | }}{{#if:{{{list4|}}}| | ||
- | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align: | + | {{!}}- style="font-size: 90%; background: #FFF9F2; text-align:{{#if:{{{align|}}}|{{{align}}}|center}}" {{!}} |
{{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list4}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list4}}}|,| • }}}} | {{!}} {{#if:{{{listseperator|}}}|{{#replace:{{{list4}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list4}}}|,| • }}}} | ||
}} | }} |
Revision as of 13:13, 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 }} |
|