Template:Infobox VG/sandbox: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 25: Line 25:
<!--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-->{{#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}}}}


}}}}
}}


|<!--Series Category Links (up to 3)-->{{#if:{{{series|}}}|{{!}} '''Series''' {{!!}}<!--1st-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]*).*/rs|[[:Category:$1 series|$1]]|1}}<!--2nd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/[^,]*,([^,]*)(,.*)?/rs|, [[:Category:$1 series|$1]]|1}}<!--3rd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|, [[:Category:$1 series|$1]]|1}}}}
|<!--Series Category Links (up to 3)-->{{#if:{{{series|}}}|{{!}} '''Series''' {{!!}}<!--1st-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/([^,]*).*/rs|[[:Category:$1 series|$1]]|1}}<!--2nd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/[^,]*,([^,]*)(,.*)?/rs|, [[:Category:$1 series|$1]]|1}}<!--3rd-->{{#regex: {{#regex: {{{series|}}}|/''/|}}|/(?:[^,]*,){2}([^,]*)(,.*)?/rs|, [[:Category:$1 series|$1]]|1}}}}

Navigation menu