Difference between revisions of "Template:Grid Square"

From Trad Games Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>{|</noinclude> | style="height:24px; width: 24px; background: {{{1|#ededed}}}; border: 1px solid #000000; text-align: center; vertical-align: middle; font-weight: 9...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{|</noinclude>
+
{|
| style="height:24px; width: 24px; background: {{{1|#ededed}}}; border: 1px solid #000000; text-align: center; vertical-align: middle; font-weight: 900;" | {{{2|X}}}
+
<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>
<noinclude>|}
+
|}
  
[[Category:4e Grid Templates|Grid Square]]</noinclude>
+
<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>.
 +
 
 +
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]]

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.