Difference between revisions of "Template:DLC"
From PCGamingWiki, the wiki about fixing PC games
(promote latest dev to public -- adds auto-collapse functionality) |
(added previous section validity check (ensures templates are being used in the correct order on game pages); removed examples (moved to Template:DLC/Documentation)) |
||
Line 1: | Line 1: | ||
<includeonly><h3>DLC and expansion packs</h3> | <includeonly><h3>DLC and expansion packs</h3> | ||
− | {{#vardefine: | + | {{#vardefine:DLC|needed}}{{#switch:{{#var:section}} |
+ | |Availability/done | ||
+ | |Monetization= | ||
+ | |#Default = [[Category:Invalid section order]] | ||
+ | }}{{#vardefine:dlcs autohide|10}}{{#vardefine:dlcs total|0}}<!-- | ||
-->{{#vardefine:dlcs rendered|{{{content|{{{1|}}}}}}}}<!-- | -->{{#vardefine:dlcs rendered|{{{content|{{{1|}}}}}}}}<!-- | ||
--><div class="container-pcgwikitable"><table class="pcgwikitable sortable template-infotable {{#ifexpr:{{#var:dlcs total}} > {{#var:dlcs autohide}} | mw-collapsible mw-collapsed}}" id="table-dlc"> | --><div class="container-pcgwikitable"><table class="pcgwikitable sortable template-infotable {{#ifexpr:{{#var:dlcs total}} > {{#var:dlcs autohide}} | mw-collapsible mw-collapsed}}" id="table-dlc"> | ||
Line 9: | Line 13: | ||
</tr><!-- | </tr><!-- | ||
-->{{#if:true|{{#var:dlcs rendered}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (DLC)]] }} }}<!-- | -->{{#if:true|{{#var:dlcs rendered}}|{{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (DLC)]] }} }}<!-- | ||
− | --></table></div> | + | --></table></div>{{#vardefine:section|DLC/done}}<noinclude>{{documentation}}</noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{documentation}}</noinclude> |