Template:Infobox VG: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
(before, the regex fixes for search links in tl_infobox_autotitle weren't being applied to pages which had lowercase titles (e.g. de Blob). this should fix the issue.)
Line 5: Line 5:
{{PAGENAME}} always return the page name with occurrences of the characters ", & and ' replaced with ", & and ', 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}}.
{{PAGENAME}} always return the page name with occurrences of the characters ", & and ' replaced with ", & and ', 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_autotitle|{{#regex:{{#var:tl_lowercase_title|{{#regex:{{#regex:{{#regex:{{PAGENAME}}|/&#34;/|"}}|/&#38;/|&}}|/&#39;/|'}}}}|/\((Arcade{{!}}C64{{!}}Genesis{{!}}MSX{{!}}NES{{!}}SNES{{!}}SMS{{!}}TurboGrafx-16{{!}}Wii{{!}}GC{{!}}WiiWare{{!}}Triforce{{!}}Metroid Prime\: Trilogy)\)/|}}}}<!--
-->{{#vardefine:tl_infobox_autotitle|{{#regex:{{#regex:{{#regex:{{#regex:{{#var:tl_lowercase_title|{{PAGENAME}}}}|/&#34;/|"}}|/&#38;/|&}}|/&#39;/|'}}|/\((Arcade{{!}}C64{{!}}Genesis{{!}}MSX{{!}}NES{{!}}SNES{{!}}SMS{{!}}TurboGrafx-16{{!}}Wii{{!}}GC{{!}}WiiWare{{!}}Triforce{{!}}Metroid Prime\: Trilogy)\)/|}}}}<!--


Wikitable
Wikitable