Template:Imagelink/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(updated to reflect the new code)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
* 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.
* Space age parameter: Either the string <code>yes</code>, <code>no</code> 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 ( <code>yes</code>) or only available if space age is deactivated (<code>no</code>). Most items are available with and without space age, in that case this parameter should be left out. (Optional, default: unset)


== Usage ==
== Usage ==
<pre>
<pre>
{{imagelink|Rocket}} {{Imagelink|Rocket|Transport belt/de}} {{imagelink|splitter|Transport network#Basic splitter|Basic splitter}}
{{imagelink|Rocket}} {{Imagelink|Rocket|Transport belt/de}} {{imagelink|splitter|Belt transport system#Splitters|Basic splitter}} {{imagelink|Big mining drill|space-age=yes}}
</pre>
</pre>
== Result ==
== Result ==
{{imagelink|Rocket}} {{Imagelink|Rocket|Transport belt/de}} {{imagelink|splitter|Transport network#Basic splitter|Basic splitter}}
{{imagelink|Rocket}} {{Imagelink|Rocket|Transport belt/de}} {{imagelink|splitter|Belt transport system#Splitters|Basic splitter}} {{imagelink|Big mining drill|space-age=yes}}
 
<includeonly>[[Category:Templates]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 15:45, 21 October 2024

{{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}}

Result

Rocket.png

Rocket

Rocket.png

Transport belt

Splitter.png

Basic splitter

Big mining drill.png

Big mining drill