Template:Mod List: Difference between revisions

From Modding Haven
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 28: Line 28:
|{{{24}}}
|{{{24}}}
|{{{25}}}
|{{{25}}}
|ordermethod         = title
|ordermethod         = title
|addpagecounter      = true
|format             = ,\n* [[%PAGE%|%TITLE%]] ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
|format             = ,\n* [[%PAGE%|%TITLE%]] <small>(%COUNT% views)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
}}
}}
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}}
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}}
Line 61: Line 60:
|{{{24}}}
|{{{24}}}
|{{{25}}}
|{{{25}}}
|ordermethod         = counter
|ordermethod         = counter
|order               = descending
|order               = descending
|addpagecounter       = true
|addpagecounter     = true
|format             = ,\n# [[%PAGE%|%TITLE%]] <small>(%COUNT% views)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
|format             = ,\n# [[%PAGE%|%TITLE%]] <small>(%COUNT% views)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
}}
}}
Line 95: Line 94:
|{{{24}}}
|{{{24}}}
|{{{25}}}
|{{{25}}}
|ordermethod         = lastedit
|ordermethod         = lastedit
|order               = descending
|order               = descending
|addpagecounter      = true
|addeditdate        = true
|format             = ,\n* [[%PAGE%|%TITLE%]] <small>(%COUNT% views)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
|userdateformat      = Y-m-d
|format             = ,\n* [[%PAGE%|%TITLE%]] <small>(Last revision: %DATE%)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
}}
}}
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}}
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}}
Line 129: Line 129:
|{{{24}}}
|{{{24}}}
|{{{25}}}
|{{{25}}}
|ordermethod         = firstedit
|ordermethod         = firstedit
|order               = descending
|order               = descending
|addpagecounter      = true
|addeditdate        = true
|format             = ,\n* [[%PAGE%|%TITLE%]] <small>(%COUNT% views)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
|userdateformat      = Y-m-d
|format             = ,\n* [[%PAGE%|%TITLE%]] <small>(Added: %DATE%)</small> ²{#ifeq:¦²{GETSHORTDESC:%PAGE%}²¦¦ - ²{GETSHORTDESC:%PAGE%}²}²,,
}}
}}
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}}
{{#ifexpr: {{PAGESINCAT: {{PAGENAME}}}} > 100 | </div>}}

Revision as of 05:03, 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.