Template:Infobox VG/sandbox: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(Reduce to problematic code)
No edit summary
Line 1: Line 1:
<includeonly><!--Publisher categories: regional ones are outputting as text rather than as categories for some reason, seems to have something to do with the replacement used.-->{{#if:{{{publisher|}}}|{{#ifeq:{{#regex:{{{publisher|}}}|/>/r|}}||<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/r|[[Category:Published by $1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:Published by $1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:Published by]]|1}}|<!--NA--><!--Hrm, seems to be some problem with the $1 replace here, including it causes the categories to output as text-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}<!--EU-->{{#regex:{{{publisher|}}}|/.*?EU.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}<!--JP-->{{#regex:{{{publisher|}}}|/.*?JP.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}<!--AUS-->{{#regex:{{{publisher|}}}|/.*?AUS.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}}}}}</includeonly><noinclude>
<includeonly>
{{documentation}}
 
</noinclude>
{{#if:{{{publisher|}}}|
 
{{#ifeq:{{#regex:{{{publisher|}}}|/>/r|}}|
 
|<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/r|[[Category:Published by $1]]|1}}
<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/r|[[Category:Published by $1]]|1}}
<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/r|[[Category:Published by]]|1}}
 
|
@{{#regex:{{{publisher|}}}|/.*NA(.*)/r|$1|1}}@
<!--NA-->{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}
<!--EU-->{{#regex:{{{publisher|}}}|/.*?EU.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}
<!--JP-->{{#regex:{{{publisher|}}}|/.*?JP.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}
<!--AUS-->{{#regex:{{{publisher|}}}|/.*?AUS.*?>.*?>\s*(.*?)<.*/r|[[Category:Published by $1]]|1}}}}
 
}}
 
 
</includeonly>

Revision as of 21:27, 29 August 2013