This is a documentation for Board Game Arena: play board games online !
Template:Meeple: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#switch: {{{1}}} | red | yellow | green | blue | orange | purple | grey | white | black=[[File:{{{1}}} meeple.png|30px]]|''[error: no {{{1}}} meeple image]''}}<noinclude> Game piece templates </noinclude>") |
Sammy McSam (talk | contribs) (using Template:GameIcon: - file link, + caption, + number parameter, + size parameter) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{gameIcon | ||
[[Category:GamePieceTemplates|Game piece templates]] | |tooltip={{{1|grey}}} meeple | ||
|imageFileName={{{1|grey}}} meeple.png | |||
|scale=calc({{{size|32}}} / 32) | |||
|width={{{size|32}}} | |||
|height={{{size|32}}} | |||
|={{{2|​}}} | |||
|textColor=black | |||
|outlineColor=white | |||
}}<noinclude> | |||
==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. | |||
'''[[Special:Upload|Upload]]''' a new colour with a filename of "YourColour meeple.png", e.g. [[:File:Red_meeple.png]]. | |||
== Available parameters == | |||
<div style="display:grid;grid-template-columns:repeat(4,max-content) 2fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | |||
<div style="font-weight:bold;width:8rem;">Parameter</div> | |||
<div style="font-weight:bold;width:8rem;">Default value</div> | |||
<div style="font-weight:bold;width:8rem;">Example</div> | |||
<div style="font-weight:bold;width:8rem;">Result</div> | |||
<div style="font-weight:bold;width:8rem;">Description</div> | |||
<div><code>1</code></div> | |||
<div><code>grey</code></div> | |||
<div><code><nowiki>{{meeple|red}}</nowiki></code></div> | |||
<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>&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]] | |||
</noinclude> | </noinclude> |
Latest revision as of 22:50, 12 February 2024
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}}
Optional: specify the colour:
red
/ orange
/ yellow
/ green
/ blue
/ purple
/ black
/ white
/ grey
.2
​
{{meeple|red|3}}
Optional: specify the number of meeples.
size
32
{{meeple|size=40}}
Optional: specify the size in px units.