Difference between revisions of "Template:Navboxes/doc"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (update info)
m (7 revisions from wikipedia:Template:Navboxes/doc)
 
(27 intermediate revisions by 22 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}<!--should only display when viewed from /doc page-->
 
{{Documentation subpage}}<!--should only display when viewed from /doc page-->
{{Template sandbox notice}}<!--should only display when viewed from /sandbox page-->
 
 
<!--  
 
<!--  
 
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
 
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
 
     YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
     YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
-->
 
-->
This template is used to group several Navigation boxes together.  
+
{{Navbox suite}}
 +
The {{tl|Navboxes}} template is used to group several [[WP:CLN#Navigation templates|navigation boxes]] together.  
  
 
==Parameters==
 
==Parameters==
 
'''title''' (optional)
 
'''title''' (optional)
: Text to be placed in title of this box. Defaults to: ''Links to related articles''.
+
: Alternate text to be placed in title box, defaults to "'''Links to related articles'''".
  
 
'''state''' (optional)
 
'''state''' (optional)
: ''collapsed'' to show this template in its collapsed (hidden) state
+
: ''collapsed'' to show this template in its collapsed (hidden) state, this is the ''default'' state
 
: ''expanded'' to show this template in its expanded (fully visible) state
 
: ''expanded'' to show this template in its expanded (fully visible) state
 
: ''autocollapse'' to show this template in its collapsed (hidden) state '''only if''' there is another collapsible template on the page
 
: ''autocollapse'' to show this template in its collapsed (hidden) state '''only if''' there is another collapsible template on the page
: Defaults to: ''collapsed''.
 
  
 
'''list''' (required)
 
'''list''' (required)
: The templates to be grouped.
+
: list of the templates to be grouped
  
 
==Usage==
 
==Usage==
 +
;Blank syntax
 
<pre>
 
<pre>
 
{{Navboxes
 
{{Navboxes
| title = Giovanni Trapattoni Navigation boxes
+
|title = <!-- optional, default is "Links to related articles" -->
 +
|titlestyle = <!-- optional -->
 +
|state = <!-- optional, default is collapsed -->
 +
|list1 = <!-- required, or |list= -->
 +
}}</pre>
 +
 
 +
==Examples==
 +
<pre>
 +
{{Navboxes
 +
| title = Giovanni Trapattoni navboxes
 
| state = expanded
 
| state = expanded
| titlestyle = background: lightblue <-- hexcode can also be used, like #AAFFFF (default=violet) -->
+
| titlestyle = background: lightblue <-- or hexcode-like #AAFFFF, defaults to #CCCCFF (violet) -->
| list = {{Italy Squad 1962 World Cup}}
+
| list1 = {{Italy Squad 1962 World Cup}}
 
{{Italy national football team managers}}
 
{{Italy national football team managers}}
 
{{Republic of Ireland national football team managers}}
 
{{Republic of Ireland national football team managers}}
Line 42: Line 51:
 
</pre>
 
</pre>
  
which gives
+
which gives:
 
{{Navboxes
 
{{Navboxes
| title = Giovanni Trapattoni Navigation boxes
+
| title = Giovanni Trapattoni navboxes
 
| state = expanded
 
| state = expanded
 
| titlestyle = background: lightblue
 
| titlestyle = background: lightblue
| list = {{Italy Squad 1962 World Cup}}
+
| list1 = {{Italy Squad 1962 World Cup}}
 
{{Italy national football team managers}}
 
{{Italy national football team managers}}
 
{{Republic of Ireland national football team managers}}
 
{{Republic of Ireland national football team managers}}
Line 65: Line 74:
 
The <nowiki>{{</nowiki>[[Template:Coord|coord]]<nowiki>}}</nowiki> template may be included in the template group.  Just remember to set the "display=" parameter equal to "inline" thus:  <nowiki>{{coord|18|25|53|N|64|37|23|W|display=inline}}</nowiki>. This enables the coordinates to appear no matter what [[WP:Skin|skin]] you're in.  The <nowiki>{{</nowiki>[[Template:Coord|coord]]<nowiki>}}</nowiki> template can even be nested in a Navbox titled '''Geographic locale''', which is already found on many country pages.
 
The <nowiki>{{</nowiki>[[Template:Coord|coord]]<nowiki>}}</nowiki> template may be included in the template group.  Just remember to set the "display=" parameter equal to "inline" thus:  <nowiki>{{coord|18|25|53|N|64|37|23|W|display=inline}}</nowiki>. This enables the coordinates to appear no matter what [[WP:Skin|skin]] you're in.  The <nowiki>{{</nowiki>[[Template:Coord|coord]]<nowiki>}}</nowiki> template can even be nested in a Navbox titled '''Geographic locale''', which is already found on many country pages.
  
<pre>
+
<pre style="overflow:auto; margin-right:5px">
 
{{Navboxes
 
{{Navboxes
 
|title = Geographic locale
 
|title = Geographic locale
|list =  
+
|list1 =  
 
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
 
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
 
}}
 
}}
Line 75: Line 84:
 
{{Navboxes
 
{{Navboxes
 
|title = Geographic locale
 
|title = Geographic locale
|list =  
+
|list1 =  
 
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
 
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
 
}}
 
}}
Line 95: Line 104:
 
{{s-aft|after=[[Mervyn Taylor]]}}
 
{{s-aft|after=[[Mervyn Taylor]]}}
 
{{s-bef|before=[[Albert Reynolds]]}}
 
{{s-bef|before=[[Albert Reynolds]]}}
{{s-ttl|title=[[Minister for Arts, Sport and Tourism (Ireland)|Minister for Energy]]|years=1993}}
+
{{s-ttl|title=[[Minister for Tourism, Culture and Sport|Minister for Energy]]|years=1993}}
 
{{s-aft|after=[[Charlie McCreevy]]<br/><small>Minister for Tourism and Trade</small>}}
 
{{s-aft|after=[[Charlie McCreevy]]<br/><small>Minister for Tourism and Trade</small>}}
 
{{s-bef|before=[[Charlie McCreevy]]<br/><small>Minister for Tourism, Transport and Communications</small>}}
 
{{s-bef|before=[[Charlie McCreevy]]<br/><small>Minister for Tourism, Transport and Communications</small>}}
Line 101: Line 110:
 
{{s-aft|after=[[Michael Lowry]]}}
 
{{s-aft|after=[[Michael Lowry]]}}
 
{{s-bef|before=[[Michael Noonan]]<br><small>Minister for Health</small>}}
 
{{s-bef|before=[[Michael Noonan]]<br><small>Minister for Health</small>}}
{{s-ttl|title=[[Minister for Health and Children (Ireland)|Minister for Health and Children]]<br><small>Minister for Health (1997)</small>|years=1997–2000}}
+
{{s-ttl|title=[[Minister for Health and Children]]<br><small>Minister for Health (1997)</small>|years=1997–2000}}
 
{{s-aft|after=[[Micheál Martin]]}}
 
{{s-aft|after=[[Micheál Martin]]}}
 
{{s-bef|before=[[David Andrews (Irish politician)|David Andrews]]}}
 
{{s-bef|before=[[David Andrews (Irish politician)|David Andrews]]}}
Line 108: Line 117:
 
{{s-bef|before=[[Charlie McCreevy]]}}
 
{{s-bef|before=[[Charlie McCreevy]]}}
 
{{s-ttl|title=[[Minister for Finance (Ireland)|Minister for Finance]]|years=2004–2008}}
 
{{s-ttl|title=[[Minister for Finance (Ireland)|Minister for Finance]]|years=2004–2008}}
{{s-aft|after=[[Brian Joseph Lenihan|Brian Lenihan]]}}
+
{{s-aft|after=[[Brian Lenihan, Jnr|Brian Lenihan]]}}
{{s-bef|before=[[Michael McDowell]]}}
+
{{s-bef|before=[[Michael McDowell (politician)|Michael McDowell]]}}
 
{{s-ttl|title=[[Tánaiste]]|years=2007–2008}}
 
{{s-ttl|title=[[Tánaiste]]|years=2007–2008}}
 
{{s-aft|after=[[Mary Coughlan (politician)|Mary Coughlan]]}}
 
{{s-aft|after=[[Mary Coughlan (politician)|Mary Coughlan]]}}
Line 142: Line 151:
 
{{s-aft|after=[[Mervyn Taylor]]}}
 
{{s-aft|after=[[Mervyn Taylor]]}}
 
{{s-bef|before=[[Albert Reynolds]]}}
 
{{s-bef|before=[[Albert Reynolds]]}}
{{s-ttl|title=[[Minister for Arts, Sport and Tourism (Ireland)|Minister for Energy]]|years=1993}}
+
{{s-ttl|title=[[Minister for Tourism, Culture and Sport|Minister for Energy]]|years=1993}}
 
{{s-aft|after=[[Charlie McCreevy]]<br/><small>Minister for Tourism and Trade</small>}}
 
{{s-aft|after=[[Charlie McCreevy]]<br/><small>Minister for Tourism and Trade</small>}}
 
{{s-bef|before=[[Charlie McCreevy]]<br/><small>Minister for Tourism, Transport and Communications</small>}}
 
{{s-bef|before=[[Charlie McCreevy]]<br/><small>Minister for Tourism, Transport and Communications</small>}}
Line 148: Line 157:
 
{{s-aft|after=[[Michael Lowry]]}}
 
{{s-aft|after=[[Michael Lowry]]}}
 
{{s-bef|before=[[Michael Noonan]]<br><small>Minister for Health</small>}}
 
{{s-bef|before=[[Michael Noonan]]<br><small>Minister for Health</small>}}
{{s-ttl|title=[[Minister for Health and Children (Ireland)|Minister for Health and Children]]<br><small>Minister for Health (1997)</small>|years=1997–2000}}
+
{{s-ttl|title=[[Minister for Health and Children]]<br><small>Minister for Health (1997)</small>|years=1997–2000}}
 
{{s-aft|after=[[Micheál Martin]]}}
 
{{s-aft|after=[[Micheál Martin]]}}
 
{{s-bef|before=[[David Andrews (Irish politician)|David Andrews]]}}
 
{{s-bef|before=[[David Andrews (Irish politician)|David Andrews]]}}
Line 155: Line 164:
 
{{s-bef|before=[[Charlie McCreevy]]}}
 
{{s-bef|before=[[Charlie McCreevy]]}}
 
{{s-ttl|title=[[Minister for Finance (Ireland)|Minister for Finance]]|years=2004–2008}}
 
{{s-ttl|title=[[Minister for Finance (Ireland)|Minister for Finance]]|years=2004–2008}}
{{s-aft|after=[[Brian Joseph Lenihan|Brian Lenihan]]}}
+
{{s-aft|after=[[Brian Lenihan, Jnr|Brian Lenihan]]}}
{{s-bef|before=[[Michael McDowell]]}}
+
{{s-bef|before=[[Michael McDowell (politician)|Michael McDowell]]}}
 
{{s-ttl|title=[[Tánaiste]]|years=2007–2008}}
 
{{s-ttl|title=[[Tánaiste]]|years=2007–2008}}
 
{{s-aft|after=[[Mary Coughlan (politician)|Mary Coughlan]]}}
 
{{s-aft|after=[[Mary Coughlan (politician)|Mary Coughlan]]}}
Line 177: Line 186:
  
 
==Redirects==
 
==Redirects==
*{{tl|Navbox shell}}
 
 
*{{tl|Related pages}}
 
*{{tl|Related pages}}
 
*{{tl|Template group}}
 
*{{tl|Template group}}
  
==See also==
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:Navigational boxes|{{PAGENAME}}]]
* [[WP:Related information]] - an optional heading for navigation boxes
+
}}</includeonly>
 
 
<includeonly>
 
[[Category:Navbox (navigational) templates|{{PAGENAME}}]]
 
 
 
[[fa:الگو:جعبه‌های ناوبری]]
 
[[ar:قالب:navboxes]]
 
[[cs:Šablona:Navboxes]]
 
[[fr:Modèle:Navboxes]]
 
[[hr:Predložak:Navigacije]]
 
[[id:Templat:Kelompok templat]]
 
[[mk:Шаблон:Шаблонска група]]
 
[[ja:Template:Navboxes]]
 
[[ka:თარგი:თარგების ჯგუფი]]
 
[[pl:Szablon:Grupa szablonów]]
 
[[pt:Predefinição:Navboxes]]
 
[[ru:Шаблон:Навигационный блок]]
 
[[sv:Mall:Navboxes]]
 
</includeonly>
 

Latest revision as of 02:35, 29 February 2016

The {{Navboxes}} template is used to group several navigation boxes together.

Parameters[edit]

title (optional)

Alternate text to be placed in title box, defaults to "Links to related articles".

state (optional)

collapsed to show this template in its collapsed (hidden) state, this is the default state
expanded to show this template in its expanded (fully visible) state
autocollapse to show this template in its collapsed (hidden) state only if there is another collapsible template on the page

list (required)

list of the templates to be grouped

Usage[edit]

Blank syntax
{{Navboxes
|title = <!-- optional, default is "Links to related articles" -->
 |titlestyle = <!-- optional -->
|state = <!-- optional, default is collapsed -->
|list1 = <!-- required, or |list= -->
}}

Examples[edit]

{{Navboxes
| title = Giovanni Trapattoni navboxes
| state = expanded
| titlestyle = background: lightblue <-- or hexcode-like #AAFFFF, defaults to #CCCCFF (violet) -->
| list1  = {{Italy Squad 1962 World Cup}}
{{Italy national football team managers}}
{{Republic of Ireland national football team managers}}
{{A.C. Milan managers}}
{{F.C. Internazionale Milano managers}}
{{Juventus F.C. managers}}
{{Bayern Munich managers}}
{{Cagliari Calcio managers}}
{{ACF Fiorentina managers}}
{{Italy Squad 2002 World Cup}}
{{S.L. Benfica managers}}
{{VfB Stuttgart managers}}
{{FC Red Bull Salzburg Squad}}
}}

which gives:

Coordinates template[edit]

The {{coord}} template may be included in the template group. Just remember to set the "display=" parameter equal to "inline" thus: {{coord|18|25|53|N|64|37|23|W|display=inline}}. This enables the coordinates to appear no matter what skin you're in. The {{coord}} template can even be nested in a Navbox titled Geographic locale, which is already found on many country pages.

{{Navboxes
|title = Geographic locale
|list1 = 
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
}}

Succession boxes[edit]

Any instances of |- in a succession box should be replaced with {{!}}-

{{Navboxes
| list1 =
{{s-start}}
{{s-par|ie/oi}}
{{s-bef|before=[[Bernard Cowen]]<br/><small>([[Fianna Fáil]])</small>}}
{{s-ttl|title=[[Fianna Fáil]] [[Teachta Dála]] for [[Laois–Offaly (Dáil Éireann constituency)|Laois–Offaly]]|years=1984–present}}
{{s-inc}}
{{s-off}}
{{s-bef|before=[[Michael O'Kennedy]]}}
{{s-ttl|title=[[Minister for Labour (Ireland)|Minister for Labour]]|years=1992–1993}}
{{s-aft|after=[[Mervyn Taylor]]}}
{{s-bef|before=[[Albert Reynolds]]}}
{{s-ttl|title=[[Minister for Tourism, Culture and Sport|Minister for Energy]]|years=1993}}
{{s-aft|after=[[Charlie McCreevy]]<br/><small>Minister for Tourism and Trade</small>}}
{{s-bef|before=[[Charlie McCreevy]]<br/><small>Minister for Tourism, Transport and Communications</small>}}
{{s-ttl|title=[[Minister for Transport (Ireland)|Minister for Transport, Energy and Communications]]|years=1993–1994}}
{{s-aft|after=[[Michael Lowry]]}}
{{s-bef|before=[[Michael Noonan]]<br><small>Minister for Health</small>}}
{{s-ttl|title=[[Minister for Health and Children]]<br><small>Minister for Health (1997)</small>|years=1997–2000}}
{{s-aft|after=[[Micheál Martin]]}}
{{s-bef|before=[[David Andrews (Irish politician)|David Andrews]]}}
{{s-ttl|title=[[Minister for Foreign Affairs (Ireland)|Minister for Foreign Affairs]]|years=2000–2004}}
{{s-aft|after=[[Dermot Ahern]]}}
{{s-bef|before=[[Charlie McCreevy]]}}
{{s-ttl|title=[[Minister for Finance (Ireland)|Minister for Finance]]|years=2004–2008}}
{{s-aft|after=[[Brian Lenihan, Jnr|Brian Lenihan]]}}
{{s-bef|before=[[Michael McDowell (politician)|Michael McDowell]]}}
{{s-ttl|title=[[Tánaiste]]|years=2007–2008}}
{{s-aft|after=[[Mary Coughlan (politician)|Mary Coughlan]]}}
{{s-bef|before=[[Bertie Ahern]]}}
{{s-ttl|title=[[Taoiseach]]|years=2008–}}
{{s-inc}}
{{s-ppo}}
{{s-bef|before=[[Mary O'Rourke]]}}
{{s-ttl|title=[[Fianna Fáil|Deputy Leader of the Fianna Fáil Party]]|years=2002–2008}}
{{s-aft|after=TBD}}
{{s-bef|before=[[Bertie Ahern]]}}
{{s-ttl|title=[[Fianna Fáil|Leader of the Fianna Fáil Party]]|years=2008–}}
{{s-inc}}
{{s-end}}
{{Prime Ministers of Ireland}}
{{Deputy Prime Ministers of Ireland}}
{{Fianna Fáil Leaders}}
{{European Council}}
}}

Redirects[edit]