Difference between revisions of "CompanyHistoryBlock"

From Sega Retro

(this might be faster... maybe)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:currentTest|{{CompanyHistory|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}||type={{{type|}}}|format={{{format}}}}}}}{{
+
<includeonly>{{#if:{{#var:formatlist}}|{{#if:{{#pos:{{#var:formatlist}}|{{{format|}}},}}|{{#vardefine:printblock|yes}}|}}|{{#vardefine:printblock|yes}}}}{{#if:{{#var:printblock}}|{{#vardefine:currentTest|{{CompanyHistory|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}||type={{{type|}}}|role={{{role|}}}|format={{{format}}}}}}}{{
 
#if:{{#var:results}}|
 
#if:{{#var:results}}|
 
<nowiki></nowiki>
 
<nowiki></nowiki>
===[[{{{format}}}]]===
+
{{#ifeq:{{{type|}}}|hardware||===[[{{{format}}}]]===}}
 
{{#var:currentTest}}
 
{{#var:currentTest}}
  
}}</includeonly><noinclude>[[Category:Sega Retro templates]]</noinclude>
+
}}}}{{clearvar|printblock}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 04:21, 2 July 2024