匿名利用者
「テンプレート:Namespace detect」の版間の差分
編集の要約なし
*>Foomin10 編集の要約なし |
*>Foomin10 編集の要約なし |
||
1行目: | 1行目: | ||
{{#switch:<!-- | {{#switch:<!-- | ||
--><!-- If no or empty "demospace" parameter then detect namespace | |||
-->{{#if:{{{demospace|}}} <!-- | |||
-->| {{{demospace}}}<!-- | |||
-->| {{#switch:{{NAMESPACE}}<!-- | |||
-->|{{ns:0}} = A<!-- 標準名前空間 | |||
-->|{{TALKSPACE}} = T<!-- 会話用名前空間 | |||
-->|{{ns:2}} = U<!-- 利用者名前空間 | |||
-->|{{ns:4}} = WP<!-- Wikipedia名前空間 | |||
-->|{{ns:6}} = F<!-- ファイル名前空間 | |||
-->|{{ns:8}} = MW<!-- MediaWiki名前空間 | |||
-->|{{ns:10}} = T<!-- Template名前空間 | |||
-->|{{ns:12}} = H<!-- Help名前空間 | |||
-->|{{ns:14}} = C<!-- Category名前空間 | |||
-->|{{ns:100}} = P<!-- Portal名前空間 | |||
-->|{{ns:102}} = PJ<!-- プロジェクト名前空間 | |||
-->| #default = {{NAMESPACE}}<!-- 上記以外の名前空間 | |||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-- Only one of the lines below will be executed -- | -- Only one of the lines below will be executed -- | ||
-- Respecting empty parameters on purpose -- | -- Respecting empty parameters on purpose -- | ||
-->| | -->| A = {{{A| {{{main| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| T = {{{T| {{{talk| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| U = {{{U| {{{user| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| WP = {{{WP| {{{wikipedia| {{{other|}}} }}} }}}<!-- | ||
-->| file<!-- | -->| F = {{{F| {{{file| {{{image| {{{other|}}} }}} }}} }}}<!-- | ||
-->| | -->| MW = {{{MW| {{{mediawiki| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| T = {{{T| {{{template| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| H = {{{H| {{{help| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| C = {{{C| {{{category| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| P = {{{P| {{{portal| {{{other|}}} }}} }}}<!-- | ||
-->| | -->| PJ = {{{PJ| {{{project| {{{other|}}} }}} }}}<!-- | ||
-->| other<-- | -->| other<!-- | ||
-->| #default = {{{other|}}}<!-- "demospace=other" or a new namespace | -->| #default = {{{other|}}}<!-- "demospace=other" or a new namespace | ||
-->}}<noinclude> | -->}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |