Difference between revisions of "Template:Navboxes/doc"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(iw:sv) |
(Document "state" parameter and use in first example, show code for second example.) |
||
Line 1: | Line 1: | ||
− | + | {{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 group together Navigation boxes | ||
+ | |||
+ | ==Parameters== | ||
+ | |||
+ | '''title''' (optional) | ||
+ | : Text to be placed in title of this box. Defaults to: ''Links to related articles''. | ||
+ | |||
+ | '''state''' (optional) | ||
+ | : ''collapsed'' to show this template in its collapsed (hidden) 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 | ||
+ | : Defaults to: ''collapsed''. | ||
+ | |||
+ | '''list''' (required) | ||
+ | : The templates to be grouped. | ||
==Usage== | ==Usage== | ||
− | + | ||
− | + | <pre> | |
− | + | {{Navboxes | |
− | <pre>{{Navboxes | + | | title = Giovanni Trapattoni Navigation boxes |
− | |title= Giovanni Trapattoni Navigation boxes | + | | state = expanded |
− | | | + | | list = {{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 26: | Line 41: | ||
{{FC Red Bull Salzburg Squad}} | {{FC Red Bull Salzburg Squad}} | ||
}} | }} | ||
+ | </pre> | ||
− | |||
which gives | which gives | ||
{{Navboxes | {{Navboxes | ||
− | |title= Giovanni Trapattoni Navigation boxes | + | | title = Giovanni Trapattoni Navigation boxes |
− | | | + | | state = expanded |
+ | | list = {{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 49: | Line 65: | ||
===Succession boxes=== | ===Succession boxes=== | ||
− | If | + | If succession boxes are listed first a <nowiki><span></nowiki> is need to have the template display correctly (see example below). |
− | {{Navboxes| | + | |
− | list1= | + | Also, any instances of <code>|-</code> in a succession box should be replaced with <code><nowiki>{{!}}-</nowiki></code> |
+ | |||
+ | <pre style="overflow:auto; margin-right:5px"> | ||
+ | {{Navboxes | ||
+ | | list1 = | ||
<span> | <span> | ||
{{s-start}} | {{s-start}} | ||
Line 96: | Line 116: | ||
{{European Council}} | {{European Council}} | ||
}} | }} | ||
− | + | </pre> | |
− | + | {{Navboxes | |
+ | | list1 = | ||
+ | <span> | ||
+ | {{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 Arts, Sport and Tourism (Ireland)|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 (Ireland)|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 Joseph Lenihan|Brian Lenihan]]}} | ||
+ | {{s-bef|before=[[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 – present}} | ||
+ | {{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 – present}} | ||
+ | {{s-inc}} | ||
+ | {{s-end}} | ||
+ | {{Prime Ministers of Ireland}} | ||
+ | {{Deputy Prime Ministers of Ireland}} | ||
+ | {{Fianna Fáil Leaders}} | ||
+ | {{European Council}} | ||
+ | }} | ||
<includeonly> | <includeonly> | ||
[[Category:Navbox (navigational) templates|{{PAGENAME}}]] | [[Category:Navbox (navigational) templates|{{PAGENAME}}]] | ||
+ | |||
[[fr:Modèle:Navboxes]] | [[fr:Modèle:Navboxes]] | ||
[[ja:Template:Navboxes]] | [[ja:Template:Navboxes]] |
Revision as of 21:22, 8 August 2009
This is a documentation subpage for Template:Navboxes. It contains usage information, categories and other content that is not part of the original template page. |
This template is used group together Navigation boxes
Parameters
title (optional)
- Text to be placed in title of this box. Defaults to: Links to related articles.
state (optional)
- collapsed to show this template in its collapsed (hidden) 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
- Defaults to: collapsed.
list (required)
- The templates to be grouped.
Usage
{{Navboxes | title = Giovanni Trapattoni Navigation boxes | state = expanded | list = {{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
Important: Don't include {{coord}} in the group. This would prevent the coordinates from being displayed.
Succession boxes
If succession boxes are listed first a <span> is need to have the template display correctly (see example below).
Also, any instances of |-
in a succession box should be replaced with {{!}}-
{{Navboxes | list1 = <span> {{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 Arts, Sport and Tourism (Ireland)|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 (Ireland)|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 Joseph Lenihan|Brian Lenihan]]}} {{s-bef|before=[[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 – present}} {{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 – present}} {{s-inc}} {{s-end}} {{Prime Ministers of Ireland}} {{Deputy Prime Ministers of Ireland}} {{Fianna Fáil Leaders}} {{European Council}} }}
|