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>}}
{|
+
<table>
 
|{{#if:{{{developer|}}}|{{!}}'''[[:Category:Developers|Developer(s)]]'''{{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||
 
|{{#if:{{{developer|}}}|{{!}}'''[[:Category:Developers|Developer(s)]]'''{{!!}}{{#ifeq:{{#regex:{{{developer|}}}|/>/rs|}}||
 
<!--List-->{{#regex:{{{developer|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]$2}}|
 
<!--List-->{{#regex:{{{developer|}}}|/([^,]+)(,? ?)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]$2}}|
<!--Regional List-->{{#regex:{{{developer|}}}|/({{#regex:{{{developer|}}}|/.*?(?:JP{{!}}NA{{!}}CA{{!}}EU{{!}}FR{{!}}DE{{!}}IT{{!}}NL{{!}}SC{{!}}SP{{!}}AUS{{!}}RU{{!}}KO{{!}}TW{{!}}SA).*?>.*?>\s*([^\[{{!}}<]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]}}}}
+
#NOMATCH#)/rs|[[:Category:$1 (Developer)|$1]][[Category:$1 (Developer)]]}}}}
 
}}
 
}}
|{{#if:{{{storefront|}}}|<tr>
+
{{#if:{{{storefront|}}}|<tr>
 
     <th>Storefront</th>
 
     <th>Storefront</th>
 
     <td>{{{storefront}}}</td>
 
     <td>{{{storefront}}}</td>
 
</tr>}}
 
</tr>}}
|{{#if:{{{os|}}}|<tr>
+
{{#if:{{{os|}}}|<tr>
 
     <th>Operating System</th>
 
     <th>Operating System</th>
 
     <td>{{{os}}}</td>
 
     <td>{{{os}}}</td>
 
</tr>}}
 
</tr>}}
|{{#if:{{{engine|}}}|<tr>
+
{{#if:{{{engine|}}}|<tr>
 
     <th>Engine</th>
 
     <th>Engine</th>
 
     <td>{{{engine}}}</td>
 
     <td>{{{engine}}}</td>
 
</tr>}}
 
</tr>}}
|{{#if:{{{arch|}}}|<tr>
+
{{#if:{{{arch|}}}|<tr>
 
     <th>Architecture</th>
 
     <th>Architecture</th>
 
     <td>{{{arch}}}</td>
 
     <td>{{{arch}}}</td>
 
</tr>}}
 
</tr>}}
|{{#if:{{{cpufeats|}}}|<tr>
+
{{#if:{{{cpufeats|}}}|<tr>
 
     <th>CPU Features Used</th>
 
     <th>CPU Features Used</th>
 
     <td>{{{cpufeats}}}</td>
 
     <td>{{{cpufeats}}}</td>
 
</tr>}}
 
</tr>}}
|{{#if:{{{compat|}}}|<tr>
+
{{#if:{{{compat|}}}|<tr>
 
     <th>Compatibility</th>
 
     <th>Compatibility</th>
 
     <td>{{{compat}}}</td>
 
     <td>{{{compat}}}</td>
 
</tr>}}
 
</tr>}}
  
|}
+
</table>
 
</div>
 
</div>

Revision as of 06:24, 10 October 2020

Infobox
| }}