Ŝablono:Navigilo kun kaŝeblaj grupoj/dokumentado
El Kitakujo
E (laŭ angla) |
(→Rilataj ŝablonoj: Intervikiaj ligiloj el vikipedio ne funkcias ĉi tie) |
||
(24 mezaj versioj ne montrata.) | |||
Linio 1: | Linio 1: | ||
- | + | {{Ŝablona navigado}} | |
+ | == Ekzemploj == | ||
+ | ===Baza ekzemplo=== | ||
+ | <pre style="overflow:scroll;"> | ||
+ | {{Navigilo kun kaŝeblaj grupoj | ||
+ | |nomo = Universitato de Michigan | ||
+ | |titolo = [[Universitato de Miĉigano|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]] | ||
+ | |stilo de titolo = background:#00008B;color:#FFD700; | ||
+ | |stilo de grupo = background:#FFD700;color:#00008B; | ||
+ | |dosiero = | ||
+ | |elektita = {{{1|}}} | ||
+ | |stato = collapsed | ||
- | [[ | + | |grupo1 = [[Universito de Miĉigano#Academic profile|<span style="color:#00008B;">Academics</span>]] |
- | [[ | + | |mallongigo1 = academics |
- | [[ | + | |listo1 = [[University of Michigan College of Engineering|College of Engineering]] • [[University of Michigan College of Literature, Science, and the Arts|College of Literature, Science and the Arts]] • [[Gerald R. Ford School of Public Policy]] • [[University of Michigan Law School|Law School]] • [[University of Michigan Health System|Medical School]] • [[Ross School of Business]] • [[University of Michigan School of Education|School of Education]] • [[University of Michigan School of Information|School of Information]] • [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]] • [[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]] • [[University of Michigan School of Public Health|School of Public Health]] • [[Taubman College of Architecture and Urban Planning]] |
- | [[ | + | |
- | [[ | + | |grupo2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]] |
- | [[ | + | |mallongigo2 = athletics |
- | [[ | + | |listo2 = [[Michigan Stadium|Michigan Stadium]] • [[Crisler Arena|Crisler Arena]] • [[Yost Ice Arena|Yost Ice Arena]] • [[Michigan Wolverines|Michigan Wolverines]] • [[Michigan Wolverines football|Football]] • [[Michigan-Ohio Stato rivalry|UM-OSU Rivalry]] • [[Little Brown Jug (football)|Little Brown Jug]] • [[Paul Bunyan Trophy]] • [[Cold War (ice hockey)|Cold War]] |
- | [[ | + | |
- | [[ | + | |grupo3 = Campus |
+ | |mallongigo3 = campus | ||
+ | |listo3 = [[Angell Hall Observatory]] • [[Burton Tower]] • [[The Diag]] • [[David M. Dennison Building|Dennison Building]] • [[Gerald R. Ford Presidential Library]] • [[Hill Auditorium|Hill Auditorium]] • [[Lurie Tower]] • [[Matthaei Botanical Gardens]] • [[Michigan Union]] • [[Museums at the University of Michigan|Museums]] • [[Nichols Arboretum]] • [[University of Michigan Health System|UM Health System]] • [[University of Michigan Library|University Library]] | ||
+ | |||
+ | }} | ||
+ | </pre> | ||
+ | {{Navigilo kun kaŝeblaj grupoj | ||
+ | |nomo = Universito de Miĉigano | ||
+ | |stato = collapsed | ||
+ | |titolo = [[Universito de Miĉigano|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]] | ||
+ | |stilo_de_titolo = background:#00008B;color:#FFD700; | ||
+ | |stilo_de_grupo = background:#FFD700;color:#00008B; | ||
+ | |image = | ||
+ | |elektita = {{{1|}}} | ||
+ | |||
+ | |grupo1 = [[University of Michigan#Academic profile|<span style="color:#00008B;">Academics</span>]] | ||
+ | |mallongigo1 = academics | ||
+ | |listo1 = [[University of Michigan College of Engineering|College of Engineering]] • [[University of Michigan College of Literature, Science, and the Arts|College of Literature, Science and the Arts]] • [[Gerald R. Ford School of Public Policy]] • [[University of Michigan Law School|Law School]] • [[University of Michigan Health System|Medical School]] • [[Ross School of Business]] • [[University of Michigan School of Education|School of Education]] • [[University of Michigan School of Information|School of Information]] • [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]] • [[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]] • [[University of Michigan School of Public Health|School of Public Health]] • [[Taubman College of Architecture and Urban Planning]] | ||
+ | |||
+ | |grupo2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]] | ||
+ | |mallongigo2 = athletics | ||
+ | |listo2 = [[Michigan Stadium|Michigan Stadium]] • [[Crisler Arena|Crisler Arena]] • [[Yost Ice Arena|Yost Ice Arena]] • [[Michigan Wolverines|Michigan Wolverines]] • [[Michigan Wolverines football|Football]] • [[Michigan-Ohio Stato rivalry|UM-OSU Rivalry]] • [[Little Brown Jug (football)|Little Brown Jug]] • [[Paul Bunyan Trophy]] • [[Cold War (ice hockey)|Cold War]] | ||
+ | |||
+ | |grupo3 = Campus | ||
+ | |mallongigo3 = campus | ||
+ | |listo3 = [[Angell Hall Observatory]] • [[Burton Tower]] • [[The Diag]] • [[David M. Dennison Building|Dennison Building]] • [[Gerald R. Ford Presidential Library]] • [[Hill Auditorium|Hill Auditorium]] • [[Lurie Tower]] • [[Matthaei Botanical Gardens]] • [[Michigan Union]] • [[Museums at the University of Michigan|Museums]] • [[Nichols Arboretum]] • [[University of Michigan Health System|UM Health System]] • [[University of Michigan Library|University Library]] | ||
+ | |||
+ | }} | ||
+ | |||
+ | ===Nestado de aliaj formoj de Navigiloj=== | ||
+ | This example shows {{ŝ|Navigilo}}, {{ŝ|Navigilo kun kaŝeblaj grupoj}} and {{ŝ|Navigilo kun kolumnoj}} all working together. Press the edit button for the section to view the code. Note that each of the infano navboxes has the first parameter set to <code>infano</code> | ||
+ | {{Navigilo kun kaŝeblaj grupoj | ||
+ | |nomo = Navigilo kun kaŝeblaj grupoj | ||
+ | |titolo = Navigilo, Navigilo kun kolumnoj kaj Navigilo kun kaŝeblaj grupoj komune | ||
+ | |elektita = {{{1|}}} | ||
+ | |||
+ | |grupo1 = [[:Kategorio:Skoltismo|Skoltisma Movado]] | ||
+ | |mallongigo1 = movado | ||
+ | |listo1 = [[Scouting]] • ''[[Scouting for Boys]]'' • [[Scout method]] • [[Scout Law]] • [[Scout Promise]] • [[Scout Motto]] • [[Wood Badge]] • [[Age grupos in Scouting and Guiding]] • [[Cub Scout]] • [[Boy Scout]] • [[Rover Scout]] • [[Brownie (Girl Guides)|Brownie]] • [[Girl Guiding and Girl Scouting]] • [[Ranger (Girl Guide)]] • [[Jamboree (Scouting)|Jamboree]] • [[Scout Leader]] • [[World Organization of the Scout Movement|WOSM]] • [[World Association of Girl Guides and Girl Scouts|WAGGGS]] • [[Non-aligned Scouting and Scout-like organisations|Non-aligned organisations]] • [[Scouting controversy and conflict]] • [[Scouting in popular culture]] • [[Listo of Scouts]] • [[Listo of highest awards in Scouting]] | ||
+ | |||
+ | |listo2 = {{Navigilo2|infano | ||
+ | |titolo = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]] | ||
+ | |stato = {{#ifeq:{{{1|}}}|french|uncollapsed|collapsed}} | ||
+ | |stilo de titolo = background# | ||
+ | |stilo de grupo = background:lavender; | ||
+ | |||
+ | |grupo1 = [[Mahgreb]] | ||
+ | |listo1 = [[French rule in Algeria|Algeria]] • [[French Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small> • [[History of Tunisia|Tunisia]] | ||
+ | |||
+ | |grupo2 = [[French West Africa]] | ||
+ | |listo2 = [[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]] | ||
+ | |||
+ | |grupo3 = | ||
+ | |listo3 = [[French Togoland]] • [[James Island (The Gambia)|James Island]] | ||
+ | |||
+ | |grupo4 = [[French Equatorial Africa]] | ||
+ | |listo4 = [[Colonial Chad|Chad]] • [[History of Gabon|Gabon]] • [[History of the Republic of the Congo|Middle Congo]] • [[Oubangui-Chari]] | ||
+ | |||
+ | |grupo5 = [[Comoros]] | ||
+ | |listo5 = [[Anjouan]] • [[Grande Comore]] • [[Mohéli]] | ||
+ | |||
+ | |grupo6 = | ||
+ | |listo6 = [[History of Djibouti#French Interest|French Somaliland (Djibouti)]] • [[History of Madagascar#French Control|Madagascar]] • [[Mauritius|Ile de France]] • [[Seychelles]] | ||
+ | |||
+ | }} | ||
+ | |||
+ | |grupo3 = [[:Kategorio:Scouting in the United Kingdom|Scouting in the United Kingdom]] | ||
+ | |mallongigo3 = Scouting | ||
+ | |listo3 = [[The Scout Association]] • [[Girlguiding UK]] • [[Beaver Scouts]] • [[Cub Section (UK)]] • [[Venture Scout]] • [[Explorer Scouts]] • [[Brownie (Girl Guides)]] • [[Ranger (Girl Guide)]] • [[Rainbow (Girl Guides)]] • [[Scout Network]] • [[Chief Scout (United Kingdom)]] • [[Scout Counties]] • [[Scout District]] • [[Scout Section (UK)]] • [[Scout Activity Centre]] • [[Young Leaders (The Scout Association)|Young Leaders]] | ||
+ | |||
+ | |listo4 = {{Navigilo kun kolumnoj|infano | ||
+ | |stato = {{#ifeq:{{{1|}}}|kolumnotest|uncollapsed|collapsed}} | ||
+ | |titolo = Navigilo kun kolumnoj ordigitaj en si | ||
+ | |kolumnostilo = text-align:center; | ||
+ | |||
+ | |kolumno1larĝo = 33% | ||
+ | |kolumno2larĝo = 17% | ||
+ | |kolumno3larĝo = 33% | ||
+ | |kolumno4larĝo = 17% | ||
+ | |||
+ | |kolumno1kapo = kolumno1kapo | ||
+ | |kolumno2kapo = kolumno2kapo | ||
+ | |kolumno3kapo = kolumno3kapo | ||
+ | |kolumno4kapo = kolumno4kapo | ||
+ | |||
+ | |kolumno1 = {{Navigilo kun kolumnoj|infano | ||
+ | |kolumnolarĝo = 50% | ||
+ | |kolumnostyle = text-align:center; | ||
+ | |||
+ | |kolumno1kapo = kolumno1.1kapo | ||
+ | |kolumno2kapo = kolumno1.2kapo | ||
+ | |||
+ | |kolumno1 = kolumno1.1 | ||
+ | |kolumno2 = kolumno1.2 | ||
+ | }} | ||
+ | |||
+ | |kolumno2 = kolumno2 | ||
+ | |||
+ | |kolumno3 = {{Navigilo kun kolumnoj|infano | ||
+ | |kolumnolarĝo = 33% | ||
+ | |kolumnostilo = text-align:center; | ||
+ | |||
+ | |kolumno1kapo = kolumno3.1kapo | ||
+ | |kolumno2kapo = kolumno3.2kapo | ||
+ | |kolumno3kapo = kolumno3.3kapo | ||
+ | |||
+ | |kolumno1 = kolumno3.1 | ||
+ | |kolumno2 = kolumno3.2 | ||
+ | |kolumno3 = kolumno3.3 | ||
+ | }} | ||
+ | |||
+ | |kolumno4 = kolumno4 | ||
+ | }} | ||
+ | |||
+ | }} | ||
+ | |||
+ | ===Nestado de Navigiloj por ricevi plurajn grupojn/listojn=== | ||
+ | You can conveniently nest Navboxes, including {{ŝ|Navigilo kun kaŝeblaj grupoj}}, to get an unlimited number of grupos/listos. The following example uses one instance of {{ŝ|Navigilo kun kaŝeblaj grupoj}} to get the first 10 collapsible grupos, a nested instance to get the next 10, and another nested instance to get the last 6. See the code to learn how it works. It is fairly simple to extend this to as many grupos/listos as you like: | ||
+ | |||
+ | {{Navigilo kun kaŝeblaj grupoj | ||
+ | |nomo = {{PAGENAME}} | ||
+ | |stato = collapsed | ||
+ | |titolo = Titolo | ||
+ | |elektita = {{{1|}}} | ||
+ | |||
+ | |grupo1 = A | ||
+ | |listo1 = Listo A | ||
+ | |grupo2 = B | ||
+ | |listo2 = Listo B | ||
+ | |grupo3 = C | ||
+ | |listo3 = Listo C | ||
+ | |grupo4 = D | ||
+ | |listo4 = Listo D | ||
+ | |grupo5 = E | ||
+ | |listo5 = Listo E | ||
+ | |grupo6 = F | ||
+ | |listo6 = Listo F | ||
+ | |grupo7 = G | ||
+ | |listo7 = Listo G | ||
+ | |grupo8 = H | ||
+ | |listo8 = Listo H | ||
+ | |grupo9 = I | ||
+ | |listo9 = Listo I | ||
+ | |||
+ | |listo10 = {{Navigilo kun kaŝeblaj grupoj|infano | ||
+ | |elektita = {{{1|}}} | ||
+ | |||
+ | |grupo1 = J | ||
+ | |listo1 = Listo J | ||
+ | |grupo2 = K | ||
+ | |listo2 = Listo K | ||
+ | |grupo3 = L | ||
+ | |listo3 = Listo L | ||
+ | |grupo4 = M | ||
+ | |listo4 = Listo M | ||
+ | |grupo5 = N | ||
+ | |listo5 = Listo N | ||
+ | |grupo6 = O | ||
+ | |listo6 = Listo O | ||
+ | |grupo7 = P | ||
+ | |listo7 = Listo P | ||
+ | |grupo8 = Q | ||
+ | |listo8 = Listo Q | ||
+ | |grupo9 = R | ||
+ | |listo9 = Listo R | ||
+ | |||
+ | |listo10 = {{Navigilo kun kaŝeblaj grupoj|infano | ||
+ | |elektita = {{{1|}}} | ||
+ | |||
+ | |grupo1 = S | ||
+ | |listo1 = Listo S | ||
+ | |grupo2 = T | ||
+ | |listo2 = Listo T | ||
+ | |grupo3 = U | ||
+ | |listo3 = Listo U | ||
+ | |grupo4 = V | ||
+ | |listo4 = Listo V | ||
+ | |grupo5 = W | ||
+ | |listo5 = Listo W | ||
+ | |grupo6 = X | ||
+ | |listo6 = Listo X | ||
+ | |grupo7 = Y | ||
+ | |listo7 = Listo Y | ||
+ | |grupo8 = Z | ||
+ | |listo8 = Listo Z | ||
+ | }} | ||
+ | |||
+ | }} | ||
+ | |||
+ | }} | ||
+ | ==Rilataj ŝablonoj== | ||
+ | {{Navigilaro}} | ||
+ | |||
+ | <includeonly> | ||
+ | [[Kategorio:Ŝablono:Formatigo|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> |
Nuna versio ekde 11:28, 24. Aŭg 2010
Enhavo |
Ekzemploj
Baza ekzemplo
{{Navigilo kun kaŝeblaj grupoj |nomo = Universitato de Michigan |titolo = [[Universitato de Miĉigano|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]] |stilo de titolo = background:#00008B;color:#FFD700; |stilo de grupo = background:#FFD700;color:#00008B; |dosiero = |elektita = {{{1|}}} |stato = collapsed |grupo1 = [[Universito de Miĉigano#Academic profile|<span style="color:#00008B;">Academics</span>]] |mallongigo1 = academics |listo1 = [[University of Michigan College of Engineering|College of Engineering]] • [[University of Michigan College of Literature, Science, and the Arts|College of Literature, Science and the Arts]] • [[Gerald R. Ford School of Public Policy]] • [[University of Michigan Law School|Law School]] • [[University of Michigan Health System|Medical School]] • [[Ross School of Business]] • [[University of Michigan School of Education|School of Education]] • [[University of Michigan School of Information|School of Information]] • [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]] • [[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]] • [[University of Michigan School of Public Health|School of Public Health]] • [[Taubman College of Architecture and Urban Planning]] |grupo2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]] |mallongigo2 = athletics |listo2 = [[Michigan Stadium|Michigan Stadium]] • [[Crisler Arena|Crisler Arena]] • [[Yost Ice Arena|Yost Ice Arena]] • [[Michigan Wolverines|Michigan Wolverines]] • [[Michigan Wolverines football|Football]] • [[Michigan-Ohio Stato rivalry|UM-OSU Rivalry]] • [[Little Brown Jug (football)|Little Brown Jug]] • [[Paul Bunyan Trophy]] • [[Cold War (ice hockey)|Cold War]] |grupo3 = Campus |mallongigo3 = campus |listo3 = [[Angell Hall Observatory]] • [[Burton Tower]] • [[The Diag]] • [[David M. Dennison Building|Dennison Building]] • [[Gerald R. Ford Presidential Library]] • [[Hill Auditorium|Hill Auditorium]] • [[Lurie Tower]] • [[Matthaei Botanical Gardens]] • [[Michigan Union]] • [[Museums at the University of Michigan|Museums]] • [[Nichols Arboretum]] • [[University of Michigan Health System|UM Health System]] • [[University of Michigan Library|University Library]] }}
Nestado de aliaj formoj de Navigiloj
This example shows {{Navigilo}}, {{Navigilo kun kaŝeblaj grupoj}} and {{Navigilo kun kolumnoj}} all working together. Press the edit button for the section to view the code. Note that each of the infano navboxes has the first parameter set to infano
|
Nestado de Navigiloj por ricevi plurajn grupojn/listojn
You can conveniently nest Navboxes, including {{Navigilo kun kaŝeblaj grupoj}}, to get an unlimited number of grupos/listos. The following example uses one instance of {{Navigilo kun kaŝeblaj grupoj}} to get the first 10 collapsible grupos, a nested instance to get the next 10, and another nested instance to get the last 6. See the code to learn how it works. It is fairly simple to extend this to as many grupos/listos as you like:
|
Rilataj ŝablonoj
kaŝebla | Kaplinia koloro | Bildo(j) | Grupoj | Stilo (enhavo) parametro/j |
Ekzemploj | |
---|---|---|---|---|---|---|
{{Navigilo}} | style="background: #ddffdd; color: black;" class="table-yes2" NavFrame | NavHead | style="background: #ddffdd; color: black;" class="table-yes2" Maldekstre de la enhavo (1) | Ne | Ne | {{Eŭropa Unio}}, {{Federaciaj landoj de Germanio}} |
{{Navigilo2}}# | style="background: #ddffdd; color: black;" class="table-yes2" collapsible | navbox1 | style="background: #ddffdd; color: black;" class="table-yes2" Maldekstre de la enhavo (1) | Jes | Jes | {{Ĉefaj renkontiĝoj}}, {{Estroj de Sovetunio}}, {{Snajperoj de la dua mondmilito}} |
{{Navigilo kun kolumnoj}} | style="background: #ddffdd; color: black;" class="table-yes2" collapsible | navbox | style="background: #ddffdd; color: black;" class="table-yes2" Maldekstre de la enhavo (1) | Jes | Jes | {{Listo de afrikaj ĉefurboj}}, {{Listo de nordamerikaj ĉefurboj}} |
{{Navigilo subgrupo}}3 | Ne | N/A | style="background: #ddffdd; color: black;" class="table-yes2" Maldekstre de la enhavo (1) | Jes | Jes | {{Unua mondmilito}} |
{{Kaŝskatolo}} | style="background: #ddffdd; color: black;" class="table-yes2" NavFrame | NavHead2 | style="background: #ddffdd; color: black;" class="table-yes2" (Mal)dekstre de la enhavo (2) | Ne | Jes | {{Eŭropaj Esperanto-asocioj}}, {{NATO}} |
{{Navigacipanelo}} | style="background: #ddffdd; color: black;" class="table-yes2" NavFrame | NavHead | style="background: #ddffdd; color: black;" class="table-yes2" Maldekstre de la enhavo (1) | Ne | Ne | {{Antikva Kriptografio}} |
{{Navigilo kun kaŝeblaj grupoj}} | ||||||
1 Ĝi ŝanĝeblas per CSS-formatoj en la parametro stilo_de ĉefa_titolo.
2 Ĝi ŝanĝeblas per rekta difino laŭ CSS-formatoj en la parametro 3 Ĝi nur uzeblas ene de {{Navigilo2}} # Ĝi estas interne uzata de la du sekvaj. |
Speco | CSS klasoj | Javaskripto | Ĝi kaŝiĝas, se | Propra komenca stato |
Ingigo |
---|---|---|---|---|---|
Kaŝeblaj tabeloj | collapsible | Difinita en Common.js | pli ol 1 memkaŝanta estas sur la paĝo. | Jes | Jes |
Kaŝeblaj blokoj | NavFrame |