Template:TransLink/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(category)
(add where the translation comes from)
 
Line 6: Line 6:
** Example: <code><nowiki>{{TransLink|Enemies|Enemy evolution|anchor=Evolution}}</nowiki></code>
** Example: <code><nowiki>{{TransLink|Enemies|Enemy evolution|anchor=Evolution}}</nowiki></code>
** {{TransLink|Enemies|Enemy evolution|anchor=Evolution}}
** {{TransLink|Enemies|Enemy evolution|anchor=Evolution}}
The translation of the caption is sourced from the [[Template:Translation]] for the language of the page this template is used on.


<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 17:03, 1 December 2023

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