Template:Mod List: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 143: Line 143:
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.
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.
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. Output removes <code>Game name mods/</code> from the hyperlink text (if <code>replaceintitle</code> is correctly set), and adds <code><nowiki>{{SHORTDESC}}</nowiki></code> if it exists.
 
Alphabetical: Ordered by page title. No extra formatting.
 
Most Viewed: Ordered by view count, descending. Include <code>%COUNT%</code> in the display.
 
Recently Updated: Ordered by last edit, descending. Include <code>%DATE%</code> in the display. This unfortunately includes minor edits as using <code>minoredits = exclude</code> to change the sorting doesn't change <code>%DATE%</code>, so the date shown and list order would be off.
 
Recently Added: Ordered by first edit, descending.  Include <code>%DATE%</code> in the display.
</noinclude>
</noinclude>

Navigation menu