Template:TransLink: Difference between revisions
Jump to navigation
Jump to search
(Template for creating a link to the correct language page and translating the name of the page to display.) |
(added doc) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[{{{1}}}{{ | <includeonly>[[{{{1}}}{{If language suffix}}{{#if: {{{anchor|}}}|#{{Translation{{If language suffix}}|{{{anchor}}}}}}}|{{Translation|{{{2|{{{1}}}}}}}}]]</includeonly><noinclude> | ||
{{Shortcut|L}}{{doc}} | |||
</noinclude> |
Latest revision as of 18:51, 20 October 2017
[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
- Example: