Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
Line 5: Line 5:
  
 
|{{#if:{{{steamurl|gogurl}}}|
 
|{{#if:{{{steamurl|gogurl}}}|
    <!--True Half Of Developer title rip -->
 
 
     <!-- First element -->
 
     <!-- First element -->
 
     {{!}}'''Storefronts'''
 
     {{!}}'''Storefronts'''
Line 19: Line 18:
 
{{!}}</tr>
 
{{!}}</tr>
 
}}
 
}}
 
|{{#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|}}||
 
|{{#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>|

Revision as of 05:23, 19 October 2020

Infobox
Storefronts

link={{{steamurl}}} link={{{gogurl}}}