Difference between revisions of "Template:DLC"

From PCGamingWiki, the wiki about fixing PC games
m (added per cell CSS classes for more in-depth styling)
(added check for empty template)
Line 6: Line 6:
 
<th scope="col" style="width: 90px;" class="unsortable table-dlc-head-OS"></th>
 
<th scope="col" style="width: 90px;" class="unsortable table-dlc-head-OS"></th>
 
</tr>
 
</tr>
{{{content|{{{1}}}}}}
+
{{#if:{{{content|}}}{{{1|}}}|{{{content|{{{1}}}}}}|[[Category:Invalid template usage (DLC)]]}}
 
</table></div><noinclude>{{documentation}}</noinclude>
 
</table></div><noinclude>{{documentation}}</noinclude>

Revision as of 20:14, 5 April 2019

Downloadable content (DLC) and expansions

Name Notes
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