Template:Infobox VG/sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:


|{{#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}}|{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Published by $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}}|
{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Published by $1|$1]]}}}}
}}
}}


|<!--Series Category Links-->
|{{#if:{{{publisher|}}}|{{!}}'''Publisher(s)'''{{!!}}{{#ifeq:{{#regex:{{{publisher|}}}|/>/rs|}}||
{{#if:{{{series|}}}|{{!}} '''*Series''' {{!!}}{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 series|$1]]$2}}}}
<!--1st-->{{#regex:{{{publisher|}}}|/([^,]*).*/rs|[[:Category:Published by $1|$1]]|1}}|
{{#regex:{{{publisher|}}}|/({{#regex:{{{publisher|}}}|/.*?(?:NA{{!}}JP{{!}}EU{{!}}AUS{{!}}KO{{!}}RUS).*?>.*?>\s*([^\[]*).*?>/rs|$1{{!}}}}#NOMATCH#)/rs|[[:Category:Published by $1|$1]]}}}}
}}
 
|<!--Series Category Links-->{{#if:{{{series|}}}|{{!}} '''*Series''' {{!!}}{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]+)(,? ?)/rs|[[:Category:$1 series|$1]]$2}}}}


|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''Platform(s)''' {{!!}} {{{platform|{{{platforms|}}}}}}}}
|{{#if:{{{platform|{{{platforms|}}}}}}| {{!}} '''Platform(s)''' {{!!}} {{{platform|{{{platforms|}}}}}}}}