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

Template:GameIcon

From Board Game Arena
Revision as of 18:59, 14 December 2023 by Sammy McSam (talk | contribs) (tooltip|​ null parameter, steps)
Jump to navigation Jump to search

[[File:{{{imageFileName}}}|link=|​]]

Step 1: Create https://en.doc.boardgamearena.com/Template:YourNewIconTemplate (replace YourNewIconTemplate)

{{gameIcon
|tooltip=
|imageFileName=
|scale=1
|width=
|height=
|x=0
|y=0
|textColor=black
|outlineColor=white
}}<noinclude>
[[Category:GameNameIcons]]
<noinclude>

Step 2: Insert {{YourNewIconTemplate}} in a page

Examples

Jump Drive

JumpDriveIcons.png (450×30 pixels)
JumpDriveIcons.png

Step 1: 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 2: Insert {{JumpDriveGenes|=1}} genes in Gamehelpjumpdrive

Space Station Phoenix

SpaceStationPhoenixIcons.png (700×100 pixels)
SpaceStationPhoenixIcons.png

Step 1: 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 2: Insert {{SSPShipFarm}} Farm ship in Gamehelpspacestationphoenix

Available parameters

Parameter
Default value
Example
Description
tooltip
&#8203;
(zero width space)
|tooltip=Resource
Optional: specify a tooltip to display on hover.
imageFileName
null
|imageFileName=JumpDriveIcons.png
Required: specify an uploaded image file name including file format (i.e. .png, .jpg etc.).
scale
1
|scale=0.5
Optional: scale the imageFile with origin in the top left corner.
width
null
|width=30
Required: specify the icon width in px units.
height
null
|height=30
Required: specify the icon height in px units.
x
0
|x=60
Optional: specify the x position in px units.
y
0
|y=30
Optional: specify the y position in px units.
textColor
#000
(black)
|textColor=green
Optional: specify the text variable color as a CSS color e.g. green.
outlineColor
#fff0
(transparent white)
|outlineColor=green
Optional: specify the text variable outline color as a CSS color e.g. green.