Template:Imagelink/doc: Difference between revisions
Jump to navigation
Jump to search
Mefisto1029 (talk | contribs) No edit summary |
HeliGungir (talk | contribs) Documented space-age parameter more fully |
||
| Line 1: | Line 1: | ||
<pre> | <pre> | ||
{{imagelink|icon|link|caption}} | {{imagelink|icon|link|caption|space-age=yes/no/(unset)}} | ||
</pre> | </pre> | ||
* The link and | * The link, caption, and space-age 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 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. | * If the third parameter is present the text next to the icon is exactly that text. | ||
Latest revision as of 13:27, 23 September 2026
{{imagelink|icon|link|caption|space-age=yes/no/(unset)}}
- The link, caption, and space-age 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,noor 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}}