Difference between revisions of "Template:Chess diagram alt text"
Jump to navigation
Jump to search
imported>Quale (an old simplification edit broke handling of empty cells (they produced " black king|link=" instead of the desired "link=")) |
imported>Quale (fix bungled merge of old version with correct empty square handling) |
||
| Line 48: | Line 48: | ||
|x9={{{1}}} nine | |x9={{{1}}} nine | ||
|#default={{{1}}} {{{2}}} | |#default={{{1}}} {{{2}}} | ||
| − | |||
| − | |||
| − | |||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
Latest revision as of 04:55, 9 August 2012
|link=
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
This template takes 2 arguments:
- {{{1}}} is the cell number, eg "a1", "b8", etc.
- {{{2}}} is the icon reference, eg: "kd", "kl", "bl", etc
It produces alt text. Cells with content read like "b8 black king".
Empty cells - which are just spaces or "__" - have no alt text (they emit |link= to fit with alt text guidelines.