Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
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:{{{steamimage|}}}|<div class="portrait300px">{{{steamimage}}}</div>}}
+
{{#if:{{{steamappid|}}}|<div class="portrait300px">https://cdn.cloudflare.steamstatic.com/steam/apps/{{{steamappid}}}/library_600x900_2x.jpg</div>}}
 
{|
 
{|
  
|{{#if:{{{steamurl|}}}{{{gogurl|}}}|
+
|{{#if:{{{steamappid|}}}{{{gogurl|}}}|
 
     <!-- First element -->
 
     <!-- First element -->
 
     {{!}}'''Storefronts'''
 
     {{!}}'''Storefronts'''
 
{{!!}}
 
{{!!}}
{{#if:{{{steamurl|}}}|
+
{{#if:{{{steamappid|}}}|
 
{{#regex:{{{steamurl}}}|/([^,]+)(,? ?)/rs|
 
{{#regex:{{{steamurl}}}|/([^,]+)(,? ?)/rs|
[[Image:Steam_logo.svg|24px|link=$1]]}}[[Category:On Steam]]
+
[[Image:Steam_logo.svg|24px|link=https://store.steampowered.com/app/{{{steamappid}}}]]}}[[Category:On Steam]]
 
}}
 
}}
 
{{#if:{{{gogurl|}}}|
 
{{#if:{{{gogurl|}}}|

Revision as of 05:08, 7 July 2022

Infobox