Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
{{#if:{{{steamheader|}}}|<div class="portrait300px">https://cdn.cloudflare.steamstatic.com/steam/apps/{{{steamheader}}}/header.jpg</div>|{{#if:{{{steamappid|}}}|<div class="portrait300px">https://cdn.cloudflare.steamstatic.com/steam/apps/{{{steamappid}}}/library_600x900.jpg</div>}}|}}
 
{{#if:{{{steamheader|}}}|<div class="portrait300px">https://cdn.cloudflare.steamstatic.com/steam/apps/{{{steamheader}}}/header.jpg</div>|{{#if:{{{steamappid|}}}|<div class="portrait300px">https://cdn.cloudflare.steamstatic.com/steam/apps/{{{steamappid}}}/library_600x900.jpg</div>}}|}}
 
{|
 
{|
 
 
{{#if:{{{steamappid|}}}{{{gogurl|}}}|
 
{{#if:{{{steamappid|}}}{{{gogurl|}}}|
 
     <!-- First element -->
 
     <!-- First element -->
Line 49: Line 48:
 
<!--List-->{{#regex:{{{drm|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 DRM|$1]][[Category:$1 DRM]]$2}}</tr>|
 
<!--List-->{{#regex:{{{drm|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 DRM|$1]][[Category:$1 DRM]]$2}}</tr>|
 
}}}}
 
}}}}
{{#if:{{{testedos| testedos_nw| testedos_warn}}}|{{!}}'''Tested OS'''{{!!}}{{#ifeq:{{#regex:{{{testedos| testedos_nw| testedos_warn}}}|/>/rs|}}||
+
{{#if:{{{testedos|}}}{{{testedos_warn|}}}{{{testedos_nw|}}}|{{!}}'''Tested OS'''{{!!}}{{#ifeq:{{#regex:{{{testedos|}}}|/>/rs|}}||
<!--List-->{{#regex:{{{testedos|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Tested OS|🟩 $1</br>]]}}
+
<!--List-->{{#regex:{{{testedos|}}}|/([^,]+)(,? ?)/rs|🟩 $1</br>}}<!--List-->{{#regex:{{{testedos_warn|}}}|/([^,]+)(,? ?)/rs|⚠️ $1</br>}}<!--List-->{{#regex:{{{testedos_nw|}}}|/([^,]+)(,? ?)/rs|🟥 $1</br>}}
 
 
<!--List-->{{#regex:{{{testedos_warn|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Tested OS|⚠️ $1</br>]]}}
 
 
 
<!--List-->{{#regex:{{{testedos_nw|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Tested OS|🟥 $1</br>]]}}
 
 
</tr>|
 
</tr>|
 
}}}}
 
}}}}
 
|}
 
|}
 
</div>
 
</div>

Latest revision as of 22:48, 30 March 2026

Infobox