This is a documentation for Board Game Arena: play board games online !

Template:Hex: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(x-direction span 2)
m (parameter)
Line 24: Line 24:
   <div>{{hex |bg=green }}</div>
   <div>{{hex |bg=green }}</div>
   <div>'''''Optional:''''' specify the background as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div>
   <div>'''''Optional:''''' specify the background as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color].</div>
  <div><code>w</code></div>
  <div><code>67.195</code></div>
  <div><code><nowiki>{{hex |w=50 }}</nowiki></code></div>
  <div>{{hex |w=50 }}</div>
  <div>'''''Optional:''''' specify the width of the hex.</div>
   <div><code>x</code></div>
   <div><code>x</code></div>
   <div><code>1</code></div>
   <div><code>1</code></div>

Revision as of 17:22, 12 May 2024

Parameters

Parameter
Default value
Example
Result
Description
1
&ZeroWidthSpace;
{{hex |{{TaluvaClearing}} }}
Clearing
Optional: specify a Template:GameIcon image.
2
&ZeroWidthSpace;
{{hex | |A }}
A
Optional: specify a text value.
bg
#ddd
{{hex |bg=green }}
Optional: specify the background as a CSS color.
w
67.195
{{hex |w=50 }}
Optional: specify the width of the hex.
x
1
{{hex |x=3 }}
Optional: specify the x co-ordinate of the hex on a Template:HexMap.
y
1
{{hex |y=2 }}
Optional: specify the y co-ordinate of the hex on a Template:HexMap.
r
0
{{hex |r=1 }}
Optional: specify the rotation in units of 30° (0-11).