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

From blackwiki
Jump to navigation Jump to search
imported>Johnuniq
(american_english)
imported>Johnuniq
(new syntax from=xxx, to=xxx for incomplete/unknown dates)
Line 8: Line 8:
 
<pre>
 
<pre>
 
{{Football manager history
 
{{Football manager history
|name =  
+
|name =
|teamname =  
+
|teamname =
|managerlist =  
+
|managerlist =
|title =  
+
|title =
 
|state = {{{state|}}}
 
|state = {{{state|}}}
|bgcolor =  
+
|bgcolor =
|textcolor =  
+
|textcolor =
|bordercolor =  
+
|bordercolor =
|list =  
+
|list =
|note =  
+
|note =
|below =  
+
|below =
|american_english =  
+
|american_english =
 
}}
 
}}
 
</pre>
 
</pre>
Line 38: Line 38:
 
<code>|note=</code> may be used to add a note beneath the list.
 
<code>|note=</code> may be used to add a note beneath the list.
  
== Example ==
+
If information is missing, an alternate syntax is available using <code>from=<small>''FROM''</small></code> and <code>to=<small>''TO''</small></code>. Any text can be used for <code><small>''FROM''</small></code> and <code><small>''TO''</small></code>, but there must be no spaces. For example:
 +
<pre>
 +
|list=
 +
[[Example|Example A]] from=19??
 +
[[Levir Culpi|Culpi]] 2005
 +
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
 +
[[Example|Example B]] from=2011 to=?
 +
</pre>
 +
 
 +
== Examples ==
 +
<pre>
 +
{{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>
 +
}}
 +
</pre>
 +
produces:
 +
{{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>
 +
}}
 +
 
 
<pre>
 
<pre>
 
{{Football manager history
 
{{Football manager history
Line 49: Line 98:
 
|bordercolor = #77BBFF
 
|bordercolor = #77BBFF
 
|list =
 
|list =
 +
[[Example|Example A]] from=19??
 
[[Levir Culpi|Culpi]] 2005
 
[[Levir Culpi|Culpi]] 2005
 
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
 
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
Line 56: Line 106:
 
[[Dorival Júnior|Dorival Jr.]] 2007
 
[[Dorival Júnior|Dorival Jr.]] 2007
 
[[Adílson Batista|Adílson]] 2008 to 10
 
[[Adílson Batista|Adílson]] 2008 to 10
 +
[[Example|Example B]] from=2011 to=?
 
|note = <small>(c) = [[caretaker manager]]</small>
 
|note = <small>(c) = [[caretaker manager]]</small>
 
}}
 
}}
Line 69: Line 120:
 
|bordercolor = #77BBFF
 
|bordercolor = #77BBFF
 
|list =
 
|list =
 +
[[Example|Example A]] from=19??
 
[[Levir Culpi|Culpi]] 2005
 
[[Levir Culpi|Culpi]] 2005
 
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
 
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
Line 76: Line 128:
 
[[Dorival Júnior|Dorival Jr.]] 2007
 
[[Dorival Júnior|Dorival Jr.]] 2007
 
[[Adílson Batista|Adílson]] 2008 to 10
 
[[Adílson Batista|Adílson]] 2008 to 10
 +
[[Example|Example B]] from=2011 to=?
 
|note = <small>(c) = [[caretaker manager]]</small>
 
|note = <small>(c) = [[caretaker manager]]</small>
 
}}
 
}}

Revision as of 01:12, 11 April 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.

By default, the navigation bar will display "managers". If |american_english= is defined (for example, |american_english=on), "Head coaches" is displayed instead of "managers".

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

If information is missing, an alternate syntax is available using from=FROM and to=TO. Any text can be used for FROM and TO, but there must be no spaces. For example:

|list=
[[Example|Example A]] from=19??
[[Levir Culpi|Culpi]] 2005
[[Paulo César Gusmão|PC Gusmão]] 2005 to 06
[[Example|Example B]] from=2011 to=?

Examples

{{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:

{{Football manager history
|name = Cruzeiro Esporte Clube managers
|teamname = Cruzeiro Esporte Clube
|title = Cruzeiro
|state = {{{state|}}}
|bgcolor = #165A9E
|textcolor = white
|bordercolor = #77BBFF
|list =
[[Example|Example A]] from=19??
[[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
[[Example|Example B]] from=2011 to=?
|note = <small>(c) = [[caretaker manager]]</small>
}}

produces: