Talk:Results of the 1944 Swedish general election
Appearance
This article is rated List-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||
|
Too many expensive parser function calls
[edit]@Glottran: The article has 284 templates like {{ill|Bräkne Hundred|lt=Bräkne|sv|Bräkne härad}}
. Using {{ill}} tests whether a link is a redirect and that test is "expensive". The result is that the article is in the hidden categories Category:Pages with script errors and Category:Pages with too many expensive parser function calls. That can be confirmed by viewing "Page information" in the left sidebar of the article. The same problem occurs at Results of the September 1914 Swedish general election.
The solution is to work out which {{ill}} can be removed and replaced with a wikilink. Are you able to fix the problem? Johnuniq (talk) 07:42, 30 June 2020 (UTC)
- @Johnuniq:: is it possible to do a direct Wikilink to Swedish Wikipedia? I think it ought to be, but not sure how. Edit: basically how to make the hyperlinks look like they do now with the Swedish hyperlink as a paranthesis. The template becomes messed upp if I remove ill. Glottran (talk) 07:47, 30 June 2020 (UTC)
- Yes, a direct link example is
[[:sv:Bräkne härad]]
which appears as sv:Bräkne härad. It is possible to use a pipe so it looks like Bräkne härad. I once fixed a page with this same problem but I forget what I did. I won't be able to look at this for some days but I could probably remind myself later. I think I just replaced the template call with normal wikilinks, using some tricks to work out which links would work. Johnuniq (talk) 11:18, 30 June 2020 (UTC)- @Johnuniq:: Thank you a lot for the info. I will try and make it work for this page and then if successful I'm sure I could do likewise for the other Swedish election results pages. After 1948, the hundreds vanished so there's a limited pool of elections with these in mind.Glottran (talk) 12:36, 30 June 2020 (UTC)
- @Johnuniq:: Has the problem vanished now that I did close to half of the hundreds and converted those? Glottran (talk) 14:56, 30 June 2020 (UTC)
- Thanks, both articles are fixed, good work! Johnuniq (talk) 23:49, 30 June 2020 (UTC)
- @Johnuniq:: Has the problem vanished now that I did close to half of the hundreds and converted those? Glottran (talk) 14:56, 30 June 2020 (UTC)
- @Johnuniq:: Thank you a lot for the info. I will try and make it work for this page and then if successful I'm sure I could do likewise for the other Swedish election results pages. After 1948, the hundreds vanished so there's a limited pool of elections with these in mind.Glottran (talk) 12:36, 30 June 2020 (UTC)
- Yes, a direct link example is