Difference between revisions of "Template:Chess position"

(rewrite code completely)
m (rmv cellpadding)
 
Line 17: Line 17:
 
----
 
----
  
</noinclude>{| cellspacing="0" style="font-family:monospace;"
+
</noinclude>{| cellspacing="0" cellpadding="0" style="font-family:monospace;"
 
|-
 
|-
 
| style = "text-align:center;" |8
 
| style = "text-align:center;" |8

Latest revision as of 18: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