|
|
(7 intermediate revisions not shown) |
Line 7: |
Line 7: |
| <pre style="overflow:auto;">{{Navbox | | <pre style="overflow:auto;">{{Navbox |
| |bodyclass = | | |bodyclass = |
- | |name = {{subst:PAGENAME}} | + | |name = |
| |title = | | |title = |
| |titleclass = | | |titleclass = |
Line 27: |
Line 27: |
| == Parameter list == | | == Parameter list == |
| {{Navbox | | {{Navbox |
- | |name = Navbox | + | |name = Name |
| |state = uncollapsed | | |state = uncollapsed |
| |image = {{{image}}} | | |image = {{{image}}} |
Line 67: |
Line 67: |
| | | |
| Further details, and complex restrictions, are explained below under section ''[[#Parameter descriptions|Parameter descriptions]]''. See some alternate navbox formats under: ''Layout of table''. | | Further details, and complex restrictions, are explained below under section ''[[#Parameter descriptions|Parameter descriptions]]''. See some alternate navbox formats under: ''Layout of table''. |
- |
| |
- |
| |
| | | |
| == Layout of table == | | == Layout of table == |
Line 123: |
Line 121: |
| <!--Please don't encourage folks to use <div>s within Navboxes as (unless handled carefully) they can negate liststyles/groupstyles/etc settings.--> | | <!--Please don't encourage folks to use <div>s within Navboxes as (unless handled carefully) they can negate liststyles/groupstyles/etc settings.--> |
| | | |
- | === No image ===
| |
- | <pre style="overflow:auto;">
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | group1 = Centre
| |
- | | list1 = [[Cyberjaya]]
| |
| | | |
- | | group2 = Area
| |
- | | list2 = [[Klang Valley]]
| |
| | | |
- | | group3 = Major landmarks
| |
- | | list3 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}}
| |
- | [[Putrajaya]]{{·}} [[Cyberjaya]]{{·}}
| |
- | [[Kuala Lumpur International Airport]]
| |
| | | |
- | | group4 = Infrastructure
| |
- | | list4 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
| |
| | | |
- | | group5 = Prime applications
| |
- | | list5 = [[EGovernment]]{{·}} [[MyKad]]
| |
- | }}
| |
- | </pre>
| |
| | | |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | state = uncollapsed
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | group1 = Centre
| |
- | | list1 = [[Cyberjaya]]
| |
- | | group2 = Area
| |
- | | list2 = [[Klang Valley]]
| |
- | | group3 = Major landmarks
| |
- | | list3 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}} [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}} [[Putrajaya]]{{·}} [[Cyberjaya]]{{·}} [[Kuala Lumpur International Airport]]
| |
- | | group4 = Infrastructure
| |
- | | list4 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
| |
- | | group5 = Prime applications
| |
- | | list5 = [[EGovernment]]{{·}} [[MyKad]]
| |
- | }}
| |
- |
| |
- | === With image, without groups ===
| |
- | <pre style="overflow:auto;">
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]]
| |
- | | list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}}
| |
- | [[Putrajaya]]{{·}} [[Cyberjaya]]{{·}}
| |
- | [[Kuala Lumpur International Airport]]
| |
- | }}
| |
- | </pre>
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]]
| |
- | | list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}}
| |
- | [[Putrajaya]]{{·}} [[Cyberjaya]]{{·}}
| |
- | [[Kuala Lumpur International Airport]]
| |
- | }}
| |
- |
| |
- | === With two images, without groups, multiple lists ===
| |
- | <pre style="overflow:auto;">
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]]
| |
- | | imageleft = [[Image:Flag of Malaysia.svg|80px]]
| |
- | | list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]
| |
- | | list2 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
| |
- | | list3 = [[EGovernment]]{{·}} [[MyKad]]
| |
- | | list4 = [[Klang Valley]]
| |
- | }}
| |
- | </pre>
| |
- |
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]]
| |
- | | imageleft = [[Image:Flag of Malaysia.svg|80px]]
| |
- | | list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]
| |
- | | list2 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
| |
- | | list3 = [[EGovernment]]{{·}} [[MyKad]]
| |
- | | list4 = [[Klang Valley]]
| |
- | }}
| |
- |
| |
- | === With image, groups, above, below ===
| |
- | <pre style="overflow:auto;">
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]]
| |
- |
| |
- | | above = Above text goes here
| |
- |
| |
- | | group1 = Centre
| |
- | | list1 = [[Cyberjaya]]
| |
- |
| |
- | | group2 = Area
| |
- | | list2 = [[Klang Valley]]
| |
- |
| |
- | | group3 = Major landmarks
| |
- | | list3 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}}
| |
- | [[Putrajaya]]{{·}} [[Cyberjaya]]
| |
- |
| |
- | | group4 = Infrastructure
| |
- | | list4 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
| |
- |
| |
- | | group5 = Prime applications
| |
- | | list5 = [[EGovernment]]{{·}} [[MyKad]]
| |
- |
| |
- | | below = Website: [http://www.msc.com.my/ www.msc.com.my]
| |
- | }}
| |
- | </pre>
| |
- |
| |
- | {{Navbox
| |
- | | name = Navbox/doc
| |
- | | title = [[Multimedia Super Corridor|MSC Malaysia]]
| |
- | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]]
| |
- |
| |
- | | above = Above text goes here
| |
- |
| |
- | | group1 = Centre
| |
- | | list1 = [[Cyberjaya]]
| |
- |
| |
- | | group2 = Area
| |
- | | list2 = [[Klang Valley]]
| |
- |
| |
- | | group3 = Major landmarks
| |
- | | list3 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}}
| |
- | [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}}
| |
- | [[Putrajaya]]{{·}} [[Cyberjaya]]
| |
- |
| |
- | | group4 = Infrastructure
| |
- | | list4 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
| |
- |
| |
- | | group5 = Prime applications
| |
- | | list5 = [[EGovernment]]{{·}} [[MyKad]]
| |
- |
| |
- | | below = Website: [http://www.msc.com.my/ www.msc.com.my]
| |
- | }}
| |
| | | |
| == Child navboxes == | | == Child navboxes == |
Line 287: |
Line 144: |
| | | |
| === Subgroups example === | | === Subgroups example === |
- | {{main|Template:Navbox subgroup}}
| |
- | This example shows how subgroups can be used. It is recommended that one uses {{tl|Navbox subgroup}}, but the same result can be reached by using {{tl|Navbox}} with <code>border = child</code> or the first unnamed parameter set to <code>child</code>. Note that the ''evenodd'' parameter is used to reverse striping in some of the subgroups in order to get all of the stripes to line up properly. If you wish to remove the striping altogether, you can set <code>liststyle = background:transparent;</code> in each of the navboxes.
| |
| | | |
| {{Navbox | | {{Navbox |
| |name = Navbox/doc | | |name = Navbox/doc |
- | |image = [[Image:Flag of the United States.svg|100px|link=|alt=]] | + | |image = [[Image:Padlock-silver-medium.svg|100px|link=|alt=]] |
| |state = uncollapsed | | |state = uncollapsed |
| |title = Multiple Subgroup Example | | |title = Multiple Subgroup Example |
Line 326: |
Line 181: |
| |list3 = List3 | | |list3 = List3 |
| }} | | }} |
- | }}
| |
- |
| |
- | === Multiple show/hides in a single container ===
| |
- | {{main|Template:Navbox with collapsible groups}}
| |
- | The example below is generated using a regular navbox for the main container, then its list1, list2, and list3 parameters each contain another navbox, with <code>border = child</code> set. Note that each of the child navboxes has its own VDE navbar; these could be hidden using <code>navbar = plain</code> for each of them, or by just leaving out the ''name'' parameter (child navboxes do not require the name parameter to be set, unlike regular navboxes).
| |
- |
| |
- | {{Navbox
| |
- | |name = Navbox/doc
| |
- | |title = [[Image:Blason France moderne.svg|x17px|link=|alt=]] [[Image:Flag of France.svg|x17px|link=|alt=]] [[French colonial empires|Former French overseas empire]]
| |
- | |state = uncollapsed
| |
- | |list1 = {{Navbox|child
| |
- | |name = Former French colonies in Africa and the Indian Ocean
| |
- | |title = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]]
| |
- | |groupstyle = background:lavender;
| |
- |
| |
- | |group1 = [[Mahgreb]]
| |
- | |list1 = [[French rule in Algeria|Algeria]]{{·}} [[French Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small>{{·}} [[History of Tunisia|Tunisia]]
| |
- |
| |
- | |group2 = [[French West Africa]]
| |
- | |list2 = [[History of Côte d'Ivoire#French Period|Côte d'Ivoire]]{{·}} [[French Dahomey|Dahomey]]{{·}} [[French Sudan]]{{·}} [[French Guinea|Guinea]]{{·}} [[History of Mauritania#French colonization and post-colonial history|Mauritania]]{{·}} [[History of Niger#Colonization|Niger]]{{·}} [[History of Senegal|Senegal]]{{·}} [[French Upper Volta|Upper Volta]]
| |
- |
| |
- | |group3 =
| |
- | |list3 = [[French Togoland]]{{·}} [[James Island (The Gambia)|James Island]]
| |
- |
| |
- | |group4 = [[French Equatorial Africa]]
| |
- | |list4 = [[Colonial Chad|Chad]]{{·}} [[History of Gabon|Gabon]]{{·}} [[History of the Republic of the Congo|Middle Congo]]{{·}} [[Oubangui-Chari]]
| |
- |
| |
- | |group5 = [[Comoros]]
| |
- | |list5 = [[Anjouan]]{{·}} [[Grande Comore]]{{·}} [[Mohéli]]
| |
- |
| |
- | |group6 =
| |
- | |list6 = [[History of Djibouti#French Interest|French Somaliland (Djibouti)]]{{·}} [[History of Madagascar#French Control|Madagascar]]{{·}} [[Mauritius|Ile de France]]{{·}} [[Seychelles]]
| |
- | }}
| |
- |
| |
- | |list2 = {{Navbox|child
| |
- | |name = Former French colonies in the Americas
| |
- | |titlestyle =
| |
- | |title = [[French colonial empires|Former French colonies]] in the [[Americas]]
| |
- | |groupstyle =
| |
- | |list1 = [[New France]]{{spaces|2}}<small>([[Acadia]] • [[Louisiana (New France)|Louisiana]] • [[Canada, New France|Canada]] • [[Newfoundland (island)|Terre Neuve]]) 1655 – 1763 </small>
| |
- |
| |
- | |list2 = [[Inini]]{{·}} [[Berbice]]{{·}} [[Saint-Domingue]] <small>([[Haiti]])</small>{{·}} [[Tobago]]{{·}} [[History of the British Virgin Islands|Virgin Islands]]{{·}} {{nowrap|[[France Antarctique]]}}{{·}} {{nowrap|[[France Équinoxiale]]}}
| |
- |
| |
- | |belowstyle =
| |
- | |below = [[French West India Company]]
| |
- | }}
| |
- |
| |
- | |list3 = {{Navbox|child
| |
- | |name = Former French colonies in Asia and Oceania
| |
- | |title = [[French colonial empires|Former French colonies]] in [[Asia]] and [[Oceania]]
| |
- | |groupstyle =
| |
- |
| |
- | |group1 = [[French India]]
| |
- | |list1 = [[Chandernagor]]{{·}} [[Coromandel Coast]]{{·}} [[History of Chennai|Madras]]{{·}} [[Malabar]]{{·}} [[Mahé, India|Mahé]]{{·}} [[History of Puducherry|Pondichéry]]{{·}} [[Karaikal]]{{·}} [[Yanam (India)|Yanaon]]
| |
- |
| |
- | |group2 = [[French Indochina]]
| |
- | |list2 = [[Colonial Cambodia|Cambodia]]{{·}} [[History of Laos to 1945#French Laos|Laos]]{{·}} [[French Indochina|Vietnam]] <small>([[Annam (French colony)|Annam]] • [[Cochinchina]] • [[Tonkin]])</small>
| |
- |
| |
- | |group3 = Other Asian
| |
- | |list3 = [[Alawite State|Alaouites]]{{·}} [[Republic of Hatay|Alexandretta-Hatay]]{{·}} [[Sri Lanka|Ceylon]]{{·}} [[Kwangchowan]]
| |
- |
| |
- | |group4 = [[Oceania]]
| |
- | |list4 = [[New Hebrides]] [[History of Vanuatu|(Vanuatu)]]
| |
- |
| |
- | |belowstyle =
| |
- | |below = [[French East India Company]]
| |
- | }}
| |
| }} | | }} |
This template allows a navigational template to be set up relatively quickly by supplying it one or more lists of links. It comes equipped with default styles that should work for most navigational templates. Changing the default styles is not recommended, but is possible. Using this template, or one of its "Navbox suite" sister templates, is highly recommended for standardization of navigational templates, and for ease of use.
Please remove the parameters that are left blank.
Notice "group1" (etc.) is optional, as are sections named "above/below".
The basic and most common parameters are as follows (see below for the full list):
It is possible to place multiple navboxes within a single border with the use of the border parameter, or by specifying the first parameter to be "child". The basic code for doing this is as follows (which adds a subgroup for the first group/list area):