This is a documentation for Board Game Arena: play board games online !
Template:GameIcon: Difference between revisions
Jump to navigation
Jump to search
(black)
(transparent white)
Sammy McSam (talk | contribs) (improved examples) |
Sammy McSam (talk | contribs) m (Template:InfoBox update) |
||
| Line 6: | Line 6: | ||
}} | }} | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#3aa |titleAlign=left | ||
|title=Step 2 | |title=Step 2 | ||
|body=Go to <code>[https://en.doc.boardgamearena.com/Template: https://en.doc.boardgamearena.com<wbr>/Template:'''''YourIcon''''']</code> | |body=Go to <code>[https://en.doc.boardgamearena.com/Template: https://en.doc.boardgamearena.com<wbr>/Template:'''''YourIcon''''']</code> | ||
| Line 44: | Line 44: | ||
}} | }} | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#3c7 |titleAlign=left | ||
|title=Step 3 | |title=Step 3 | ||
|body=Insert <code><nowiki>{{</nowiki>'''''YourIcon'''''<nowiki>}}</nowiki></code> into a wiki page! | |body=Insert <code><nowiki>{{</nowiki>'''''YourIcon'''''<nowiki>}}</nowiki></code> into a wiki page! | ||
| Line 53: | Line 53: | ||
=== Jump Drive === | === Jump Drive === | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#37c |titleAlign=left | ||
|title=Step 1 | |title=Step 1 | ||
|body=<span style="display:inline-flex;flex-direction:column;gap:0.5rem;"><span>'''[[Special:Upload|Upload]]''' <code>JumpDriveIcons.png</code> (450×30 pixels)</span>[[File:JumpDriveIcons.png]]</span>. | |body=<span style="display:inline-flex;flex-direction:column;gap:0.5rem;"><span>'''[[Special:Upload|Upload]]''' <code>JumpDriveIcons.png</code> (450×30 pixels)</span>[[File:JumpDriveIcons.png]]</span>. | ||
}} | }} | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#3aa |titleAlign=left | ||
|title=Step 2 | |title=Step 2 | ||
|body=Create <code>[https://en.doc.boardgamearena.com/Template:JumpDriveGenes https://en.doc.boardgamearena.com<wbr>/Template:'''''JumpDriveGenes''''']</code>: | |body=Create <code>[https://en.doc.boardgamearena.com/Template:JumpDriveGenes https://en.doc.boardgamearena.com<wbr>/Template:'''''JumpDriveGenes''''']</code>: | ||
| Line 78: | Line 78: | ||
}} | }} | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#3c7 |titleAlign=left | ||
|title=Step 3 | |title=Step 3 | ||
|body=Insert <code><nowiki>{{JumpDriveGenes|1}}</nowiki></code> {{JumpDriveGenes|1}} in '''[[Gamehelpjumpdrive]]'''. | |body=Insert <code><nowiki>{{JumpDriveGenes|1}}</nowiki></code> {{JumpDriveGenes|1}} in '''[[Gamehelpjumpdrive]]'''. | ||
| Line 85: | Line 85: | ||
=== Space Station Phoenix === | === Space Station Phoenix === | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#37c |titleAlign=left | ||
|title=Step 1 | |title=Step 1 | ||
|body=<span style="display:inline-flex;flex-direction:column;gap:0.5rem;"><span>'''[[Special:Upload|Upload]]''' <code>SpaceStationPhoenixIcons.png</code> (700×100 pixels).</span>[[File:SpaceStationPhoenixIcons.png]]</span> | |body=<span style="display:inline-flex;flex-direction:column;gap:0.5rem;"><span>'''[[Special:Upload|Upload]]''' <code>SpaceStationPhoenixIcons.png</code> (700×100 pixels).</span>[[File:SpaceStationPhoenixIcons.png]]</span> | ||
}} | }} | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#3aa |titleAlign=left | ||
|title=Step 2 | |title=Step 2 | ||
|body=Create <code>[https://en.doc.boardgamearena.com/Template:SSPShipFarm https://en.doc.boardgamearena.com<wbr>/Template:'''''SSPShipFarm''''']</code>: | |body=Create <code>[https://en.doc.boardgamearena.com/Template:SSPShipFarm https://en.doc.boardgamearena.com<wbr>/Template:'''''SSPShipFarm''''']</code>: | ||
| Line 107: | Line 107: | ||
}} | }} | ||
{{infoBox |maxWidth= | | {{infoBox |maxWidth= |background=#3c7 |titleAlign=left | ||
|title=Step 3 | |title=Step 3 | ||
|body=Insert <code><nowiki>{{SSPShipFarm}}</nowiki></code> {{SSPShipFarm}} in '''[[Gamehelpspacestationphoenix]]'''. | |body=Insert <code><nowiki>{{SSPShipFarm}}</nowiki></code> {{SSPShipFarm}} in '''[[Gamehelpspacestationphoenix]]'''. | ||
Latest revision as of 18:14, 10 February 2026
Step 1
Upload YourImage.png
Step 2
Go to
https://en.doc.boardgamearena.com /Template:YourIcon
(replace
YourIcon🡅)Copy & paste this into it:
- {{gameIcon
- |tooltip=
- |imageFileName=
- |scale=1
- |width=
- |height=
- |x=0
- |y=0
- |={{{1|​}}}
- |textColor=black
- |outlineColor=white
- }}<noinclude>
- [[Category:WikiTemplates]]
- <noinclude>
Minimum:
- |imageFileName= paste the file name here
- |width= pixels width of your icon
- |height= pixels height of your icon
You can check the file name via the list of uploaded files.
Optional:
- |scale= for smaller icons, set it somewhere between 0.1 and 1
- |tooltip= one or more words that appear on hover
If you create multiple icons:
- |x= set the x(/y) position inside your image
- [[Category:you can link them together in your own category
]] - e.g. [[Category:GameNameIcons]]
Step 3
Insert
{{YourIcon}} into a wiki page!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
|={{{1|​}}}
|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.Parameters
Parameter
Default value
Example
Description
tooltip​|tooltip=ResourceOptional: tooltip to display on hover.
imageFileNamenull|imageFileName=YourImage.pngscale1|scale=0.5Optional: scale the image with its origin in the top left corner.
widthnull|width=30Required: icon width in px units.
heightnull|height=30Required: icon height in px units.
x0|x=60Optional: x-axis (horizontal) position in px units.
y0|y=30Optional: y-axis (vertical) position in px units.
znull|z=2Optional: z-axis (stacking order) position.
null​|={{{1|​}}}Optional: text value e.g. via another variable using triple curly braces.
textColor#000(black)
|textColor=greenOptional: text color as a CSS color e.g.
green.outlineColor#fff0(transparent white)
|outlineColor=greenOptional: text outline color as a CSS color e.g.
green.