Difference between revisions of "Template:DLC"
From PCGamingWiki, the wiki about fixing PC games
(promote latest dev to public -- adds auto-collapse functionality) |
(fixed includeonly end) |
||
(One intermediate revision by the same user not shown) | |||
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}}</includeonly><noinclude>{{documentation}}</noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{documentation}}</noinclude> |
Revision as of 09:10, 16 September 2021
Documentation for the above template (sometimes hidden from view).
- Create the table
- Construct a new row:
- Add rows to the table:
- Result:
{{DLC| --rows go here-- }}
{{DLC/row| Name | Notes | OS }}
{{DLC| {{DLC/row| Some DLC name | Relevant details | Windows, OS X, Linux}} {{DLC/row| Some other DLC | More relevant details | Windows, Linux}} }}
DLC and expansion packs
Name | Notes | |
---|---|---|
Some DLC name | Relevant details | |
Some other DLC | More relevant details |
Example:
DLC and expansion packs
Name | Notes | |
---|---|---|
Season Pass | ||
Corporate Lockdown | Part of Season Pass and Collection. | |
Crew Expendable | Part of Collection. | |
Last Survivor | Part of Collection. | |
Lost Contact | Part of Season Pass and Collection. | |
Safe Haven | Part of Season Pass and Collection. | |
Trauma | Part of Season Pass and Collection. | |
The Trigger | Part of Season Pass and Collection. |
- From Alien: Isolation
Visit Template:DLC/Documentation to edit this text. (How does this work?)