Template:Infobox VG/sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:
<!--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}}|
<!--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}}|
<!--Hrm, these need to be nested to not output publisher multiple times, but the if complicates that. Also these comments are likely weird since they seem to output regardless if region is present-->
<!--Hrm, these need to be nested to not output publisher multiple times, but the if complicates that. Also these comments are likely weird since they seem to output regardless if region is present-->
<!--NA-->{{#ifeq:{{#regex:{{{publisher|}}}|/.*NA.*/rs|NA}}|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}}}}


<!--NA-->{{#regex:{{{publisher|}}}|/{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}/r|{{#ifeq:{{#regex:{{{publisher|}}}|/.*NA.*/rs|NA}}|NA|[[:Category:Published by {{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}|{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}]]|1}}}}
<!--NA-->{{#regex:{{{publisher|}}}|/{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}/r|{{#ifeq:{{#regex:{{{publisher|}}}|/.*NA.*/rs|NA}}|NA|[[:Category:Published by {{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}|{{#regex:{{{publisher|}}}|/.*?NA.*?>.*?>\s*([^\[]*).*/r|$1|1}}]]|1}}}}