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

Template:Meeple: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(remove image size per Wiki_formatting#Images issue)
(using Template:GameIcon: - file link, + caption, + number parameter, + size parameter)
 
Line 1: Line 1:
[[File:{{{1|grey}}} meeple.png|alt={{{1|grey}}} meeple]]<noinclude>
{{gameIcon
|tooltip={{{1|grey}}} meeple
|imageFileName={{{1|grey}}} meeple.png
|scale=calc({{{size|32}}} / 32)
|width={{{size|32}}}
|height={{{size|32}}}
|={{{2|&ZeroWidthSpace;}}}
|textColor=black
|outlineColor=white
}}<noinclude>


==Documentation==
==Documentation==
This is a template to embed a coloured meeple icon within game rules.
This is a template to embed a coloured meeple icon within game rules.


Currently supported colours are red, orange, yellow, green, blue, purple, black, white and grey. If you need other colours you can upload images with a filename of "(colour) meeple.png", such as [[:File:Red meeple.png]].
Currently supported colours are red, orange, yellow, green, blue, purple, black, white and grey.


{|class="wikitable" style="text-align:left;"
'''[[Special:Upload|Upload]]''' a new colour with a filename of "YourColour meeple.png", e.g. [[:File:Red_meeple.png]].
|+Available parameters
 
!Parameter
== Available parameters ==
!Default value
<div style="display:grid;grid-template-columns:repeat(4,max-content) 2fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;">
!Example
  <div style="font-weight:bold;width:8rem;">Parameter</div>
!Result
  <div style="font-weight:bold;width:8rem;">Default value</div>
!Description
  <div style="font-weight:bold;width:8rem;">Example</div>
|-
  <div style="font-weight:bold;width:8rem;">Result</div>
|<code style="color:#b00;">null</code>
  <div style="font-weight:bold;width:8rem;">Description</div>
|<code><nowiki>grey</nowiki></code>
  <div><code>1</code></div>
|<code><nowiki>{{meeple|red}}</nowiki></code>
  <div><code>grey</code></div>
|style="text-align:center;"|{{meeple|red}}
  <div><code><nowiki>{{meeple|red}}</nowiki></code></div>
|The colour of the meeple.
  <div>{{meeple|red}}</div>
|}
  <div>'''''Optional:''''' specify the colour: <code>red</code> / <code>orange</code> / <code>yellow</code> / <code>green</code> / <code>blue</code> / <code>purple</code> / <code>black</code> / <code>white</code> / <code>grey</code>.</div>
  <div><code>2</code></div>
  <div><code>&amp;ZeroWidthSpace;</code></div>
  <div><code><nowiki>{{meeple|red|3}}</nowiki></code></div>
  <div>{{meeple|red|3}}</div>
  <div>'''''Optional:''''' specify the number of meeples.</div>
  <div><code>size</code></div>
  <div><code>32</code></div>
  <div><code><nowiki>{{meeple|size=40}}</nowiki></code></div>
  <div>{{meeple|size=40}}</div>
  <div>'''''Optional:''''' specify the size in px units.</div>
</div>
 
[[Category:GameIconTemplates]][[Category:GamePieceTemplates|Game piece templates]]


[[Category:GamePieceTemplates|Game piece templates]]
</noinclude>
</noinclude>

Latest revision as of 22:50, 12 February 2024

grey meeple

Documentation

This is a template to embed a coloured meeple icon within game rules.

Currently supported colours are red, orange, yellow, green, blue, purple, black, white and grey.

Upload a new colour with a filename of "YourColour meeple.png", e.g. File:Red_meeple.png.

Available parameters

Parameter
Default value
Example
Result
Description
1
grey
{{meeple|red}}
red meeple
Optional: specify the colour: red / orange / yellow / green / blue / purple / black / white / grey.
2
&ZeroWidthSpace;
{{meeple|red|3}}
red meeple3
Optional: specify the number of meeples.
size
32
{{meeple|size=40}}
grey meeple
Optional: specify the size in px units.