Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
{|
 
{|
  
 +
|{{#if:{{{steamurl|gogurl}}}|
 +
    <!--True Half Of Developer title rip -->
 +
    <!-- First element -->
 +
    {{!}}'''Storefronts'''
 +
}}
 +
 +
|{{#ifeq:{{#regex:{{{steamurl}}}|/>/rs|}}
 +
||
 +
{{#regex:{{{steamurl}}}|/([^,]+)(,? ?)/rs|
 +
[$1 Steam]}}|
 +
}}
 +
 +
|{{#ifeq:{{#regex:{{{gogurl}}}|/>/rs|}}
 +
    ||
 +
{{#regex:{{{gogurl}}}|/([^,]+)(,? ?)/rs|
 +
[$1 GOG]}}|
 +
}}
 +
 +
|{{#if:{{{steamurl|gogurl}}}|
 +
  </tr>
 +
}}
 
|{{#if:{{{developer|}}}
 
|{{#if:{{{developer|}}}
 
     |<!--True Half Of Developer title rip -->
 
     |<!--True Half Of Developer title rip -->
Line 23: Line 44:
 
}}
 
}}
  
|{{#if:{{{storefront|}}}|{{!}}'''Storefronts'''{{!!}}{{#ifeq:{{#regex:{{{storefront|}}}|/>/rs|}}||
 
<!--List-->{{#regex:{{{storefront|}}}|/([^,]+)(,? ?)/rs|[[:Category:On $1|$1]][[Category:On $1]]$2}}</tr>|
 
}}}}
 
 
|{{#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 22:59, 16 October 2020

Infobox
Storefronts [{{{steamurl}}} Steam] [{{{gogurl}}} GOG]