Talk:Wiki: Difference between revisions

Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
 
:<p>The page currently uses {{tl|Keylink}} and {{tl|Valuelink}} in order to link to each key and value, but I think we should replace this usage with old-fashioned {{tl|TagKey}} and {{tl|TagValue}}, which I'm [[Template talk:TagValue#Lua rewrite|rewriting for better performance]]. {{tl|Keylink}} and {{tl|Valuelink}} rely on data items to discover translations in other languages. While data items are a good tool for discovering translations of ordinary wiki pages like "[[Bicycle]]" and "[[Tags]]", I think it's overkill for key or value description pages, which have predictable titles. From MediaWiki's perspective, fetching a data item is equally expensive as checking whether a page exists at a particular title, but there's also a cap on the number of data items that can be fetched per page.</p><p>The only current benefit of {{tl|Keylink}} and {{tl|Valuelink}} is that it can fall back to a more closely related language than English without having to check ''that'' page's existence. But currently it can only perform language fallbacks based on {{tl|langcode}} – that is, the language implied by the page name. The page might as well specify a fallback language explicitly, saving everyone effort. [[MediaWiki talk:Lang#Still To-Do]] would make it possible for the fallback to be based on the user's preferred interface language, but this doesn't really require data items.</p><p>&nbsp;&ndash;&nbsp;[[User:Minh Nguyen|Minh <span style="font-variant: small-caps;">Nguyễn</span>]]&nbsp;<sup>[[User talk:Minh Nguyen|<span style="display: inline-block;">&#x1f4ac;</span>]]</sup> 22:15, 14 April 2024 (UTC)<p>
 
: Possible solution: make link to tag or key page a parameter, with default value equal to English page name. If translated version exists, it is sufficient to add page name as parameter, evaluation is pure static, no Lua calls or checks for page existence (as in {{t|LL}}). [[User:Something B|Something B]] ([[User talk:Something B|talk]]) 11:12, 27 August 2024 (UTC)
 
----
5,767

edits

Navigation menu