⚠ NOTICE

The game has been released in Early Access on 26th of April, 2024.
Please keep in mind that any information provided on this Wiki may be incomplete or subject to change as the game progresses.

Template:Tl: Difference between revisions

From Manor Lords Official Wiki
(basic functionality - adds "Special:MyLanguage/" for formatting translation links)
 
(add usage and examples)
Line 4: Line 4:
}}</onlyinclude><noinclude>
}}</onlyinclude><noinclude>
==Doc==
==Doc==
Simple way to add Special:MyLanguage at the start of a link, only when viewing translated pages (as visiting the /en version not from the standard page title is avoided). Nothing will appear on EN versions.</noinclude>
Simple way to selectively add Special:MyLanguage at the start of a link. For Special:MyLanguage to work properly, the ''user's language preference'' must be set. You can do this at [[Special:Preferences]] or check the menu in the top right.
 
It will only be added when viewing translated pages (as visiting the /en version while not using the standard page title is something best avoided). Nothing will appear on EN versions nor will anything be added to the link, so ''EN versions will always link to EN versions'', even if the user's language preference is something else.
 
===Usage===
put {{tl}} at the start of the page name, like so: <code><nowiki>[[{{tl}}Burgage Plot]]</nowiki></code>
 
You can pipe this link to add linktext like normal without any difference. <code><nowiki>[[{{tl}}Family|Families]]</nowiki></code>
 
===Examples===
<pre>
* [[{{tl}}Burgage Plot]]
* [[{{tl}}Burgage Plot|families are housed here]]
</pre>
* [[{{tl}}Burgage Plot]]
* [[{{tl}}Burgage Plot|families are housed here]]
 
</noinclude>

Revision as of 08:27, 8 May 2024

Doc

Simple way to selectively add Special:MyLanguage at the start of a link. For Special:MyLanguage to work properly, the user's language preference must be set. You can do this at Special:Preferences or check the menu in the top right.

It will only be added when viewing translated pages (as visiting the /en version while not using the standard page title is something best avoided). Nothing will appear on EN versions nor will anything be added to the link, so EN versions will always link to EN versions, even if the user's language preference is something else.

Usage

put at the start of the page name, like so: [[{{tl}}Burgage Plot]]

You can pipe this link to add linktext like normal without any difference. [[{{tl}}Family|Families]]

Examples

* [[{{tl}}Burgage Plot]]
* [[{{tl}}Burgage Plot|families are housed here]]