Difference between revisions of "Template:Chess position"
m (create (bit of an experiment)) |
m (rmv cellpadding) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude><pre>{{Template:Chess position|<!-- | + | <noinclude>See instructions at [[AoPSWiki:Chess]]. |
+ | |||
+ | <pre>{{Template:Chess position|<!-- | ||
8 -->rd|nd|bd|qd|kd|bd|nd|rd|<!-- | 8 -->rd|nd|bd|qd|kd|bd|nd|rd|<!-- | ||
7 -->pd|pd|pd|pd|pd|pd|pd|pd|<!-- | 7 -->pd|pd|pd|pd|pd|pd|pd|pd|<!-- | ||
Line 7: | Line 9: | ||
3 --> | | | | | | | |<!-- | 3 --> | | | | | | | |<!-- | ||
2 -->pl|pl|pl|pl|pl|pl|pl|pl|<!-- | 2 -->pl|pl|pl|pl|pl|pl|pl|pl|<!-- | ||
− | 1 -->rl|nl|bl|ql|kl|bl|nl|rl | + | 1 -->rl|nl|bl|ql|kl|bl|nl|rl}} |
<!-- a b c d e f g h --> | <!-- a b c d e f g h --> | ||
</pre> | </pre> | ||
− | </noinclude>{| cellspacing="0" cellpadding="0" style=" | + | |
+ | To resize the board, use the attribute '''size=''', followed by the number of pixels per square you wish for. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | </noinclude>{| cellspacing="0" cellpadding="0" style="font-family:monospace;" | ||
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align:center;" |8 |
− | + | | [[Image:chess_{{{1|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{2|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{3|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{4|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{5|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{6|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{7|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{8|}}}d40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align:center;" |7 |
− | + | | [[Image:chess_{{{9|}}}d40.png|{{{size|}}}px]] | |
− | | [[Image:chess_{{{10|}}}l40.png|{{{ | + | | [[Image:chess_{{{10|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{11|}}}d40.png|{{{ | + | | [[Image:chess_{{{11|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{12|}}}l40.png|{{{ | + | | [[Image:chess_{{{12|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{13|}}}d40.png|{{{ | + | | [[Image:chess_{{{13|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{14|}}}l40.png|{{{ | + | | [[Image:chess_{{{14|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{15|}}}d40.png|{{{ | + | | [[Image:chess_{{{15|}}}d40.png|{{{size|}}}px]] |
− | + | | [[Image:chess_{{{16|}}}l40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align:center;" | 6 |
− | + | | [[Image:chess_{{{17|}}}l40.png|{{{size|}}}px]] | |
− | | [[Image:chess_{{{18|}}}d40.png|{{{ | + | | [[Image:chess_{{{18|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{19|}}}l40.png|{{{ | + | | [[Image:chess_{{{19|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{20|}}}d40.png|{{{ | + | | [[Image:chess_{{{20|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{21|}}}l40.png|{{{ | + | | [[Image:chess_{{{21|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{22|}}}d40.png|{{{ | + | | [[Image:chess_{{{22|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{23|}}}l40.png|{{{ | + | | [[Image:chess_{{{23|}}}l40.png|{{{size|}}}px]] |
− | + | | [[Image:chess_{{{24|}}}d40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align: center; " | 5 |
− | + | | [[Image:chess_{{{25|}}}d40.png|{{{size|}}}px]] | |
− | | [[Image:chess_{{{26|}}}l40.png|{{{ | + | | [[Image:chess_{{{26|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{27|}}}d40.png|{{{ | + | | [[Image:chess_{{{27|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{28|}}}l40.png|{{{ | + | | [[Image:chess_{{{28|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{29|}}}d40.png|{{{ | + | | [[Image:chess_{{{29|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{30|}}}l40.png|{{{ | + | | [[Image:chess_{{{30|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{31|}}}d40.png|{{{ | + | | [[Image:chess_{{{31|}}}d40.png|{{{size|}}}px]] |
− | + | | [[Image:chess_{{{32|}}}l40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align: center; " | 4 |
− | + | | [[Image:chess_{{{33|}}}l40.png|{{{size|}}}px]] | |
− | | [[Image:chess_{{{34|}}}d40.png|{{{ | + | | [[Image:chess_{{{34|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{35|}}}l40.png|{{{ | + | | [[Image:chess_{{{35|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{36|}}}d40.png|{{{ | + | | [[Image:chess_{{{36|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{37|}}}l40.png|{{{ | + | | [[Image:chess_{{{37|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{38|}}}d40.png|{{{ | + | | [[Image:chess_{{{38|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{39|}}}l40.png|{{{ | + | | [[Image:chess_{{{39|}}}l40.png|{{{size|}}}px]] |
− | + | | [[Image:chess_{{{40|}}}d40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align: center; " | 3 |
− | + | | [[Image:chess_{{{41|}}}d40.png|{{{size|}}}px]] | |
− | | [[Image:chess_{{{42|}}}l40.png|{{{ | + | | [[Image:chess_{{{42|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{43|}}}d40.png|{{{ | + | | [[Image:chess_{{{43|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{44|}}}l40.png|{{{ | + | | [[Image:chess_{{{44|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{45|}}}d40.png|{{{ | + | | [[Image:chess_{{{45|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{46|}}}l40.png|{{{ | + | | [[Image:chess_{{{46|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{47|}}}d40.png|{{{ | + | | [[Image:chess_{{{47|}}}d40.png|{{{size|}}}px]] |
− | + | | [[Image:chess_{{{48|}}}l40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align: center; "| 2 |
− | + | | [[Image:chess_{{{49|}}}l40.png|{{{size|}}}px]] | |
− | | [[Image:chess_{{{50|}}}d40.png|{{{ | + | | [[Image:chess_{{{50|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{51|}}}l40.png|{{{ | + | | [[Image:chess_{{{51|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{52|}}}d40.png|{{{ | + | | [[Image:chess_{{{52|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{53|}}}l40.png|{{{ | + | | [[Image:chess_{{{53|}}}l40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{54|}}}d40.png|{{{ | + | | [[Image:chess_{{{54|}}}d40.png|{{{size|}}}px]] |
− | | [[Image:chess_{{{55|}}}l40.png|{{{ | + | | [[Image:chess_{{{55|}}}l40.png|{{{size|}}}px]] |
− | + | | [[Image:chess_{{{56|}}}d40.png|{{{size|}}}px]] | |
|- | |- | ||
− | | style="text-align: center | + | | style = "text-align: center; " | 1 |
− | + | | [[Image:chess_{{{57|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{58|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{59|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{60|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{61|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{62|}}}l40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{63|}}}d40.png|{{{size|}}}px]] | |
− | + | | [[Image:chess_{{{64|}}}l40.png|{{{size|}}}px]] | |
− | |- style="text-align: center | + | |- style = "text-align:center; " |
| | | | ||
− | |a | + | |a || b || c || d || e ||f || g || h |
− | |b | ||
− | |c | ||
− | |d | ||
− | |e | ||
− | |f | ||
− | |g | ||
− | |h | ||
|} | |} | ||
<noinclude>[[Category:Chess positions]]</noinclude> | <noinclude>[[Category:Chess positions]]</noinclude> |
Latest revision as of 17:47, 19 September 2007
See instructions at AoPSWiki:Chess.
{{Template:Chess position|<!-- 8 -->rd|nd|bd|qd|kd|bd|nd|rd|<!-- 7 -->pd|pd|pd|pd|pd|pd|pd|pd|<!-- 6 --> | | | | | | | |<!-- 5 --> | | | | | | | |<!-- 4 --> | | | | | | | |<!-- 3 --> | | | | | | | |<!-- 2 -->pl|pl|pl|pl|pl|pl|pl|pl|<!-- 1 -->rl|nl|bl|ql|kl|bl|nl|rl}} <!-- a b c d e f g h -->
To resize the board, use the attribute size=, followed by the number of pixels per square you wish for.
8 | ||||||||
7 | ||||||||
6 | ||||||||
5 | ||||||||
4 | ||||||||
3 | ||||||||
2 | ||||||||
1 | ||||||||
a | b | c | d | e | f | g | h |