Difference between revisions of "Template:Infobox"

From FEX-Emu Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><!--
+
<includeonly>
 
+
| class="{{#ifeq:{{{collapsible|}}}|yes|collapsible {{{state|autocollapse}}}}} infobox vevent" style="float:{{{align|right}}}; width:{{{width|300px}}}; font-size:90%; text-align:left;" cellspacing="0" cellpadding="3"
Restore the "three special pagename characters".
 
 
 
{{PAGENAME}} always return the page name with occurrences of the characters ", & and ' replaced with &#34;, &#38; and &#39;, respectively. While this normally doesn't cause any harm, it doesn't play nice with the search links generated by this template (especially for Redmine), so {{PAGENAME}} goes through a series of nested RegExp queries to undo those replacements before actually being processed and stored on {{#var:tl_infobox_autotitle}}.
 
 
 
-->{{#vardefine:tl_infobox_searchfix|{{#regex:{{#regex:{{#regex:{{#var:tl_lowercase_title|{{PAGENAME}}}}|/&#34;/|"}}|/&#38;/|&}}|/&#39;/|'}}}}<!--
 
 
 
Strip console from title
 
 
 
-->{{#vardefine:tl_infobox_autotitle|{{#regex:{{#var:tl_infobox_searchfix}}|/\((Arcade{{!}}C64{{!}}Genesis{{!}}MSX{{!}}NES{{!}}SNES{{!}}SMS{{!}}TurboGrafx-16{{!}}Wii{{!}}GC{{!}}WiiWare{{!}}Triforce{{!}}Metroid Prime\: Trilogy)\)/|}}}}<!--
 
 
 
Store GameIDs in a variable so we can check that GameIDs exist for the page
 
 
 
-->{{#vardefine:tl_infobox_ids|{{#dpl:
 
|mode=inline
 
|inlinetext=<nowiki>, </nowiki>
 
|linksto={{FULLPAGENAME}}
 
|redirects=only
 
|titlematch=______
 
|notcategory=Not GameID
 
}}}}<!--
 
 
 
Get GameIDs again, this time in a format usable for searching the issue tracker
 
 
 
-->{{#vardefine:tl_infobox_searchids|{{#dpl:
 
|mode=userformat
 
|format=,%TITLE%,+,
 
|linksto={{FULLPAGENAME}}
 
|redirects=only
 
|titlematch=______
 
|notcategory=Not GameID
 
}}}}<!--
 
 
 
Wikitable
 
 
 
-->{| class="{{#ifeq:{{{collapsible|}}}|yes|collapsible {{{state|autocollapse}}}}} infobox vevent" style="float:{{{align|right}}}; width:{{{width|300px}}}; font-size:90%; text-align:left;" cellspacing="0" cellpadding="3"
 
 
|-
 
|-
 
! colspan=2 style="font-size:110%; text-align:center;" class="summary" | ''{{#tag:nowiki|{{#var:tl_infobox_autotitle|{{PAGENAME}}}}}}''<!-- nowiki tag is needed here for Chindōchō!! Pole no Daibōken -->
 
! colspan=2 style="font-size:110%; text-align:center;" class="summary" | ''{{#tag:nowiki|{{#var:tl_infobox_autotitle|{{PAGENAME}}}}}}''<!-- nowiki tag is needed here for Chindōchō!! Pole no Daibōken -->

Revision as of 04:23, 10 October 2020

[create] Template documentation