Module talk:Tag
Where is this module used?
Hi, I am trying to understand where this module is used. --Push-f (talk) 17:19, 17 July 2022 (UTC)
- Ok
p.keyComponentList
is apparently used by Template:Noarticletext via Template:Key components. - And
p.tag
is apparently meant to be used byp.keyComponentList
but currently not due to a bug, see special:diff/2326359. --Push-f (talk) 05:28, 18 July 2022 (UTC)
- @Push-f: Yes, there's more context at Talk:Wiki#Enhanced not-found messages. Additionally, Template:Tag/sandbox is a test of a more flexible replacement for Template:Tag, but it needs some work as you've discovered. – Minh Nguyễn 💬 00:10, 27 July 2022 (UTC)
Note about errors of Too many expensive function calls
MediaWiki errors out if certain functions are used more than a predefined number of times within the same article, as documented here. The second part of IT:Glossario_OSM is unusable and shows (instead of the tag keys and values) the error message Lua error in mw.title.lua at line 230: too many expensive function calls
.
I'm not an expert at MediaWiki, but I'd assume that Template:Tag and its redirect Template:Key use these functions and can be used at most a certain number of times. So a solution could be to split the page's content out into subpages (IT:Glossario OSM/A-D
, ...). The subpages would (individually) not reach the limit and not error out.
I think that the alternative is to increase the value of the above linked variable in the MediaWiki configuration, or reduce the number of function usages in the template, but this would not be a permanent fix, because you add 20 template usages and the article errors out again.
Is this an accurate picture? Thoughts?