Difference between revisions of "Template:Football manager history/doc"

From blackwiki
Jump to navigation Jump to search
imported>Yahia.barie
(bn:টেমপ্লেট:Football manager history)
imported>Johnuniq
(update with documentation for Module:Football manager history implementation)
Line 1: Line 1:
{{Documentation subpage}}  
+
{{Documentation subpage}}
<!--
+
<includeonly>{{lua|Module:Football manager history}}</includeonly>
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
 
    YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
-->
 
  
==Usage==
+
{{tl|Football manager history}} is used to create manager history templates which are typically placed at the bottom of a manager's article. Using this template makes editing and standardisation easier.
  
{{tl|Football manager history}} is designed to be used within manager history templates (typically placed at the bottom of a managers page) in order to make editing and standardisation easier. If you want to use this template first set up a new template for the manager history, typically called something like '''Template:(team name) managers'''. It is intended to replace succession boxes within a page. To see the discussion within [[WP:FOOTY]] that led to its implementation, [[Wikipedia talk:WikiProject Football#Manager templates|follow this link]].
+
== Usage ==
  
;Conjunction
+
<pre>
This template should be used in conjunction with {{tl|Football manager list entry}} and {{tl|Football manager last}}.
+
{{Football manager history
 +
|name =
 +
|teamname =
 +
|managerlist =
 +
|title =
 +
|state = {{{state|}}}
 +
|bgcolor =
 +
|textcolor =
 +
|bordercolor =
 +
|list =
 +
|note =
 +
|below =
 +
|american_english =
 +
}}
 +
</pre>
  
==Parameters==
+
The navigation bar at the top of the navbox includes a link to the <code>|teamname=</code> page title. The link will display the <code>|title=</code> text, or <code>teamname</code> if no <code>title</code> is given.
 +
 
 +
<code>|state=</code> defaults to autocollapse.
 +
 
 +
The <code>|list=</code> parameter is followed by lines of wikitext, one manager per line. Each line must finish with either a year or a range of years. On each line, the first year must be four digits. If present, the second year must follow "to" and may be 1, 2, 3, or 4 digits, for example:
 
<pre>
 
<pre>
{{football manager history
+
|list=
|name=
+
[[Levir Culpi|Culpi]] 2005
|teamname=
+
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
|managerlist=
 
|bgcolor=
 
|textcolor=
 
|bordercolor=
 
|list =
 
|below =
 
|american_english =
 
}}
 
 
</pre>
 
</pre>
==Example==
+
 
 +
<code>|note=</code> may be used to add a note beneath the list.
 +
 
 +
== Example ==
 
<pre>
 
<pre>
 
{{Football manager history
 
{{Football manager history
|name=Aston Villa F.C. managers
+
|name = Cruzeiro Esporte Clube managers
|teamname=Aston Villa F.C.
+
|teamname = Cruzeiro Esporte Clube
|managerlist=List of Aston Villa F.C. managers
+
|title = Cruzeiro
|bgcolor=#98285c
+
|state = {{{state|}}}
|textcolor=#4F94CD
+
|bgcolor = #165A9E
|bordercolor=#4F94CD
+
|textcolor = white
|list =<div>
+
|bordercolor = #77BBFF
{{Football manager list entry|name=[[George Ramsay|Ramsay]]|from=1884|to=26}}
+
|list =
{{Football manager list entry|name=[[W. J. Smith|Smith]]|from=1926|to=34}}
+
[[Levir Culpi|Culpi]] 2005
{{Football manager list entry|name=[[Jimmy McMullan|McMullan]]|from=1934|to=35}}
+
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
{{Football manager list entry|name=[[Jimmy Hogan|Hogan]]|from=1936|to=39}}
+
[[Oswaldo de Oliveira|O. Oliveira]] 2006
{{Football manager list entry|name=[[Alex Massie|Massie]]|from=1945|to=50}}
+
[[Paulo Autuori|Autuori]] 2007
{{Football manager last|name=[[Martin O'Neill|O'Neill]]|from=2006}}
+
[[Emerson Ávila|Ávila]]<sup>c</sup> 2007
</div>
+
[[Dorival Júnior|Dorival Jr.]] 2007
 +
[[Adílson Batista|Adílson]] 2008 to 10
 +
|note = <small>(c) = [[caretaker manager]]</small>
 
}}
 
}}
 
</pre>
 
</pre>
 
produces:
 
produces:
 
{{Football manager history
 
{{Football manager history
|name=Aston Villa F.C. managers
+
|name = Cruzeiro Esporte Clube managers
|teamname=Aston Villa F.C.
+
|teamname = Cruzeiro Esporte Clube
|managerlist=List of Aston Villa F.C. managers
+
|title = Cruzeiro
|bgcolor=#98285c
+
|state = {{{state|}}}
|textcolor=#4F94CD
+
|bgcolor = #165A9E
|bordercolor=#4F94CD
+
|textcolor = white
|list =<div>
+
|bordercolor = #77BBFF
{{Football manager list entry|name=[[George Ramsay|Ramsay]]|from=1884|to=26}}
+
|list =
{{Football manager list entry|name=[[W. J. Smith|Smith]]|from=1926|to=34}}
+
[[Levir Culpi|Culpi]] 2005
{{Football manager list entry|name=[[Jimmy McMullan|McMullan]]|from=1934|to=35}}
+
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
{{Football manager list entry|name=[[Jimmy Hogan|Hogan]]|from=1936|to=39}}
+
[[Oswaldo de Oliveira|O. Oliveira]] 2006
{{Football manager list entry|name=[[Alex Massie|Massie]]|from=1945|to=50}}
+
[[Paulo Autuori|Autuori]] 2007
{{Football manager last|name=[[Martin O'Neill|O'Neill]]|from=2006}}
+
[[Emerson Ávila|Ávila]]<sup>c</sup> 2007
</div>
+
[[Dorival Júnior|Dorival Jr.]] 2007
 +
[[Adílson Batista|Adílson]] 2008 to 10
 +
|note = <small>(c) = [[caretaker manager]]</small>
 
}}
 
}}
 
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<includeonly>
 
 
[[Category:Navigational box wrapper templates]]
 
[[Category:Navigational box wrapper templates]]
 
[[Category:Association football manager history navigational boxes| ]]
 
[[Category:Association football manager history navigational boxes| ]]
 
+
}}</includeonly>
[[ar:قالب:تاريخ مدربو كرة قدم]]
 
