Template:Payoff matrix
Appearance
From Wikipedia, the free encyclopedia
Left
Right
Up
0, 0
0, 0
Down
0, 0
0, 0
Payoff matrix
Usage
[edit ]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 = |
See also
[edit ]The above documentation is transcluded from Template:Payoff matrix/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.