Template talk:LangPrefix
Jump to navigation
Jump to search
@Wynndale: [1] did it help anything? The limit is still exceeded for Da:Map Features:
Page exceeded the node count Warning: This page contains too many expensive parser function calls. It should have less than 500 calls, there are now 1,090 calls.
I'm wondering why for example Bs:Map Features works well. maro21 22:40, 11 April 2022 (UTC)
- Removing capitalisation was an easy change but it isn’t enough for the repeated calls of this template through {{LL}} in many Map Features pages. Further possibilities for optimisation are the fallback switch (remove languages unused in this wiki, hook into MediaWiki’s fallbacks via Lua or rewrite {{LL}} which is the only place that uses it) and
{{langcode|{{{1}}}}}
, which is a pessimisation because it repeatedly evaluates {{Langcode}} instead of caching it. This could be done by always having a{{{1}}}
argument and calling the template as{{LangPrefix|{{langcode}} }}
, or if the page language is set reliably in calling pages and it really is in English if set to English,{{LangPrefix|{{PAGELANGUAGE}} }}
. --Andrew (talk) 06:06, 12 April 2022 (UTC)
- From my point of view the "*Map features" pages are too huge. No one is looking for everything at the same time, so it would be good to have in it a table of contents, like here for example: Pl:Obiekty na mapie. maro21 20:40, 13 April 2022 (UTC)