Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Difference between revisions of "Template:DLC"

From PCGamingWiki, the wiki about fixing PC games
m (1 revision imported)
m (added |Microtransactions= to omit invalid section order)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<h3>Downloadable content (DLC) and expansions</h3>
+
<includeonly>{{#switch:{{#var:section}}
<div class="container-pcgwikitable"><table class="mw-collapsible mw-collapsed pcgwikitable sortable template-infotable" id="table-dlc">
+
|Availability/done
<tr class="template-infotable-head">
+
|Monetization
<th scope="col" style="width: 230px;">Name</th>
+
|Microtransactions=
<th scope="col" style="width: 490px;" class="unsortable">Notes</th>
+
|#Default = {{#ifeq:{{NAMESPACE}}||[[Category:Invalid section order]]}}
<th scope="col" style="width: 100px;" class="unsortable"></th>
+
}}{{#vardefine:dlcs autohide|10}}{{#vardefine:dlcs total|0}}<!--
</tr>
+
-->{{#vardefine:dlcs rendered|{{{content|{{{1|}}}}}}}}<!--
{{{content|{{{1}}}}}}
+
-->{{#ifexpr:{{#var:dlcs total}} > 0|<!--
</table></div><noinclude>{{documentation}}</noinclude>
+
--><h3>DLC and expansion packs</h3>
 +
<div class="container-pcgwikitable"><table class="pcgwikitable sortable template-infotable {{#ifexpr:{{#var:dlcs total}} > {{#var:dlcs autohide}} | mw-collapsible mw-collapsed}}" id="table-dlc">
 +
  <tr class="template-infotable-head table-dlc-head-row">
 +
    <th scope="col" style="width: 230px;" class="table-dlc-head-name">Name</th>
 +
    <th scope="col" style="width: 500px;" class="unsortable table-dlc-head-notes">Notes</th>
 +
    <th scope="col" style="width: 90px;" class="unsortable table-dlc-head-OS"></th>
 +
  </tr><!--
 +
-->{{#var:dlcs rendered}}<!--
 +
--></table></div>|{{#ifeq:{{#var:DLC}}|needed|<!--
 +
--><h3>DLC and expansion packs</h3>
 +
{{ii}} ''No DLC or expansion pack information; you can <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page]</span> to add it.''}}
 +
}}{{#vardefine:section|DLC/done}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 19:31, 21 June 2022

Documentation for the above template (sometimes hidden from view).
  1. Create the table
  2. {{DLC|
    --rows go here--
    }}
    
  3. Construct a new row:
  4. {{DLC/row| Name | Notes | OS }}
    
  5. Add rows to the table:
  6. {{DLC|
    {{DLC/row| Some DLC name | Relevant details | Windows, OS X, Linux}}
    {{DLC/row| Some other DLC | More relevant details | Windows, Linux}}
    }}
    
  7. Result:
  8. DLC and expansion packs

    Name Notes
    Some DLC name Relevant details
    Windows
    macOS (OS X)
    Linux
    Some other DLC More relevant details
    Windows
    Linux

Example:

DLC and expansion packs

Name Notes
Season Pass
Windows
macOS (OS X)
Linux
Corporate Lockdown Part of Season Pass and Collection.
Windows
macOS (OS X)
Linux
Crew Expendable Part of Collection.
Windows
macOS (OS X)
Linux
Last Survivor Part of Collection.
Windows
macOS (OS X)
Linux
Lost Contact Part of Season Pass and Collection.
Windows
macOS (OS X)
Linux
Safe Haven Part of Season Pass and Collection.
Windows
macOS (OS X)
Linux
Trauma Part of Season Pass and Collection.
Windows
macOS (OS X)
Linux
The Trigger Part of Season Pass and Collection.
Windows
macOS (OS X)
Linux
From Alien: Isolation