Difference between revisions of "Template:Infobox game/row/reception"
From PCGamingWiki, the wiki about fixing PC games
m (Only display something if parameter 3 is set (this also solved the icon not showing up in case the parameters are empty)) |
m (Added trim) |
||
Line 9: | Line 9: | ||
<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}}}]{{#vardefine: igdb | {{{2 | + | |igdb = [https://www.igdb.com/games/{{Trim|1={{{2}}}}} {{{3}}}]{{#vardefine: igdb | {{Trim|1={{{2}}}}} }} |
|#default = This value is not permitted. [[Category:Invalid template usage (infobox game)]] | |#default = This value is not permitted. [[Category:Invalid template usage (infobox game)]] | ||
}}</td> | }}</td> | ||
</tr> | </tr> | ||
}}</includeonly> | }}</includeonly> |