跳转到内容

Template:Namespace detect:修订间差异

轻之舟百科,让知识轻装启航
删除的内容 添加的内容
enwiki>JJMC89
clean subst
 
zhwiki>1F616EMO
 
第1行: 第1行:
{{#switch:
{{SAFESUBST:<noinclude />#invoke:Namespace detect|main}}<noinclude>
{{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 = {{#switch:{{str mid|{{FULLPAGENAME}}||{{#expr:abs({{str find|{{FULLPAGENAME}}|:}})-1}}}}<!--
---->| MOS = {{{pseudo| {{{mos| {{{other|}}} }}} }}}<!--
---->| LTA = {{{pseudo| {{{lta| {{{other|}}} }}} }}}<!--
---->| NT = {{{pseudo| {{{nt| {{{other|}}} }}} }}}<!--
---->| NC = {{{pseudo| {{{nc| {{{other|}}} }}} }}}<!--
---->| RSP = {{{pseudo| {{{rsp| {{{other|}}} }}} }}}<!--
---->| #default = {{{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|}}} }}}
| wikiproject = {{{wikiproject| {{{other|}}} }}}
| other
| #default = {{{other|}}}
}}<!--End switch--><noinclude>
{{documentation}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
<!-- Add categories to the /doc subpage, and interwikis to Wikidata. -->
</noinclude>
</noinclude>

2026年7月21日 (二) 14:33的最新版本