Template:Navboxes

From MansunWiki
Revision as of 23:47, 15 July 2015 by DarkMavis (Talk | contribs) (Created page with "{{#invoke:navbox|navbox |navbar = {{#ifeq:{{{state|}}}|off |off |plain}} |title = {{{title|Links to related articles}}} |list1 = {{{list1|{{{list|}}}}}} |state = {{{state|coll...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{#invoke:navbox|navbox |navbar = plain |title = Links to related articles |list1 = |state = collapsed |titlestyle = background:#e8e8ff; |liststyle = padding:0px;font-size:113%; |listpadding = 0px; |tracking = no }}

[view] [edit] [history] [purge] Template-info.svg Template Documentation

{{#invoke:sidebar|sidebar | width = auto | bodystyle = border-spacing:0;background:#f7f7f7;padding:2px; | titleclass = navbox-title | title = Navbox suite | contentclass = plainlist | contentstyle = padding:0.25em;background:#fdfdfd;

| content1 =

| navbarstyle = background:#fdfdfd;padding:0 5px }} The {{Navboxes}} template is used to group several navigation boxes together.

Parameters

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

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

Examples

{{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: {{#invoke:navbox|navbox |navbar = plain |title = Giovanni Trapattoni navboxes |list1 = Template:Italy Squad 1962 World Cup Template:Italy national football team managers Template:Republic of Ireland national football team managers Template:A.C. Milan managers Template:F.C. Internazionale Milano managers Template:Juventus F.C. managers Template:Bayern Munich managers Template:Cagliari Calcio managers Template:ACF Fiorentina managers Template:Italy Squad 2002 World Cup Template:S.L. Benfica managers Template:VfB Stuttgart managers Template:FC Red Bull Salzburg Squad |state = expanded |titlestyle = background:#e8e8ff;background: lightblue |liststyle = padding:0px;font-size:113%; |listpadding = 0px; |tracking = no }}

Coordinates template

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]])}}'''
}}

{{#invoke:navbox|navbox |navbar = plain |title = Geographic locale |list1 = Lat. and Long. Template:Coord (Road Town, British Virgin Islands) |state = collapsed |titlestyle = background:#e8e8ff; |liststyle = padding:0px;font-size:113%; |listpadding = 0px; |tracking = no }}

Succession boxes

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

{{#invoke:navbox|navbox |navbar = plain |title = Links to related articles |list1 = Template:S-start Template:S-par Template:S-bef Template:S-ttl Template:S-inc Template:S-off Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-inc Template:S-ppo Template:S-bef Template:S-ttl Template:S-aft Template:S-bef Template:S-ttl Template:S-inc Template:S-end Template:Prime Ministers of Ireland Template:Deputy Prime Ministers of Ireland Template:Fianna Fáil Leaders Template:European Council |state = collapsed |titlestyle = background:#e8e8ff; |liststyle = padding:0px;font-size:113%; |listpadding = 0px; |tracking = no }}

Redirects

See also