This is a documentation for Board Game Arena: play board games online !
Template:GameIcon: Difference between revisions
Jump to navigation
Jump to search
(zero width space)
(zero width space)
(black)
(transparent white)
Sammy McSam (talk | contribs) (3 steps) |
Sammy McSam (talk | contribs) (|={{{|}}}) |
||
| Line 19: | Line 19: | ||
|x=0 | |x=0 | ||
|y=0 | |y=0 | ||
|={{{|​}}} | |||
|textColor=black | |textColor=black | ||
|outlineColor=white | |outlineColor=white | ||
| Line 52: | Line 53: | ||
|x=60 | |x=60 | ||
|y=0 | |y=0 | ||
|={{{|​}}} | |||
|textColor=black | |textColor=black | ||
|outlineColor=white | |outlineColor=white | ||
| Line 128: | Line 130: | ||
<div><code><nowiki>|y=30</nowiki></code></div> | <div><code><nowiki>|y=30</nowiki></code></div> | ||
<div>'''''Optional:''''' specify the y position in px units.</div> | <div>'''''Optional:''''' specify the y position in px units.</div> | ||
<div><code>null</code></div> | |||
<div><code><nowiki>{{{|&#8203;}}}</nowiki></code></br>(zero width space)</div> | |||
<div><code><nowiki>|={{{|&#8203;}}}</nowiki></code></div> | |||
<div>'''''Optional:''''' specify text e.g. via another variable using triple curly braces.</div> | |||
<div><code>textColor</code></div> | <div><code>textColor</code></div> | ||
<div><code>#000</code></br>(black)</div> | <div><code>#000</code></br>(black)</div> | ||
Revision as of 22:23, 15 December 2023
Step 1
Upload YourImage.png
Step 2
Create
https://en.doc.boardgamearena.com /Template:YourIcon
Fill in the parameters:
{{gameIcon
|tooltip=
|imageFileName=
|scale=1
|width=
|height=
|x=0
|y=0
|={{{|}}}
|textColor=black
|outlineColor=white
}}<noinclude>
[[Category:YourIcons]]
<noinclude>
Step 3
Insert
{{YourIcon}}Examples
Jump Drive
Step 1
Upload
.
JumpDriveIcons.png (450×30 pixels)Step 2
Create
https://en.doc.boardgamearena.com /Template:JumpDriveGenes:
{{gameIcon
|tooltip=Genes
|imageFileName=JumpDriveIcons.png
|width=30
|height=30
|x=60
|y=0
|={{{|}}}
|textColor=black
|outlineColor=white
}}<noinclude>
[[Category:JumpDriveIcons]]
<noinclude>
Step 3
Insert
{{JumpDriveGenes|=1}} in Gamehelpjumpdrive.Space Station Phoenix
Step 1
Upload 
SpaceStationPhoenixIcons.png (700×100 pixels).Step 2
Create
https://en.doc.boardgamearena.com /Template:SSPShipFarm:
{{gameIcon
|tooltip=Farm ship
|imageFileName=SpaceStationPhoenixIcons.png
|width=85
|height=50
|x=500
|y=50
}}<noinclude>
[[Category:SpaceStationPhoenixIcons]]
<noinclude>
Step 3
Insert
{{SSPShipFarm}} in Gamehelpspacestationphoenix.Available parameters
Parameter
Default value
Example
Description
tooltip​(zero width space)
|tooltip=ResourceOptional: specify a tooltip to display on hover.
imageFileNamenull|imageFileName=JumpDriveIcons.pngscale1|scale=0.5Optional: scale the imageFile with origin in the top left corner.
widthnull|width=30Required: specify the icon width in px units.
heightnull|height=30Required: specify the icon height in px units.
x0|x=60Optional: specify the x position in px units.
y0|y=30Optional: specify the y position in px units.
null{{{|​}}}(zero width space)
|={{{|​}}}Optional: specify text e.g. via another variable using triple curly braces.
textColor#000(black)
|textColor=greenOptional: specify the text variable color as a CSS color e.g.
green.outlineColor#fff0(transparent white)
|outlineColor=greenOptional: specify the text variable outline color as a CSS color e.g.
green.