Template:Fb r/doc: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> '''{{tlf|Fb r}}''' (football result) exists to simplify the creation of results tables such as...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 63: Line 63:


<pre>
<pre>
{{fb r header |nt=12 |Arsenal |Aston Villa |Birmingham |Blackburn |Bolton |Chelsea |Derby County |Everton |Fulham |Liverpool |Manchester City |Manchester United }}
{{fb r header |nt=12 |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL }}


{{fb r team |t=Arsenal }}
{{fb r team |t=ABL}}
<!--      Arsenal -->{{Fb r |r=null }}
<!--      Arsenal -->{{Fb r |r=null }}
<!--  Aston Villa -->{{Fb r }}
<!--  Aston Villa -->{{Fb r }}
Line 83: Line 83:
===Result:===
===Result:===


{{fb r header |nt=12 |Arsenal |Aston Villa |Birmingham |Blackburn |Bolton |Chelsea |Derby County |Everton |Fulham |Liverpool |Manchester City |Manchester United }}
{{fb r header |nt=12 |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL }}


{{fb r team |t=Arsenal }}
{{fb r team |t=ABL}}
<!--      Arsenal -->{{Fb r |r=null }}
<!--      Arsenal -->{{Fb r |r=null }}
<!--  Aston Villa -->{{Fb r }}
<!--  Aston Villa -->{{Fb r }}

Latest revision as of 21:13, 11 January 2020

{{Fb r}} (football result) exists to simplify the creation of results tables such as Premier_League_2007-08#Results. It should be used together with Template:Tl2, Template:Tl2 and Template:Tl2.

Parameters

Template:TemplateDataHeader <templatedata> { "params": { "r": { "label": "Modifier", "description": "This parameter takes three values. \"null\" grays out the cell, such as the invalid cell for a team playing itself. \"ot\" indicates that the match ended in overtime. \"pk\" indicates that the match was resolved by penalty kick-out.", "type": "string", "suggested": true }, "gf": { "label": "Goals for home team", "description": "Required unless modifier (r) is null.", "type": "number", "suggested": true }, "ga": { "label": "Goals against home team", "description": "Required unless modifier (r) is null.", "type": "number", "suggested": true }, "pf": { "label": "Penalties for home team", "description": "Requires modifier (r) to be \"pk\"", "type": "number", "suggested": true }, "pa": { "label": "Penalties against home team", "description": "Requires modifier (r) to be \"pk\"", "type": "number", "suggested": true }, "ma": { "label": "Match article", "description": "The title of an article about the match. Clicking the score in the cell will take you to this page.", "type": "wiki-page-name", "suggested": true }, "nt": { "label": "Footnote number", "description": "A number to refer to a footnote in the table footer. Note that a note numbered 1 already exists so these notes must start from 2.", "type": "number" } }, "description": "Creates a single cell in a football results table. Intended to be used with Fb r header, Fb r team, and Fb r footer. See this template's page for a demonstration.\n\n", "format": "inline" } </templatedata>

Articles using it

To see examples of articles using this template, click here.

Examples

Code:

{{fb r header |nt=12 |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL |ABL }}

{{fb r team |t=ABL}}
<!--      Arsenal -->{{Fb r |r=null }}
<!--  Aston Villa -->{{Fb r }}
<!--   Birmingham -->{{Fb r |gf=2 |ga=1 }}
<!--    Blackburn -->{{Fb r |gf=4 |ga=1 |r=ot }}
<!--       Bolton -->{{Fb r |gf=1 |ga=1 |r=pk |pf=4 |pa=2 |ma=West London derby }}
<!--      Chelsea -->{{Fb r |gf=4 |ga=4 }}
<!-- Derby County -->{{Fb r |gf=2 |ga=2 |r=pk |pf=3 |pa=5 }}
<!--      Everton -->{{Fb r |gf=1 |ga=3 |r=ot }}
<!--       Fulham -->{{Fb r |gf=0 |ga=2 }}
<!--    Liverpool -->{{Fb r |ma=West London derby }}

{{fb r footer |u=14 August |s= |a=yes}}


Result:

Home ╲ Away ABL ABL ABL ABL ABL ABL ABL ABL ABL ABL ABL ABL
ABL 2–1 4–1
 OT 
1–1
4 PK 2
4–4 2–2
3 PK 5
1–3
 OT 
0–2 a

Updated to games played on 14 August.
^The home team is listed in the left-hand column.
Colours: Blue = home team win; Yellow = draw; Red = away team win.
For coming matches, an a indicates there is an article about the match.