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|30}}
+
  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="border-collapse: collapse; background-color:{{{66}}};"
+
 
 +
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; font-family: monospace; border-top: none; padding-right: 2px;" | 8
+
| style = "text-align:center;" |8
| style="border-top: solid thin; border-left: solid thin;" |[[Image:chess_{{{1|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{1|}}}l40.png|{{{size|}}}px]]
| style="border-top: solid thin;" |[[Image:chess_{{{2|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{2|}}}d40.png|{{{size|}}}px]]
| style="border-top: solid thin;" |[[Image:chess_{{{3|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{3|}}}l40.png|{{{size|}}}px]]
| style="border-top: solid thin;" |[[Image:chess_{{{4|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{4|}}}d40.png|{{{size|}}}px]]
| style="border-top: solid thin;" |[[Image:chess_{{{5|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{5|}}}l40.png|{{{size|}}}px]]
| style="border-top: solid thin;" |[[Image:chess_{{{6|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{6|}}}d40.png|{{{size|}}}px]]
| style="border-top: solid thin;" |[[Image:chess_{{{7|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{7|}}}l40.png|{{{size|}}}px]]
| style="border-top: solid thin; border-right: solid thin;" |[[Image:chess_{{{8|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{8|}}}d40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 7
+
| style = "text-align:center;" |7
| style="border-left: solid thin;" |[[Image:chess_{{{9|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{9|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{10|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{10|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{11|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{11|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{12|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{12|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{13|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{13|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{14|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{14|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{15|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{15|}}}d40.png|{{{size|}}}px]]
| style="border-right: solid thin;" |[[Image:chess_{{{16|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{16|}}}l40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 6
+
| style = "text-align:center;" | 6
| style="border-left: solid thin;" |[[Image:chess_{{{17|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{17|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{18|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{18|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{19|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{19|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{20|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{20|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{21|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{21|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{22|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{22|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{23|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{23|}}}l40.png|{{{size|}}}px]]
| style="border-right: solid thin;" |[[Image:chess_{{{24|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{24|}}}d40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 5
+
| style = "text-align: center; " | 5
| style="border-left: solid thin;" |[[Image:chess_{{{25|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{25|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{26|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{26|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{27|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{27|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{28|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{28|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{29|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{29|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{30|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{30|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{31|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{31|}}}d40.png|{{{size|}}}px]]
| style="border-right: solid thin;" |[[Image:chess_{{{32|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{32|}}}l40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 4
+
| style = "text-align: center; " | 4
| style="border-left: solid thin;" |[[Image:chess_{{{33|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{33|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{34|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{34|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{35|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{35|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{36|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{36|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{37|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{37|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{38|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{38|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{39|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{39|}}}l40.png|{{{size|}}}px]]
| style="border-right: solid thin;" |[[Image:chess_{{{40|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{40|}}}d40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 3
+
| style = "text-align: center; " | 3
| style="border-left: solid thin;" |[[Image:chess_{{{41|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{41|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{42|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{42|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{43|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{43|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{44|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{44|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{45|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{45|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{46|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{46|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{47|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{47|}}}d40.png|{{{size|}}}px]]
| style="border-right: solid thin;" |[[Image:chess_{{{48|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{48|}}}l40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 2
+
| style = "text-align: center; "| 2
| style="border-left: solid thin;" |[[Image:chess_{{{49|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{49|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{50|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{50|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{51|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{51|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{52|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{52|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{53|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{53|}}}l40.png|{{{size|}}}px]]
| [[Image:chess_{{{54|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{54|}}}d40.png|{{{size|}}}px]]
| [[Image:chess_{{{55|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{55|}}}l40.png|{{{size|}}}px]]
| style="border-right: solid thin;" |[[Image:chess_{{{56|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{56|}}}d40.png|{{{size|}}}px]]
 
|-
 
|-
| style="text-align: center; font-family: monospace; padding-right: 2px;" | 1
+
| style = "text-align: center; " | 1
| style="border-bottom: solid thin; border-left: solid thin;" |[[Image:chess_{{{57|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{57|}}}d40.png|{{{size|}}}px]]
| style="border-bottom: solid thin;" |[[Image:chess_{{{58|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{58|}}}l40.png|{{{size|}}}px]]
| style="border-bottom: solid thin;" |[[Image:chess_{{{59|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{59|}}}d40.png|{{{size|}}}px]]
| style="border-bottom: solid thin;" |[[Image:chess_{{{60|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{60|}}}l40.png|{{{size|}}}px]]
| style="border-bottom: solid thin;" |[[Image:chess_{{{61|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{61|}}}d40.png|{{{size|}}}px]]
| style="border-bottom: solid thin;" |[[Image:chess_{{{62|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{62|}}}l40.png|{{{size|}}}px]]
| style="border-bottom: solid thin;" |[[Image:chess_{{{63|}}}d40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{63|}}}d40.png|{{{size|}}}px]]
| style="border-right: solid thin; border-bottom: solid thin;" |[[Image:chess_{{{64|}}}l40.png|{{{65|}}}px]]
+
| [[Image:chess_{{{64|}}}l40.png|{{{size|}}}px]]
|- style="text-align: center; font-family: monospace; font-size: 100%;"
+
|- 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 px px px px px px px px
7 px px px px px px px px
6 px px px px px px px px
5 px px px px px px px px
4 px px px px px px px px
3 px px px px px px px px
2 px px px px px px px px
1 px px px px px px px px
a b c d e f g h