打开/关闭菜单
打开/关闭个人菜单
未登录
如果您进行任何编辑,您的IP地址会公开展示。

Template:Namespace detect:修订间差异

模板页面
添加的内容 删除的内容
imported>Alistair3149
(1 revision imported)
zh>Hamish
(回退到由Hamish討論)做出的修訂版本65887169:Per ep)
第1行: 第1行:
{{#switch:
{{SAFESUBST:<noinclude />#invoke:Namespace detect|main}}<noinclude>
{{lc: <!--Lower case the result-->
{{/doc}}
<!--If no or empty "demospace" parameter then detect namespace-->
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
{{#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|}}} }}} }}}<!--
---->| #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}}
<!-- Add categories to the /doc subpage, and interwikis to Wikidata. -->
</noinclude>
</noinclude>

2021年6月1日 (二) 14:06的版本

Template 说明文档[查看][编辑][历史][刷新]
该说明文档嵌入自 Template:Namespace detect/doc,可通过讨论页面进行更改请求。
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。