Difference between revisions of "Template:Availability"

From PCGamingWiki, the wiki about fixing PC games
m (Undo revision 1008858 by Aemony (talk) worked, but introduces unwanted visual bugs)
(Tag: Undo)
(added previous section validity check (ensures templates are being used in the correct order on game pages))
Line 1: Line 1:
<div class="container-pcgwikitable"><table class="pcgwikitable sortable template-infotable" id="table-availability">{{#vardefine:section|Availability}}
+
<includeonly>{{#switch:{{#var:section}}
 +
|Infobox game
 +
|Introduction=
 +
|#Default = [[Category:Invalid section order]]
 +
}}<div class="container-pcgwikitable"><table class="pcgwikitable sortable template-infotable" id="table-availability">
 
<tr class="template-infotable-head table-availability-head-row">
 
<tr class="template-infotable-head table-availability-head-row">
 
<th scope="col" style="width: 230px;" class="table-availability-head-source">Source</th>
 
<th scope="col" style="width: 230px;" class="table-availability-head-source">Source</th>
Line 8: Line 12:
 
</tr>
 
</tr>
 
{{#if:{{{content|}}}{{{1|}}}|{{{content|{{{1}}}}}}|{{#ifeq: {{NAMESPACE}} | |[[Category:Invalid template usage (Availability)]]}}}}
 
{{#if:{{{content|}}}{{{1|}}}|{{{content|{{{1}}}}}}|{{#ifeq: {{NAMESPACE}} | |[[Category:Invalid template usage (Availability)]]}}}}
</table></div>{{#if:{{#var:SafeDisc}}{{#var:StarForce incompatible}}|{{Availability/warnings}}{{#if:{{#var:digital}}||{{#vardefine:Warnings|true}}}}}}<noinclude>{{documentation}}</noinclude>
+
</table></div>{{#vardefine:section|Availability/done}}{{#if:{{#var:SafeDisc}}{{#var:StarForce incompatible}}|{{Availability/warnings}}{{#if:{{#var:digital}}||{{#vardefine:Warnings|true}}}}}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 02:05, 27 August 2021

Documentation for the above template (sometimes hidden from view).

See the editing guide for usage instructions.