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


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Infobox game/row/reception"

From PCGamingWiki, the wiki about fixing PC games
(initial commit and test)
 
m (added rating exclusion (hopefully))
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<tr>
+
<includeonly>{{#if: {{#ifeq:{{{3|}}}|rating||{{{3|}}}}} | <tr>
 
<td class="template-infobox-type"><!--
 
<td class="template-infobox-type"><!--
 
-->{{#switch: {{lc: {{{1|}}} }}
 
-->{{#switch: {{lc: {{{1|}}} }}
 
|metacritic = Metacritic
 
|metacritic = Metacritic
|opencritic = Opencritic
+
|opencritic = OpenCritic
 
|igdb      = IGDB
 
|igdb      = IGDB
|#default  = This value is not permitted. <includeonly>[[Category:Invalid template usage (infobox game)]]</includeonly>
+
|#default  = This value is not permitted. [[Category:Invalid template usage (infobox game)]]
 
}}</td>
 
}}</td>
 
<td class="template-infobox-info"><!--
 
<td class="template-infobox-info"><!--
 
-->{{#switch: {{lc: {{{1|}}} }}
 
-->{{#switch: {{lc: {{{1|}}} }}
|metacritic =  [https://www.metacritic.com/game/pc/{{{2}}} {{{3}}}]
+
|metacritic =  [https://www.metacritic.com/game/pc/{{Trim|1={{{2}}}}} {{{3}}}]
|opencritic = [https://opencritic.com/game/{{{2}}} {{{3}}}]
+
|opencritic = [https://opencritic.com/game/{{Trim|1={{{2}}}}} {{{3}}}]
|igdb      = [https://www.igdb.com/games/{{{2}}} {{{3}}}]
+
|igdb      = [https://www.igdb.com/games/{{Trim|1={{{2}}}}} {{{3}}}]{{#vardefine: igdb | {{Trim|1={{{2}}}}} }}
|#default  = This value is not permitted. <includeonly>[[Category:Invalid template usage (infobox game)]]</includeonly>
+
|#default  = This value is not permitted. [[Category:Invalid template usage (infobox game)]]
}}
+
}}</td>
 
</tr>
 
</tr>
 +
}}</includeonly>

Revision as of 08:58, 15 June 2020