Template:TileLink: Difference between revisions
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly>[[Special:MyLanguage/{{{2}}}|{{{1}}}]] [[Special:MyLanguage/{{{2}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]</includeonly> | </noinclude> | ||
<includeonly>[[Special:MyLanguage/{{{2}}}|{{{1}}}]] [[Special:MyLanguage/{{{2}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]</includeonly> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> |
Revision as of 09:18, 11 February 2023
This template is for the links on the main page to reduce the repetition and ease translation. It is meant to be used in combination with the tile template.
Usage
{{TileLink|{{Tile|entities|3}}|Jump|Death}}
results in
- Shows the unhookable tile from the entities layer (for the usage see Template:Tile
- Shows the text "Death"
- Both the image and the text link to the Jump article
The display text is optional, when not provided, the Article title is used:
{{TileLink|{{Tile|entities|3}}|Jump}}
results in
This could be translated to another language (for this example to german):
{{TileLink|{{Tile|entities|3}}|Jump/de|Tod}}
results in
- The link is changed to link to the German version of Jump (
Jump
->Jump/de
- The displayed text is changed to the translated version of "Death" ("Tod")
- The link is changed to link to the German version of Jump (
A link to a tile.
Parameter | Description | Type | Status | |
---|---|---|---|---|
The tile template. | 1 Tile | The tile template.
| Template | required |
The article intralink. | 2 Page | The article intralink.
| Page name | required |
The text to show. | 3 text | The text to show.
| String | required |