Ŝablono:Navigilo kun kaŝeblaj grupoj/dokumentado

El Kitakujo

(Malsamoj inter versioj)
Iri al: navigado, serĉi
E (Nesting other Navbox forms)
Linio 64: Linio 64:
|listo2 = {{Navigilo|infano
|listo2 = {{Navigilo|infano
|titolo      = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]]
|titolo      = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]]
-
|stato      = {{#ifeq:{{{1|}}}|french|nekaŝebla|kaŝebla}}
+
|stato      = {{#ifeq:{{{1|}}}|french|uncollapsed|collapsed}}
-
|titola stilo = background#
+
|stilo de titolo = background#
-
|grupa stilo = background:lavender;
+
|stilo de grupo = background:lavender;
|grupo1 = [[Mahgreb]]
|grupo1 = [[Mahgreb]]

Kiel registrite je 11:06, 1. Nov 2009

Ie estas eraro. Ĉu en miaj redaktoj aŭ ĉu en CSS-klasoj, kiuj ne konas kelkajn ordonojn? Ĉu oni ne devas traduki ekz. collapsed kaj uncollapsed?


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>]]
|titola stilo = background:#00008B;color:#FFD700;
|grupa stilo = background:#FFD700;color:#00008B;
|dosiero = 
|elektita = {{{1|}}}
|stato = kaŝebla

|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]]

}}

Nesting other Navbox forms

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

Nesting Navboxes to get more grupos/listos

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:


Personaj iloj