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)
(black)
(transparent white)
Sammy McSam (talk | contribs) (Created page with "<span style="display:inline-flex;align-items:center;justify-content:space-around;position:relative;height:{{{height}}}px;width:{{{width}}}px;overflow:hidden;color:{{{textColor|#000}}};font-family:Roboto,Arial,sans-serif;font-weight:700;font-size:16px;text-shadow:0 0 2px {{{outlineColor|#fff0}}},0 0 2px {{{outlineColor|#fff0}}},0 0 2px {{{outlineColor|#fff0}}},0 0 2px {{{outlineColor|#fff0}}},0 0 2px {{{outlineColor|#fff0}}},0 0 2px {{{outlineColor|#fff0}}},0 0 2px {{{out...") |
Sammy McSam (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
|x=0 | |x=0 | ||
|y=0 | |y=0 | ||
|= | |={{{|&#8203;}}} | ||
|textColor=black | |textColor=black | ||
|outlineColor=white | |outlineColor=white | ||
}}<nowiki><</nowiki>noinclude<nowiki>> | }}<nowiki><</nowiki>noinclude<nowiki>> | ||
[[Category:GameNameIcons | [[Category:GameNameIcons]] | ||
<</nowiki>noinclude<nowiki>></nowiki> | <</nowiki>noinclude<nowiki>></nowiki> | ||
</pre> | </pre> | ||
Line 49: | Line 49: | ||
<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>null</code></div> | ||
<div><code><nowiki>&#8203;</nowiki></code></br>(zero width space)</div> | <div><code><nowiki>{{{|&#8203;}}}</nowiki></code></br>(zero width space)</div> | ||
<div><code><nowiki>|= | <div><code><nowiki>|={{{|&#8203;}}}</nowiki></code></div> | ||
<div>'''''Optional:''''' specify | <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> | ||
<div><code><nowiki>|textColor=green</nowiki></code></div> | <div><code><nowiki>|textColor=green</nowiki></code></div> | ||
<div>'''''Optional:''''' specify the text color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color] e.g. <code>green</code>.</div> | <div>'''''Optional:''''' specify the text variable color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color] e.g. <code>green</code>.</div> | ||
<div><code>outlineColor</code></div> | <div><code>outlineColor</code></div> | ||
<div><code>#fff0</code></br>(transparent white)</div> | <div><code>#fff0</code></br>(transparent white)</div> | ||
<div><code><nowiki>|outlineColor=green</nowiki></code></div> | <div><code><nowiki>|outlineColor=green</nowiki></code></div> | ||
<div>'''''Optional:''''' specify the text outline color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color] e.g. <code>green</code>.</div> | <div>'''''Optional:''''' specify the text variable outline color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color] e.g. <code>green</code>.</div> | ||
</div> | </div> | ||
Line 81: | Line 81: | ||
|x=60 | |x=60 | ||
|y=0 | |y=0 | ||
|= | |={{{|​}}} | ||
|textColor=black | |textColor=black | ||
|outlineColor=white | |outlineColor=white | ||
Line 94: | Line 94: | ||
|x=60 | |x=60 | ||
|y=0 | |y=0 | ||
|= | |={{{|&#8203;}}} | ||
|textColor=black | |textColor=black | ||
|outlineColor=white | |outlineColor=white |
Revision as of 00:36, 3 November 2023
Use this {{gameIcon}}
template to display a game-specific image:
{{gameIcon |tooltip= |imageFileName= |width= |height= |x=0 |y=0 |={{{|​}}} |textColor=black |outlineColor=white }}<noinclude> [[Category:GameNameIcons]] <noinclude>
Available parameters
Parameter
Default value
Example
Description
tooltip
Game icon
|tooltip=Resource
Optional: specify a tooltip to display on hover.
imageFileName
null
|imageFileName=JumpDriveIcons.png
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.
null
{{{|​}}}
(zero width space)
|={{{|​}}}
Optional: specify text e.g. via another variable using triple curly braces.
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
.Examples
Jump Drive
JumpDriveIcons.png
450×30 pixels
Genes
30×30 pixels
{{gameIcon |tooltip=Genes |imageFileName=JumpDriveIcons.png |width=30 |height=30 |x=60 |y=0 |={{{|​}}} |textColor=black |outlineColor=white }}<noinclude> [[Category:JumpDriveIcons]] <noinclude>
Space Station Phoenix
SpaceStationPhoenixIcons.png
700×100 pixels
Farm ship
85×50 pixels
{{gameIcon |tooltip=Farm ship |imageFileName=SpaceStationPhoenixIcons.png |width=85 |height=50 |x=500 |y=50 }}<noinclude> [[Category:SpaceStationPhoenixIcons]] <noinclude>