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
(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:section|DLC}}{{#vardefine:DLC|needed}}{{#vardefine:dlcs autohide|10}}{{#vardefine:dlcs total|0}}<!--
+
{{#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></includeonly><!--
+
--></table></div>{{#vardefine:section|DLC/done}}</includeonly><noinclude>{{documentation}}</noinclude>
 
 
 
 
 
 
--><noinclude><!--
 
 
 
 
 
  EXAMPLE  -->
 
{{DLC|
 
{{DLC/row| Season Pass |  | Windows, OS X, Linux }}
 
{{DLC/row| Corporate Lockdown | Part of ''Season Pass'' and ''Collection''. | Windows, OS X, Linux }}
 
{{DLC/row| Crew Expendable | Part of ''Collection''. | Windows, OS X, Linux }}
 
{{DLC/row| Last Survivor | Part of ''Collection''. | Windows, OS X, Linux }}
 
{{DLC/row| Lost Contact | Part of ''Season Pass'' and ''Collection''. | Windows, OS X, Linux }}
 
{{DLC/row| Safe Haven | Part of ''Season Pass'' and ''Collection''. | Windows, OS X, Linux }}
 
{{DLC/row| Trauma | Part of ''Season Pass'' and ''Collection''. | Windows, OS X, Linux }}
 
{{DLC/row| The Trigger | Part of ''Season Pass'' and ''Collection''. | Windows, OS X, Linux }}
 
}}
 
{{ii}} From [[Alien: Isolation]]
 
{{documentation}}</noinclude>
 

Revision as of 09:10, 16 September 2021

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