Shop Heroes Wikia
Shop Heroes Wikia

[[File:Building {{{name}}}Icon.png|50px|{{{name}}}|link={{{name}}}]][[{{{name}}}|{{{name}}}]]

Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]

Description

This template is used to display an image for a building followed by a link with the building-name.
It is intended for use whenever a building display is desired.

Syntax

Type {{Building Icon|name=|size=|textbelow=|icononly=}} somewhere.

Named parameters:
  • name
    The name of the building.
    This value of this parameter is processed by:
  • size
    This value of this parameter is processed by {{Building Icon/size}} and can be one of these names:
    • inline for 25x25px (25px width+height)
    • tiny for x25px (max. 25px height)
    • small for 35px
    • normal for 50px
    • large for 75px
    • Anything else will act same as options used for wiki images.
    The default value when not used is normal.
  • textbelow
    This parameter is used to display the text-link under the image instead of after, it's value can be one of:
    • 1, yes, on, true.
    The default behavior when not used is to display the text-link right after the image.
  • icononly
    This parameter is used to suppress the display of the text-link, it's value can be one of:
    • 1, yes, on, true.
    The default behavior when not used is to display the text-link.
Positional parameters:
1/2= keyword usage for textbelow and icononly as shortcuts, these can be.
  • textbelow or under either as 1st or 2nd unnamed parameter to trigger textbelow functionality.
  • icononly or notext either as 1st or 2nd unnamed parameter to trigger icononly functionality.
Using both functionalities at same time makes no sense because the text-link won't be displayed in that scenario anyway.

Examples

Example uses
Code Output Code Output Code Output
{{Building Icon
|name=Town Hall
}}
Town HallTown Hall
{{Building Icon
|name=Town Hall
|textbelow=true
}}
Town Hall
Town Hall
{{Building Icon
|name=Town Hall
|under
}}
Town Hall
Town Hall
{{Building Icon
|name=Town Hall
|icononly=true
}}
Town Hall
{{Building Icon
|name=Town Hall
|notext
}}
Town Hall
{{Building Icon
|name=Iron Mine
}}
Iron MineIron Mine
{{Building Icon
|name=Iron Mine
|textbelow=true
}}
Iron Mine
Iron Mine
{{Building Icon
|name=Iron Mine
|under
}}
Iron Mine
Iron Mine
{{Building Icon
|name=Iron Mine
|icononly=true
}}
Iron Mine
{{Building Icon
|name=Iron Mine
|notext
}}
Iron Mine
{{Building Icon
|name=Miner's Guild
}}
Miner's GuildMiner's Guild
{{Building Icon
|name=Miner's Guild
|textbelow=true
}}
Miner's Guild
Miner's Guild
{{Building Icon
|name=Miner's Guild
|under
}}
Miner's Guild
Miner's Guild
{{Building Icon
|name=Miner's Guild
|icononly=true
}}
Miner's Guild
{{Building Icon
|name=Miner's Guild
|notext
}}
Miner's Guild
The above text is transcluded from Template:Building Icon/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to Template:Building Icon/doc. (View all subpages of this page.)