Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
 
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
 
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
 
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|300px]]</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:{{{steamimage|}}}|<div class="portrait300px">https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/{{{steamimage}}}</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 52:
 
<!--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 20:02, 24 June 2026

Infobox