Icon: Difference between revisions
Project Rebearth wiki
Created page with "[[File:{{#switch: comparison string |Wood=WoodIcon.png |Stone=StoneIcon.png |Earth=EarthIcon.png |Ore=OreIcon.png |Food=FoodIcon.png |Grain=GrainIcon.png |Milk=MilkIcon.png |Wool=WoolIcon.png |Flour=FlourIcon.png |Drinks=DrinksIcon.png |Clothes=ClothesIcon.png |Metal=MetalIcon.png |Tools=ToolsIcon.png |Scrap=ScrapIcon.png |Glass=GlassIcon.png |Coin=CoinIcon.png |Resources.png }}|alt=The {{{1}}} resource icon on Project Rebearth|17px|link={{{1}}}]] [[{{{2|{{{1}}}}}}]]<noi..." |
No edit summary |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[File:{{#switch: | [[File:{{#switch: {{{1}}} | ||
|Wood=WoodIcon.png | |Wood=WoodIcon.png | ||
|Stone=StoneIcon.png | |Stone=StoneIcon.png | ||
| Line 16: | Line 16: | ||
|Glass=GlassIcon.png | |Glass=GlassIcon.png | ||
|Coin=CoinIcon.png | |Coin=CoinIcon.png | ||
|Knowledge=KnowledgeIcon.png | |||
|Population=PopulationIcon.png | |||
|Lore=LoreIcon.png | |||
|Resources.png | |Resources.png | ||
}}|alt=The {{{1}}} resource icon on Project Rebearth| | }}|alt=The {{{1}}} resource icon on Project Rebearth|15px|link={{{1}}}|class=iconimg]] [[{{{2|{{{1}}}}}}]]<noinclude> | ||
==Description== | |||
The {{tl|Icon}} template takes a single argument (the icon name) and creates a result like: {{Icon|Earth}}. These icons have four things: | |||
* A file to the left of the argument | |||
* An alt description for the file | |||
* A link on the file to the target page | |||
* An internal link to the argument as hypertext | |||
==Usage== | |||
The template currently supports 19 icons with [[:File:Resources.png]] as fallback: | |||
* {{Icon|Wood}} | |||
* {{Icon|Stone}} | |||
* {{Icon|Earth}} | |||
* {{Icon|Ore}} | |||
* {{Icon|Food}} | |||
* {{Icon|Grain}} | |||
* {{Icon|Milk}} | |||
* {{Icon|Wool}} | |||
* {{Icon|Flour}} | |||
* {{Icon|Drinks}} | |||
* {{Icon|Clothes}} | |||
* {{Icon|Metal}} | |||
* {{Icon|Tools}} | |||
* {{Icon|Scrap}} | |||
* {{Icon|Glass}} | |||
* {{Icon|Coin}} | |||
* {{Icon|Knowledge}} | |||
* {{Icon|Population}} | |||
* {{Icon|Lore}} | |||
[[Category:Utility templates]]</noinclude> | |||
Latest revision as of 04:35, 28 April 2026
Description
[edit]The {{Icon}} template takes a single argument (the icon name) and creates a result like:
Earth. These icons have four things:
- A file to the left of the argument
- An alt description for the file
- A link on the file to the target page
- An internal link to the argument as hypertext
Usage
[edit]The template currently supports 19 icons with File:Resources.png as fallback: