Changes

Jump to: navigation, search

Template:Navbox/doc

7,385 bytes removed, 17:11, 1 July 2016
Remove documentation examples which are generating multiple spurious wanted pages. If it breaks anything, I'll revert the page
<!-- Please do not encourage folks to use <div> 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]]
| listclass = hlist
 
| 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]]
| listclass = hlist
| 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]]
| listclass = hlist
| image = [[File: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]]
| listclass = hlist
| image = [[File: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]]
| listclass = hlist
| image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]
| imageleft = [[File: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]]
| listclass = hlist
| image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]
| imageleft = [[File: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]]
| listclass = hlist
| above = Above text goes here
| image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]
 
| 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 = Below text goes here
}}
</pre>
{{Navbox
| name = Navbox/doc
| title = [[Multimedia Super Corridor|MSC Malaysia]]
| listclass = hlist
| above = Above text goes here
| image = [[File:Flag of Malaysia.svg|80px|link=|alt=]]
| 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 = Below text goes here
}}
== Child navboxes ==
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>1 = child</code> set. The view (v), discuss (d), edit (e) navbar links are hidden using <code>navbar = plain</code> for each of them, or could be suppressed 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 = [[File:Blason France moderne.svg|x17px|link=|alt=]] [[File:Flag of France.svg|x17px|link=|alt=]] [[French colonial empire|Former French overseas empire]]| state = uncollapsed| list1 = {{Navbox|child | navbar = plain | title = [[French colonial empire|Former French colonies]] in [[Africa]] and the [[Indian Ocean]] | listclass = hlist | 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]]* [[French Togoland]]* [[James Island (The Gambia)|James Island]]| group3 = [[French Equatorial Africa]] | list3 =* [[Colonial Chad|Chad]]* [[History of Gabon|Gabon]]* [[History of the Republic of the Congo|Middle Congo]]* [[Oubangui-Chari]]| group4 = [[Comoros]] | list4 =* [[Anjouan]]* [[Grande Comore]]* [[Mohéli]]* [[History of Djibouti#French Interest|French Somaliland (Djibouti)]]* [[History of Madagascar#French control|Madagascar]]* [[Mauritius|Ile de France]]* [[Seychelles]]}}| list2 = {{Navbox|child | navbar = plain | title = [[French colonial empire|Former French colonies]] in the [[Americas]] | listclass = hlist| list1 =* [[New France]]<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]]* [[France Antarctique]]* [[France Équinoxiale]]| below = [[French West India Company]]}}| list3 = {{Navbox|child | navbar = plain | title = [[French colonial empire|Former French colonies]] in [[Asia]] and [[Oceania]] | listclass = hlist| group1 = [[French India]] | list1 =* [[Chandernagor]]* [[Coromandel Coast]]* [[History of Chennai|Madras]]* [[Mahé, India|Mahé]]* [[History of Pondicherry|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]]| below = [[French East India Company]]}}}}
== Technical details ==
# If the heading of the navbox spans more than one line, the second line will be displayed to the right of center. This can be avoided by hard-coding linebreaks with {{tag|br|single|params=clear="all"}}.
# In Internet Explorer 8 and 9, there is a bug when using <code>hlist</code>; navbox will fail to wrap the list to the next line if the list items start with an image, causing navbox to extend its width outside the screen. This can be fixed by adding <code>&amp;nbsp;</code> in front of the images.
# Excessive use of the '''unsubstituted''' {{tlx|•}} template as a delimiter, can in extreme cases cause the wiki page rendering to fail&nbsp;— there is a limit to the number of templates that can be used on a page (example [[Ketamine]] where the inclusion of eleven Navboxes with hundreds of bullets caused the page load not to complete, only the substitution of the bullets in those navboxes cured the problem). Use of the <code>hlist</code> class avoids the delimiter transclusion issue altogether, as the delimiters are rendered via CSS.
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
Trustworthy, administrator
11,914
edits

Navigation menu