[[bn:টেমপ্লেট:Football manager history]]
 
[[ja:Template:Football manager history]]
 
[[sv:Mall:Tränarhistoria]]
 
</includeonly>
 

Revision as of 04:46, 12 February 2016


{{Football manager history}} is used to create manager history templates which are typically placed at the bottom of a manager's article. Using this template makes editing and standardisation easier.

Usage

{{Football manager history
|name = 
|teamname = 
|managerlist = 
|title = 
|state = {{{state|}}}
|bgcolor = 
|textcolor = 
|bordercolor = 
|list = 
|note = 
|below = 
|american_english = 
}}

The navigation bar at the top of the navbox includes a link to the |teamname= page title. The link will display the |title= text, or teamname if no title is given.

|state= defaults to autocollapse.

The |list= parameter is followed by lines of wikitext, one manager per line. Each line must finish with either a year or a range of years. On each line, the first year must be four digits. If present, the second year must follow "to" and may be 1, 2, 3, or 4 digits, for example:

|list=
[[Levir Culpi|Culpi]] 2005
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06

|note= may be used to add a note beneath the list.

Example

{{Football manager history
|name = Cruzeiro Esporte Clube managers
|teamname = Cruzeiro Esporte Clube
|title = Cruzeiro
|state = {{{state|}}}
|bgcolor = #165A9E
|textcolor = white
|bordercolor = #77BBFF
|list =
[[Levir Culpi|Culpi]] 2005
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
[[Oswaldo de Oliveira|O. Oliveira]] 2006
[[Paulo Autuori|Autuori]] 2007
[[Emerson Ávila|Ávila]]<sup>c</sup> 2007
[[Dorival Júnior|Dorival Jr.]] 2007
[[Adílson Batista|Adílson]] 2008 to 10
|note = <small>(c) = [[caretaker manager]]</small>
}}

produces: