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

From PCGamingWiki, the wiki about fixing PC games
(added Company: namespace for Cargo)
(fixed vardefines for pages using the ! pipe magic word to change the display text (now stores only actual page name))
Line 2: Line 2:
 
<td class="template-infobox-type">{{{2|}}}</td>
 
<td class="template-infobox-type">{{{2|}}}</td>
 
<td class="template-infobox-info">[[Published by::Company:{{{1|}}}|{{#formredlink:target=Company:{{urlencode:{{{1|}}}|WIKI}}|form=Company page|link text={{{1|}}}|existing page link text={{{1|}}}}}]]{{{ref|}}}{{#if: {{{1|}}} | | {{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)‎]]}}}}</td>
 
<td class="template-infobox-info">[[Published by::Company:{{{1|}}}|{{#formredlink:target=Company:{{urlencode:{{{1|}}}|WIKI}}|form=Company page|link text={{{1|}}}|existing page link text={{{1|}}}}}]]{{{ref|}}}{{#if: {{{1|}}} | | {{#ifeq: {{NAMESPACE}} | | [[Category:Invalid template usage (infobox game)‎]]}}}}</td>
</tr>{{#vardefine:publishers|{{#if:{{#var:publishers}}|{{#var:publishers}},Company:{{{1|}}}|Company:{{{1|}}}}}}}
+
</tr>{{#arraymap:{{{1|}}}|{{!}}|€€€€€|{{#if:{{#var:current}}||{{#vardefine:publishers|{{#if:{{#var:publishers}}|{{#var:publishers}},Company:€€€€€|Company:€€€€€}}}}{{#vardefine:current|true}}}}}}{{#vardefine:current|}}

Revision as of 06:28, 27 September 2021