Talk:Wiki: Difference between revisions

Jump to navigation Jump to search
::::{{ping|Something B}} [[Special:MyLanguage]] only works [[Proposal:Add Translate extension to Wiki|if the Translate extension is installed]]. It's one of the many benefits of this extension, but the effort to install it has stalled. &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:26, 11 April 2024 (UTC)
 
:<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>
 
----
----
In the template [https://wiki.openstreetmap.org/w/index.php?title=Template:Map_Features:shop&action=history Template:Map Features:shop], I removed unnecessary parameterization of parameters that are not translated, and removed 165 same links to Key:shop, on top of that called by the template, which uses data items. The whole thing reduced page loading by about 2.3 seconds, from 6.8 s to 4.5 s. This is just one of the templates nested in [Map feautures], but one of the bigger ones. Maybe I can slim down the templates and reduce the loading time of Map features. I will continue. [[User:Maro21|maro21]] 15:28, 30 March 2024 (UTC)
----
I have already corrected many Map features subpages, but need some more time to finish writing the summary, which will appear here soon. [[User:Maro21|maro21]] 20:42, 24 May 2024 (UTC)
 
== Whitelist forms.gle ==
43,749

edits

Navigation menu