⚠ 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: Difference between revisions

From Manor Lords Official Wiki
(some basic ideas/notes)
 
(working on ideas)
 
Line 8: Line 8:
#closing brackets
#closing brackets


new basic plan: <code><nowiki>[[english{{tl2|localisation}}</nowiki></code>
new initial plan: template wraps all of localisation and maybe ends the link <code><nowiki>[[english{{tl2|localisation}}</nowiki></code>
*where TL2 is <code><nowiki>/{{language-magicword-thingy}}|</nowiki></code>
*where TL2 is <code><nowiki>/{{language-magicword-thingy}}|{{{1|}}}]]</nowiki></code>
*but ]] unbalanced so maybe it should be used to wrap the end anyway
*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
*wrapping tags around localisation is "nice" but also confusing technically
*works if logged out/works if localisation not set
*works if logged out/works if localisation not set


possible variant <code><nowiki>[[english{{tl2}}localisation]]</nowiki></code>
possible variant: template as separator only <code><nowiki>[[english{{tl2}}localisation]]</nowiki></code>
*where TL2 is <code><nowiki>/{{language-magicword-thingy}}</nowiki></code> 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:
past attempts:

Latest revision as of 08:50, 12 May 2024

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