Template:TransLink: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Corrected template for creating the suffix of the page where it links to)
(category)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[{{{1}}}{{If language suffix}} |{{Translation|{{{1}}} }}]]
<includeonly>[[{{{1}}}{{If language suffix}}{{#if: {{{anchor|}}}|&#35;{{Translation{{If language suffix}}|{{{anchor}}}}}}}|{{Translation|{{{2|{{{1}}}}}}}}]]</includeonly><noinclude>
{{Shortcut|L}}
{{Category|Localisation templates|lang=none}}
{{Documentation}}
</noinclude>

Latest revision as of 12:26, 27 August 2023

Shortcut:
{{L}}

[View] [Edit] [Page history]

Documentation

{{TransLink|link|caption|anchor=url-fragment}}

  • Link is where the link should go
  • Caption is optional. It's what gets displayed as the link text, and the word(s) that gets translated. If it is not present, link is used in its place.
  • Anchor is optional. If it is added, the link goes to link/lang-suffix#anchor.
    • Example: {{TransLink|Enemies|Enemy evolution|anchor=Evolution}}
    • Enemy evolution
The translation of the caption is sourced from the Template:Translation for the language of the page this template is used on.
List of all templates