Template:Infobox VG/sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 16: Line 16:


|{{#if:{{{publisher|}}}|{{!}}'''Publisher(s)'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
|{{#if:{{{publisher|}}}|{{!}}'''Publisher(s)'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/rs|[[:Category:Published by $1|$1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/rs|,[[:Category:Published by $1|$1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|,[[:Category:Published by $1|$1]]|1}}|<!--Regional publisher link handling is complicated, will handle later--><!--NA-->{{#regex:{{{publisher|}}}|/{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}/r|[[:Category:Published by {{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}]]|1}}
<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/rs|[[:Category:Published by $1|$1]]|1}}<!--2nd-->{{#regex:{{{publisher|}}}|/[^,]*,([^,]*)(,.*)?/rs|,[[:Category:Published by $1|$1]]|1}}<!--3rd-->{{#regex:{{{publisher|}}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|,[[:Category:Published by $1|$1]]|1}}|<!--Regional publisher link handling is complicated, will handle later--><!--NA-->{{#regex:{{{publisher|}}}|/{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}/r|[[:Category:Published by {{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}|{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}]]|1}}
}}}}
}}}}