Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
<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:{{{steamurl|gogurl}}}|
+
{{#if:{{{steamappid|}}}{{{gogurl|}}}|
    <!--True Half Of Developer title rip -->
 
 
     <!-- First element -->
 
     <!-- First element -->
 
     {{!}}'''Storefronts'''
 
     {{!}}'''Storefronts'''
 
{{!!}}
 
{{!!}}
{{#if:{{{steamurl}}}|
+
{{#if:{{{steamappid|}}}|
 
{{#regex:{{{steamurl}}}|/([^,]+)(,? ?)/rs|
 
{{#regex:{{{steamurl}}}|/([^,]+)(,? ?)/rs|
[[Image:Steam_logo.svg|25px|link=$1]]}}[[Category:On Steam]]
+
[[Image:Steam_logo.svg|24px|link=https://store.steampowered.com/app/{{{steamappid}}}]]}}[[Category:On Steam]]
 
}}
 
}}
{{#if:{{{gogurl}}}|
+
{{#if:{{{gogurl|}}}|
 
{{#regex:{{{gogurl}}}|/([^,]+)(,? ?)/rs|
 
{{#regex:{{{gogurl}}}|/([^,]+)(,? ?)/rs|
[[Image:Gog_logo.svg|25px|link=$1]]}}[[Category:On GOG]]
+
[[Image:Gog_logo.svg|24px|link=$1]]}}[[Category:On GOG]]
 
}}
 
}}
{{!}}</tr>
+
{{!}}</tr>|
 
}}
 
}}
 
+
{{#if:{{{os|}}}|{{!}}'''Operating Systems'''{{!!}}{{#ifeq:{{#regex:{{{os|}}}|/>/rs|}}||
|{{#if:{{{developer|}}}
 
    |<!--True Half Of Developer title rip -->
 
    <!-- First element -->
 
    {{!}}'''[[:Category:Developers|Developer(s)]]'''
 
    <!-- Silly double-bang inserts a new table element instead of escaping the if -->
 
    {{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}
 
    ||<!-- Next table data element -->
 
<!--List-->
 
<!-- Regex strip to build category of developers? -->
 
{{#regex:{{{developer|}}}|/([^,]+)(,? ?)/rs|
 
<!-- For each developer found -->
 
[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]$2}}
 
|
 
<!-- ifeq:developer false half -->
 
}}
 
</tr>
 
|<!-- False half of if developer -->
 
}}
 
 
 
|{{#if:{{{os|}}}|{{!}}'''Operating Systems'''{{!!}}{{#ifeq:{{#regex:{{{os|}}}|/>/rs|}}||
 
 
<!--List-->{{#regex:{{{os|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Games|$1]][[Category:$1 Games]]$2}}</tr>|
 
<!--List-->{{#regex:{{{os|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Games|$1]][[Category:$1 Games]]$2}}</tr>|
 
}}}}
 
}}}}
|{{#if:{{{engine|}}}|{{!}}'''Engine'''{{!!}}{{#ifeq:{{#regex:{{{engine|}}}|/>/rs|}}||
+
{{#if:{{{engine|}}}|{{!}}'''Engine'''{{!!}}{{#ifeq:{{#regex:{{{engine|}}}|/>/rs|}}||
 
<!--List-->{{#regex:{{{engine|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Engine|$1]][[Category:$1 Engine]]$2}}</tr>|
 
<!--List-->{{#regex:{{{engine|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Engine|$1]][[Category:$1 Engine]]$2}}</tr>|
 
}}}}
 
}}}}
|{{#if:{{{arch|}}}|{{!}}'''Architecture'''{{!!}}{{#ifeq:{{#regex:{{{arch|}}}|/>/rs|}}||
+
{{#if:{{{arch|}}}|{{!}}'''Architecture'''{{!!}}{{#ifeq:{{#regex:{{{arch|}}}|/>/rs|}}||
 
<!--List-->{{#regex:{{{arch|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1|$1]][[Category:$1]]$2}}</tr>|
 
<!--List-->{{#regex:{{{arch|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1|$1]][[Category:$1]]$2}}</tr>|
 
}}}}
 
}}}}
|{{#if:{{{cpufeats|}}}|{{!}}'''CPU Features Used'''{{!!}}{{#ifeq:{{#regex:{{{cpufeats|}}}|/>/rs|}}||
+
{{#if:{{{cpufeats|}}}|{{!}}'''CPU Features Used'''{{!!}}{{#ifeq:{{#regex:{{{cpufeats|}}}|/>/rs|}}||
 
<!--List-->{{#regex:{{{cpufeats|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 CPU Feature|$1]][[Category:$1 CPU Feature]]$2}}</tr>|
 
<!--List-->{{#regex:{{{cpufeats|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 CPU Feature|$1]][[Category:$1 CPU Feature]]$2}}</tr>|
 
}}}}
 
}}}}
|{{#if:{{{compat|}}}|{{!}}'''Compatibility'''{{!!}}{{#ifeq:{{#regex:{{{compat|}}}|/>/rs|}}||
+
{{#if:{{{compat|}}}|{{!}}'''Compatibility'''{{!!}}{{#ifeq:{{#regex:{{{compat|}}}|/>/rs|}}||
 
<!--List-->{{#regex:{{{compat|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Compatibility|$1]][[Category:$1 Compatibility]]$2}}</tr>|
 
<!--List-->{{#regex:{{{compat|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Compatibility|$1]][[Category:$1 Compatibility]]$2}}</tr>|
 
}}}}
 
}}}}
 
+
{{#if:{{{apptype|}}}|{{!}}'''Type'''{{!!}}{{#ifeq:{{#regex:{{{apptype|}}}|/>/rs|}}||
 +
<!--List-->{{#regex:{{{apptype|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Type Application|$1]][[Category:$1 Type Application]]$2}}</tr>|
 +
}}}}
 +
{{#if:{{{renderapi|}}}|{{!}}'''Render API'''{{!!}}{{#ifeq:{{#regex:{{{renderapi|}}}|/>/rs|}}||
 +
<!--List-->{{#regex:{{{renderapi|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Render API|$1]][[Category:$1 Render API]]$2}}</tr>|
 +
}}}}
 +
{{#if:{{{workingthunks|}}}|{{!}}'''Supported Thunks'''{{!!}}{{#ifeq:{{#regex:{{{workingthunks|}}}|/>/rs|}}||
 +
<!--List-->{{#regex:{{{workingthunks|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Thunk Capable|$1]][[Category:$1 Thunk Capable]]$2}}</tr>|
 +
}}}}
 +
{{#if:{{{nonworkingthunks|}}}|{{!}}'''Unsupported Thunks'''{{!!}}{{#ifeq:{{#regex:{{{nonworkingthunks|}}}|/>/rs|}}||
 +
<!--List-->{{#regex:{{{nonworkingthunks|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 Thunk Incapable|$1]][[Category:$1 Thunk Incapable]]$2}}</tr>|
 +
}}}}
 +
{{#if:{{{drm|}}}|{{!}}'''DRM'''{{!!}}{{#ifeq:{{#regex:{{{drm|}}}|/>/rs|}}||
 +
<!--List-->{{#regex:{{{drm|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 DRM|$1]][[Category:$1 DRM]]$2}}</tr>|
 +
}}}}
 
|}
 
|}
 
</div>
 
</div>

Latest revision as of 01:21, 24 November 2022

Infobox