-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No more than 10 categories per article in Wikisource header template #12
Comments
related wpoa/JATS-to-Mediawiki#21 |
No. The problem is that the header template can only handle 10 categories. |
Seems one of the limitations is in the Header template https://en.wikisource.org/w/index.php?title=Template:Header_more_categories&action=edit
There is a ParserFunction called "#titleparts" being used for indeed up to 10 Categories. There are limitations to this function, including:
Ideally, we should implement some sort of loop to process a high number of categories (apparently not too high as there are mediawiki transclusion limits that would prevent an arbitrary loop for fear of Denial-of-Service). However, Wikisource does not have many loop templates implemented (as wikipedia does for instance), so this is a bit of a tough problem. More info to follow |
I think we should stick to these 10 categories in the header template, but we can probably add additional ones outside the header template via the good old [[Category:XYZ]] syntax, either directly or via a separate template. |
Pick the simplest solution even if an incomplete list of categories is displayed. |
This has been fixed via https://en.wikisource.org/wiki/Template_talk:Header#Change_to_Support_More_than_10_Categories |
At
https://en.wikisource.org/w/index.php?title=Wikisource:WikiProject_Open_Access/Programmatic_import_from_PubMed_Central/Schizophrenia_and_Violence_Systematic_Review_and_Meta-Analysis&oldid=4970952 ,
the category display is messed up because
https://en.wikisource.org/w/index.php?title=Template:Header&oldid=4660353#Categories
only allows for 10 categories. So we should provide a maximum of 10 and come up with some rules on which ones to eliminate if we have a longer list.
Example:
https://en.wikisource.org/w/index.php?title=Wikisource%3AWikiProject_Open_Access%2FProgrammatic_import_from_PubMed_Central%2FSchizophrenia_and_Violence_Systematic_Review_and_Meta-Analysis&diff=4970959&oldid=4970952 .
The text was updated successfully, but these errors were encountered: