Template:Mod List: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 135: | Line 135: | ||
}} | }} | ||
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}} | {{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}} | ||
</tabber></includeonly> | </tabber></includeonly><noinclude> | ||
A very inefficient template for generating mod lists. | |||
Uses [[mediawikiwiki:Extension:TabberNeue|TabberNeue]] to make 4 tabs: Alphabetical, Most Viewed, Recently Updated, and Recently Added. | |||
It then checks if the current game has more than 100 mods (checking <code><nowiki>[[Category:Game name mods]]</nowiki></code> using <code><nowiki>{{PAGESINCAT: {{PAGENAME}}}}</nowiki></code>) and if so sets the class to dplcategory, which [[MediaWiki:Common.css]] will display as 2 columns. It checks 2 times per tab (div start and div end) for a total of 8 checks per usage of this template. | |||
In each tab it uses [[mediawikiwiki:Extension:DynamicPageList3|DynamicPageList3]] to generate a list of mods based off category entries. DPL3 doesn't allow Magic words, so use parameters to make it easier to fill in the game page/category name. 25 parameter slots just in case a lot of categories need included/excluded. | |||
</noinclude> |
Revision as of 04:42, 6 February 2024
A very inefficient template for generating mod lists.
Uses TabberNeue to make 4 tabs: Alphabetical, Most Viewed, Recently Updated, and Recently Added.
It then checks if the current game has more than 100 mods (checking [[Category:Game name mods]]
using {{PAGESINCAT: {{PAGENAME}}}}
) and if so sets the class to dplcategory, which MediaWiki:Common.css will display as 2 columns. It checks 2 times per tab (div start and div end) for a total of 8 checks per usage of this template.
In each tab it uses DynamicPageList3 to generate a list of mods based off category entries. DPL3 doesn't allow Magic words, so use parameters to make it easier to fill in the game page/category name. 25 parameter slots just in case a lot of categories need included/excluded.