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

User:Techhead7890/tl2

From Manor Lords Official Wiki
< User:Techhead7890
Revision as of 08:50, 12 May 2024 by Techhead7890 (talk | contribs) (working on ideas)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Link has 5 main parts:

  1. opening brackets
  2. target
    • can have subpage at start or end
  3. separator
  4. linktext
    • always required for translation pages
  5. closing brackets

new initial plan: template wraps all of localisation and maybe ends the link [[english{{tl2|localisation}}

  • where TL2 is /{{language-magicword-thingy}}|{{{1|}}}]]
  • but ]] looks unbalanced before translcusion. Maybe it should be outside to wrap the end anyway for symmetry.
  • wrapping tags around localisation is "nice" but also confusing technically
  • works if logged out/works if localisation not set

possible variant: template as separator only [[english{{tl2}}localisation]]

  • where TL2 is /{{language-magicword-thingy}} if not en
    • what if no linktext/localisation set, how will it know what to control? can't do a checklinktext safely
  • works if logged out/works if localisation not set
  • possibly an argument for rewriting the whole thing in lua


past attempts: [[{{tl}}english|localisation]] - with tl=="Special:MyLanguage" in control parser - required some setup if link not piped leading to confusion about where linktext would go

<nowiki>[[english/Template:Language-magicword-thingy|localisation]] - long separation between english link target and localisation, pipe and slash could be misadded, likely to break in english without control parser