Difference between revisions of "Template:Grid Square"

From Trad Games Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{|
 
{|
<onlyinclude>| style="height:48px; width: 48px; background: {{{1|#ededed}}}; border-top: 1px solid black; border-left: 1px solid black; <noinclude>border: 1px solid black;</noinclude> text-align: center; vertical-align: middle; font-weight: 900; font-size:{{{3|80%}}}; padding: 0px" | {{{2|X}}}</onlyinclude>
+
<onlyinclude>| style="color: {{{3|black}}}; height:48px; width: 48px; background: {{{1|#ededed}}}; border-top: 1px solid black; border-left: 1px solid black; <noinclude>border: 1px solid black;</noinclude> text-align: center; vertical-align: middle; font-weight: 900; font-size:{{{4|80%}}}; padding: 0px" | {{{2|X}}}</onlyinclude>
 
|}
 
|}
  
<pre>{{Grid Square|background color|single character|font size}}</pre>
+
<pre>{{Grid Square|#ededed (background color)|x (single character)|black (font color)|80% (font size)}}</pre>
  
 
Background colour needs to be in standard HTML format, such as <code>#B3E8DD</code>.
 
Background colour needs to be in standard HTML format, such as <code>#B3E8DD</code>.
  
Use the optional <code>font size</code> to control the size of the character(s) within the square. The default is 80%.
+
Use the optional <code>font color</code> and <code>font size</code> to control the appearance of the character(s) within the square.
  
 
[[Category:4e Grid Templates|Square]]
 
[[Category:4e Grid Templates|Square]]

Latest revision as of 16:11, 20 June 2019

X
{{Grid Square|#ededed (background color)|x (single character)|black (font color)|80% (font size)}}

Background colour needs to be in standard HTML format, such as #B3E8DD.

Use the optional font color and font size to control the appearance of the character(s) within the square.