Payoff matrix
From enfascination
Line 1: | Line 1: | ||
− | : | + | {| id="Payoff matrix" style="background:white; float: {{{Float|right}}}; clear:right; text-align:center;" align={{{Float|right}}} cellspacing=0 cellpadding=8 width={{{Width|225}}} |
+ | |- | ||
+ | |style="width:33%; "| | ||
+ | |style="width:33%; border-bottom: solid black 1px;"| {{{2L|Left}}} | ||
+ | |style="width:33%; border-bottom: solid black 1px;"| {{{2R|Right}}} | ||
+ | |- | ||
+ | |style="border-right: solid black 1px; text-align: right; "| {{{1U|Up}}} | ||
+ | |style="border-right: solid black 1px; border-bottom: solid black 1px; background:{{{ULc|white}}}; font-size:120%; "| {{{UL|0, 0}}} | ||
+ | |style="border-right: solid black 1px; border-bottom: solid black 1px; background:{{{URc|white}}}; font-size:120%; "| {{{UR|0, 0}}} | ||
+ | |- | ||
+ | |style="border-right: solid black 1px; text-align: right; "| {{{1D|Down}}} | ||
+ | |style="border-right: solid black 1px; border-bottom: solid black 1px; background:{{{DLc|white}}}; font-size:120%; "| {{{DL|0, 0}}} | ||
+ | |style="border-right: solid black 1px; border-bottom: solid black 1px; background:{{{DRc|white}}}; font-size:120%; "| {{{DR|0, 0}}} | ||
+ | |- | ||
+ | |style="font-size: 90%;" colspan=3 |''{{{Name|{{PAGENAME}}}}}'' | ||
+ | |}<noinclude> | ||
− | + | This template allows simple construction of 2-player, 2-strategy [[Normal form game|payoff matrices]] in [[game theory]] and other articles. | |
− | + | There are no required fields: | |
− | + | *<u>Strategies</u> '''1U''', '''1D''' default to "Up", "Down", '''2L''', '''2R''' to "Left", "Right". | |
− | * | + | *<u>Cell payoffs</u> '''UL''', '''UR''', '''DL''', '''DR''' all default to "0, 0". |
− | + | *The <u>Name</u> field defaults to the page name. | |
− | + | *The <u>Float</u> field defaults to "right", but can also be set to "left" or "none" (for inline use). | |
− | + | *The <u>Width</u> field defaults to "225" pixels (cell widths: 75|75|75), but can also be set to other absolute or percentage values. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | : | + | Standard matrix format: |
+ | <nowiki>{{</nowiki>Payoff matrix | Name = | ||
+ | | 2L = | 2R = | | ||
+ | 1U = | UL = | UR = | | ||
+ | 1D = | DL = | DR = | | ||
+ | Float = | Width = }} | ||
− | + | Default color for all cells is white. To color the cells, include [[Web colors|color labels]] (e.g. "silver" or "#C0C0C0") in the '''ULc''', '''URc''', '''DLc''' and '''DRc''' fields: | |
+ | ULc = | URc = | DLc = | DRc = | | ||
− | + | [[Category:Game templates|{{PAGENAME}}]] | |
− | + | </noinclude> |
Latest revision as of 00:10, 8 October 2009
Left | Right | |
Up | 0, 0 | 0, 0 |
Down | 0, 0 | 0, 0 |
Payoff matrix |
This template allows simple construction of 2-player, 2-strategy payoff matrices in game theory and other articles.
There are no required fields:
- Strategies 1U, 1D default to "Up", "Down", 2L, 2R to "Left", "Right".
- Cell payoffs UL, UR, DL, DR all default to "0, 0".
- The Name field defaults to the page name.
- The Float field defaults to "right", but can also be set to "left" or "none" (for inline use).
- The Width field defaults to "225" pixels (cell widths: 75|75|75), but can also be set to other absolute or percentage values.
Standard matrix format:
{{Payoff matrix | Name = | 2L = | 2R = | 1U = | UL = | UR = | 1D = | DL = | DR = | Float = | Width = }}
Default color for all cells is white. To color the cells, include color labels (e.g. "silver" or "#C0C0C0") in the ULc, URc, DLc and DRc fields:
ULc = | URc = | DLc = | DRc = |