Edytujesz
Szablon:Navbox/doc
(sekcja)
Przejdź do nawigacji
Przejdź do wyszukiwania
Uwaga:
Nie jesteś zalogowany. Jeśli wykonasz jakąkolwiek zmianę, Twój adres IP będzie widoczny publicznie. Jeśli
zalogujesz się
lub
utworzysz konto
, Twoje zmiany zostaną przypisane do konta, wraz z innymi korzyściami.
Filtr antyspamowy.
Nie
wpisuj tu nic!
== Child navboxes == {{Selfref|For additional examples, see the [[Template:Navbox/testcases|Navbox testcases page]].}} It is possible to place multiple navboxes within a single border. These can either be specified inline or by using a nested navbox template, although the latter method can result in a signifcantly large [[WP:PEIS|post-expand include size]]. To specify child navboxes inline, set the <code>list<sub>n</sub></code> parameter to <code>child</code> or <code>subgroup</code>. Elements of the child navbox can be specified by prepending <code>child<sub>n</sub>_</code>, <code>subgroup<sub>n</sub>_</code>, or just <code><sub>n</sub>_</code> to the parameter names (e.g. <code>1_list1</code>). Child navboxes can be nested by adding an additional prefix (e.g. <code>1_1_list1</code>). The basic code for doing this is as follows (which adds a subgroup for the first group/list area): <pre style="overflow: auto;"> {{Navbox | name = {{subst:PAGENAME}} | title = Title | group1 = [optional] | list1 = child | 1_title = [optional] | 1_group1 = [optional] | 1_list1 = child | 1_1_title = [optional] | 1_1_group1 = [optional] | 1_1_list1 = ...list contents... ... ... }} </pre> To specify child navboxes using a nested template, use "child" as the first parameter or set the ''border'' parameter. The basic code for doing this is as follows (which adds a subgroup for the first group/list area): <pre style="overflow: auto;"> {{Navbox | name = {{subst:PAGENAME}} | title = Title | group1 = [optional] | list1 = {{Navbox|child ...child navbox parameters... }} ... }} </pre> === Subgroups example === This example shows two subgroups and a sub-subgroup created using <code>child</code> and <code>subgroup</code> keywords (both are interchangible). The striping is alternated automatically. To remove the striping altogether, you can set <code>child<sub>n</sub>_liststyle = background:transparent;</code> in each. {{{{PAGENAMETDOC}} | name = Navbox/doc | state = uncollapsed | title = Multiple subgroup example | above = Above | below = Below | group1 = Group1 | list1 = List1 | group2 = Group2 | list2 = child | child2_group1 = Group2.1 | child2_list1 = List1 | child2_group2 = Group2.2 | child2_list2 = List2 | child2_group3 = Group2.3 | child2_list3 = List3 | group3 = Group3 | list3 = List3 | group4 = Group4 | list4 = subgroup | subgroup4_group1 = Group4.1 | subgroup4_list1 = List1 | subgroup4_group2 = Group4.2 | subgroup4_list2 = List2 | subgroup4_group3 = Group4.3 | subgroup4_list3 = child |subgroup4_child3_group1 = Group 4.3.1 |subgroup4_child3_list1 = List1 |subgroup4_child3_group2 = Group 4.3.2 |subgroup4_child3_list2 = List2 }} === 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 the <code>child</code> keyword. The view (v), talk (t), edit (e) navbar links are hidden automatically because the "child" or "subgroup" keyword is used, so using <code>navbar = plain</code> for each of them is not necessary. The code <syntaxhighlight lang="wikitext" inline>N_state = {{#ifeq:{{{selected|}}|ABBREVIATION|uncollapsed|{{{stateN|collapsed}}}}}</syntaxhighlight> is used to replicate the <syntaxhighlight lang="wikitext" inline>abbrN = ABBREVIATION</syntaxhighlight> functionality of {{tl|Navbox with collapsible groups}}. {{{{PAGENAMETDOC}} | name = Navbox/doc | title = [[French colonial empire|Former French overseas empire]] | state = uncollapsed | list1 = child | 1_state = {{#ifeq:{{{selected|}}|Africa|uncollapsed|{{{state1|collapsed}}}}} | 1_title = [[French colonial empire|Former French colonies]] in [[Africa]] and the [[Indian Ocean]] | 1_listclass = hlist | 1_group1 = [[Mahgreb]] | 1_list1 = * [[French rule in Algeria|Algeria]] * [[French Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small> * [[History of Tunisia|Tunisia]] | 1_group2 = [[French West Africa]] | 1_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]] | 1_group3 = [[French Equatorial Africa]] | 1_list3 = * [[Colonial Chad|Chad]] * [[History of Gabon|Gabon]] * [[History of the Republic of the Congo|Middle Congo]] * [[Oubangui-Chari]] | 1_group4 = [[Comoros]] | 1_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 = child | 2_state = {{#ifeq:{{{selected|}}|Americas|uncollapsed|{{{state2|collapsed}}}}} | 2_title = [[French colonial empire|Former French colonies]] in the [[Americas]] | 2_listclass = hlist | 2_list1 = * [[New France]]{{spaces|2}}<small>([[Acadia]], [[Louisiana (New France)|Louisiana]], [[Canada, New France|Canada]], [[Newfoundland (island)|Terre Neuve]]) 1655–1763 </small> | 2_list2 = * [[Inini]] * [[Berbice]] * [[Saint-Domingue]] * <small>[[Haiti]]</small> * [[Tobago]] * [[History of the British Virgin Islands|Virgin Islands]] * [[France Antarctique]] * [[France Équinoxiale]] | 2_below = [[French West India Company]] | list3 = child | 3_state = {{#ifeq:{{{selected|}}|Asia|uncollapsed|{{{state3|collapsed}}}}} | 3_title = [[French colonial empire|Former French colonies]] in [[Asia]] and [[Oceania]] | 3_listclass = hlist | 3_group1 = [[Asia]] | 3_list1 = child | 3_1_group1 = [[French India]] | 3_1_list1 = * [[Chandernagor]] * [[Coromandel Coast]] * [[History of Chennai|Madras]] * [[Mahé, India|Mahé]] * [[History of Pondicherry|Pondichéry]] * [[Karaikal]] * [[Yanam (India)|Yanaon]] | 3_1_group2 = [[French Indochina]] | 3_1_list2 = * [[Colonial Cambodia|Cambodia]] * [[History of Laos to 1945#French Laos|Laos]] * [[French Indochina|Vietnam]] <small>([[Annam (French colony)|Annam]], [[Cochinchina]], [[Tonkin]])</small> | 3_1_group3 = Other Asian | 3_1_list3 = * [[Alawite State|Alaouites]] * [[Republic of Hatay|Alexandretta-Hatay]] * [[Sri Lanka|Ceylon]] * [[Kwangchowan]] | 3_group4 = [[Oceania]] | 3_list4 = * [[New Hebrides]] ** [[History of Vanuatu|Vanuatu]] | 3_below = [[French East India Company]] }}
Opis zmian:
Wkład na Mcseriopedia jest udostępniany na licencji Creative Commons – za podaniem autora (szczegóły w
Mcseriopedia:Prawa autorskie
). Jeśli nie chcesz, żeby Twój tekst był dowolnie zmieniany przez każdego i rozpowszechniany bez ograniczeń, nie umieszczaj go tutaj.
Zapisując swoją edycję, oświadczasz, że ten tekst jest Twoim dziełem lub pochodzi z materiałów dostępnych na warunkach
domeny publicznej
, lub kompatybilnych.
PROSIMY NIE WPROWADZAĆ MATERIAŁÓW CHRONIONYCH PRAWEM AUTORSKIM BEZ POZWOLENIA WŁAŚCICIELA!
Anuluj
Pomoc w edycji
(otwiera się w nowym oknie)
Menu nawigacyjne
Narzędzia osobiste
Nie jesteś zalogowany
Dyskusja
Tryb ciemny
Edycje
Utwórz konto
Zaloguj się
Przestrzenie nazw
Szablon
Dyskusja
polski
Widok
Czytaj
Edytuj kod źródłowy
Wyświetl historię
Więcej
Szukaj
Nawigacja
Strona główna
Ostatnie zmiany
Losowa strona
Pomoc z MediaWiki
Pomoc z edytowaniem
Główne katalogi
Drzewo kategorii
Oś czasu
Księga ksiąg
Wszystkie strony
Narzędzia
Linkujące
Zmiany w linkowanych
Strony specjalne
Informacje o tej stronie