Jump to content

"سانچہ:Navboxes/doc" کے نسخوں کے درمیان فرق

تمام مندرجات حذف
(«{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>Wikipedia:Wikidata<nowiki>]]) --> {{High-use| 34972 }} <includeonly>{{Template display|nomobile}}</includeonly> {{Navbox suite}} {{Template shortcut|Related pages|Template group}} {{Lua|Module:Navboxes|Module:Navbox|Module:Check for unknown parameters}} The {{tl|Navboxes}} template is used to...» مواد پر مشتمل نیا صفحہ بنایا)
 
(تمام مندرجات حذف)
ٹیگ: تمام مندرجات حذف
 
سطر 1: سطر 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
{{High-use| 34972 }}
<includeonly>{{Template display|nomobile}}</includeonly>
{{Navbox suite}}
{{Template shortcut|Related pages|Template group}}
{{Lua|Module:Navboxes|Module:Navbox|Module:Check for unknown parameters}}


The {{tl|Navboxes}} template is used to group several [[WP:CLN#Navigation templates|navigation boxes]] together.
'''Warning:''' This template effectively doubles the [[WP:PEIS|post-expand include size]] of the navbox templates, which can cause the templates not to display. For large numbers of navboxes, use {{tl|Navboxes top}} and {{tl|Navboxes bottom}} instead.
==Usage==
<syntaxhighlight lang="wikitext">
<!-- Blank syntax -->
{{Navboxes
|title = <!-- optional, default is "Links to related articles" -->
|titlestyle = <!-- optional -->
|state = <!-- optional, default is collapsed -->
|list1 = <!-- required, or |list= -->
}}
</syntaxhighlight>
== Redirects==
* {{Tl|nva}}
==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
==Examples==
<syntaxhighlight lang="wikitext">
{{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}}
}}
</syntaxhighlight>
which gives:
{{Navboxes
| title = Giovanni Trapattoni navboxes
| state = expanded
| titlestyle = background: lightblue
| 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}}
}}
On larger pages, this should be replaced with:
<syntaxhighlight lang="wikitext">
{{Navboxes top
| title = Giovanni Trapattoni navboxes
| state = expanded
| titlestyle = background: lightblue <!-- or hexcode-like #AAFFFF, defaults to #CCCCFF (violet) -->
}}
{{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}}
{{Navboxes bottom}}
</syntaxhighlight>
===Coordinates template===
The {{Tlx|coord}} template may be included in the template group.  Just remember to set the {{para|display}} parameter equal to "inline" thus: {{tlx|coord|18|25|53|N|64|37|23|W|display{{=}}inline}}. This enables the coordinates to appear no matter what [[WP:Skin|skin]] you're in. The {{tlx|coord}} template can even be nested in a Navbox titled '''Geographic locale''', which is already found on many country pages.
<syntaxhighlight lang="wikitext" style="overflow:auto; margin-right:5px">
{{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]])}}'''
}}
</syntaxhighlight>
{{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===
Any instances of <code>|-</code> in a succession box should be replaced with <code><nowiki>{{!}}-</nowiki></code>, or {{tl|Navboxes top}} and {{tl|Navboxes bottom}} should be used instead.
<syntaxhighlight lang="wikitext" style="overflow:auto; margin-right:5px">
{{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 (Fine Gael)|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 heads of government of Ireland}}
{{Fianna Fáil Leaders}}
{{European Council}}
}}
</syntaxhighlight>
{{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–}}
{{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 (politician)|Michael Lowry]]}}
{{s-bef|before=[[Michael Noonan (Fine Gael)|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 heads of government of Ireland}}
{{Fianna Fáil Leaders}}
{{European Council}}
}}
==Tracking categories==
* {{clc|Navboxes template with no content}}
* {{clc|Pages using navboxes with unknown parameters}}
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Navbox meta-templates|*]]
[[Category:Wikipedia formatting and function templates]]
[[Category:Templates that add a tracking category]]
[[Category:Collapse templates]]
}}</includeonly>