Template:Imagelink: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Mefisto1029 (talk | contribs) ("space-age" parameter for icon template) |
||
(28 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{2|}}}|{{Icon|{{{1}}}||{{{2}}}|space-age={{{space-age|}}}}}|{{Icon|{{{1}}}|space-age={{{space-age|}}}}}}}{{#if:{{{3|}}}|[[{{{2}}}|{{{3}}}]]|{{#if:{{{2|}}}|[[{{{2}}}|{{Translation|{{#titleparts:{{{2}}}|1|1}}}}]]|{{TransLink|{{{1}}}}}}}}}</includeonly><noinclude> | ||
{{documentation}} | |||
{{ | |||
</ | |||
</noinclude> | </noinclude> |
Latest revision as of 15:42, 21 October 2024
[View] [Edit] [Page history]
Documentation{{imagelink|icon|link|caption}}
- The link and caption parameters are optional. If both are not present the link will go to the page with the name of the first parameter with language suffix if the icon is on a non-english page (e.g. icon/de on a German page). The text next the icon is translated to the language of the page it is on.
- If the second parameter is present, the links will go to exactly that page, no language suffixes are added. The text next to the icon is then translated from that second parameter.
- If the third parameter is present the text next to the icon is exactly that text.
- Space age parameter: Either the string
yes
,no
or nothing. Determines whether to display a symbol in the top right of the icon that shows whether the linked item/recipe/technology is exclusive to space age (yes
) or only available if space age is deactivated (no
). Most items are available with and without space age, in that case this parameter should be left out. (Optional, default: unset)
Usage
{{imagelink|Rocket}} {{Imagelink|Rocket|Transport belt/de}} {{imagelink|splitter|Belt transport system#Splitters|Basic splitter}} {{imagelink|Big mining drill|space-age=yes}}