Template:Mod List: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 95: | Line 95: | ||
|{{{25}}} | |{{{25}}} | ||
|ordermethod = lastedit | |ordermethod = lastedit | ||
|minoredits = exclude | |||
|order = descending | |order = descending | ||
|addeditdate = true | |addeditdate = true | ||
Line 149: | Line 150: | ||
Most Viewed: Ordered by view count, descending. Include <code>%COUNT%</code> in the display. | 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 | Recently Updated: Ordered by last edit, excluding minor edits, descending. Include <code>%DATE%</code> in the display. | ||
Recently Added: Ordered by first edit, descending. Include <code>%DATE%</code> in the display. | Recently Added: Ordered by first edit, descending. Include <code>%DATE%</code> in the display. | ||
</noinclude> | </noinclude> |
Revision as of 21:58, 9 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. Output removes Game name mods/
from the hyperlink text (if replaceintitle
is correctly set), and adds {{SHORTDESC}}
if it exists.
Alphabetical: Ordered by page title. No extra formatting.
Most Viewed: Ordered by view count, descending. Include %COUNT%
in the display.
Recently Updated: Ordered by last edit, excluding minor edits, descending. Include %DATE%
in the display.
Recently Added: Ordered by first edit, descending. Include %DATE%
in the display.