182
个编辑
更改
创建页面,内容为“{{#switch: {{lc: <!--Lower case the result--> <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} |…”
{{#switch:
{{lc: <!--Lower case the result-->
<!--If no or empty "demospace" parameter then detect namespace-->
{{#if:{{{demospace|}}}
| {{{demospace}}}
| {{#ifeq:{{NAMESPACE}}|{{ns:0}}
| main
| {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
| talk
| {{NAMESPACE}}
}}
}}
}}
}}
| main = {{{main| {{{other|}}} }}}
| talk = {{{talk| {{{other|}}} }}}
| user = {{{user| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| image = {{{image| {{{other|}}} }}}
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| template = {{{template| {{{other|}}} }}}
| help = {{{help| {{{other|}}} }}}
| category = {{{category| {{{other|}}} }}}
| portal = {{{portal| {{{other|}}} }}}
| other
| #default = {{{other|}}}
}}<!--End switch-->
{{lc: <!--Lower case the result-->
<!--If no or empty "demospace" parameter then detect namespace-->
{{#if:{{{demospace|}}}
| {{{demospace}}}
| {{#ifeq:{{NAMESPACE}}|{{ns:0}}
| main
| {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
| talk
| {{NAMESPACE}}
}}
}}
}}
}}
| main = {{{main| {{{other|}}} }}}
| talk = {{{talk| {{{other|}}} }}}
| user = {{{user| {{{other|}}} }}}
| wikipedia = {{{wikipedia| {{{other|}}} }}}
| image = {{{image| {{{other|}}} }}}
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| template = {{{template| {{{other|}}} }}}
| help = {{{help| {{{other|}}} }}}
| category = {{{category| {{{other|}}} }}}
| portal = {{{portal| {{{other|}}} }}}
| other
| #default = {{{other|}}}
}}<!--End switch-->