Difference between revisions of "Template:Grid Square"

From Trad Games Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{|
 
{|
<includeonly>| style="height:24px; width: 24px; background: {{{1|#ededed}}}; {{#ifeq: {{{2|border}}} | border | border: 1px solid #000000; | }} text-align: center; vertical-align: middle; font-weight: 900;" | {{{3|X}}}</includeonly>
+
<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|border|single character}}</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 <code>border</code> to provide a 1 pixel black border, leave blank for no border.
+
Use the optional <code>font color</code> and <code>font size</code> to control the appearance of the character(s) within the square.
  
Each grid square has only enough space for a single character.
+
[[Category:4e Grid Templates|Square]]
 
 
[[Category:4e Grid Templates|Grid 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.