- This wiki is out of date, use the continuation of this wiki instead
Template:Navbox2
From FenixWiki
(Difference between revisions)
Revision as of 14:45, 8 March 2008 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (15:35, 10 March 2008) (edit) (undo) Sandman (Talk | contribs) m |
||
(2 intermediate revisions not shown.) | |||
Line 17: | Line 17: | ||
align, // align the list elements (left/right/center/justify) | align, // align the list elements (left/right/center/justify) | ||
</pre> | </pre> | ||
- | </noinclude> | + | </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}}" |
- | + | | style="font-size: 110%; background: #FF9966; text-align:{{#if:{{{talign|}}}|{{{talign}}}|center}}" | '''{{{name}}}''' | |
- | + | {{if||{{{list|}}}|{{nln}}{{!-}}{{nln}}{{!}}{{!}}{{#if:{{{listseperator|}}}|{{#replace:{{{list}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list}}}|,| • }}}}}}{{if||{{{list1|}}}|{{nln}}{{!-}}{{nln}}{{!}}{{!}}{{#if:{{{listseperator|}}}|{{#replace:{{{list1}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list1}}}|,| • }}}}}}{{if||{{{list2|}}}|{{nln}}{{!-}}{{nln}}{{!}}{{!}}{{#if:{{{listseperator|}}}|{{#replace:{{{list2}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list2}}}|,| • }}}}}}{{if||{{{list3|}}}|{{nln}}{{!-}}{{nln}}{{!}}{{!}}{{#if:{{{listseperator|}}}|{{#replace:{{{list3}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list3}}}|,| • }}}}}}{{if||{{{list4|}}}|{{nln}}{{!-}}{{nln}}{{!}}{{!}}{{#if:{{{listseperator|}}}|{{#replace:{{{list4}}}|{{{listseperator}}}| {{Navbox_listseperator}} }}|{{#replace:{{{list4}}}|,| • }}}}}} | |
+ | |}<noinclude> | ||
== Example == | == Example == | ||
{| style="width: 100%" | {| style="width: 100%" |
Current revision
[edit] 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 talign, // title align (left/right/center/justify) align, // align the list elements (left/right/center/justify)
{{{name}}} |
[edit] Example
{{Navbox2 | name = Apples | list = Elstar,Goudrenet,Golden Delicious,etc }} |
|