Difference between revisions of "Template:Grid Square"

From Trad Games Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{|
 
{|
<onlyinclude>| style="height:32px; width: 32px; 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;" | {{{2|X}}}</onlyinclude>
+
<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>
 
|}
 
|}
  
<pre>{{Grid Square|background color|single character}}</pre>
+
<pre>{{Grid Square|background color|single character|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>.
  
Each grid square has only enough space for a single character.
+
Use the optional <code>font size</code> to control the size of the character(s) within the square. The default is 80%.
  
 
[[Category:4e Grid Templates|Square]]
 
[[Category:4e Grid Templates|Square]]

Revision as of 16:05, 20 June 2019

X
{{Grid Square|background color|single character|font size}}

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

Use the optional font size to control the size of the character(s) within the square. The default is 80%.