切換菜單
切換個人選單
尚未登入
如果您进行任何编辑,您的IP地址会公开展示。

「Template:Namespace detect」:修訂間差異

模板頁面
新增的內容 刪去的內容
imported>Alistair3149
(1 revision imported)
imported>Wr
(导入1个版本)
 
(未顯示由 2 位使用者於中間所作的 3 次修訂)
第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>

於 2022年10月29日 (六) 10:01 的最新修訂

Template 說明文檔[查看][編輯][歷史][刷新]
該說明文檔嵌入自 Template:Namespace detect/doc,可通過討論頁面進行更改請求。
Cookies 幫助我們給予服務內容。依您有使用我們的服務,代表您同意我們使用 cookies。