コンテンツにスキップ

「テンプレート:Namespace detect」の版間の差分

編集の要約なし
*>Foomin10
編集の要約なし
*>Foomin10
編集の要約なし
1行目: 1行目:
{{#switch:<!--
{{#switch:<!--
-->{{lc:<!-- 小文字(lower case)にする
--><!-- If no or empty "demospace" parameter then detect namespace
  --><!-- If no or empty "demospace" parameter then detect namespace
-->{{#if:{{{demospace|}}} <!--
  -->{{#if:{{{demospace|}}} <!--
-->| {{{demospace}}}<!--
  -->| {{{demospace}}}<!--
-->| {{#switch:{{NAMESPACE}}<!--
  -->| {{#switch:{{NAMESPACE}}<!--
  -->|{{ns:0}} = A<!-- 標準名前空間
    -->|{{ns:0}} = main<!-- 標準名前空間
  -->|{{TALKSPACE}} = T<!-- 会話用名前空間
      -->|{{TALKSPACE}} = talk<!-- 会話用名前空間
  -->|{{ns:2}} = U<!-- 利用者名前空間
      -->|{{ns:2}} = user<!-- 利用者名前空間
  -->|{{ns:4}} = WP<!-- Wikipedia名前空間
      -->|{{ns:4}} = wikipedia<!-- Wikipedia名前空間
  -->|{{ns:6}} = F<!-- ファイル名前空間
      -->|{{ns:6}} = file<!-- ファイル名前空間
  -->|{{ns:8}} = MW<!-- MediaWiki名前空間
      -->|{{ns:8}} = mediawiki<!-- MediaWiki名前空間
  -->|{{ns:10}} = T<!-- Template名前空間
      -->|{{ns:10}} = template<!-- Template名前空間
  -->|{{ns:12}} = H<!-- Help名前空間
      -->|{{ns:12}} = help<!-- Help名前空間
  -->|{{ns:14}} = C<!-- Category名前空間
      -->|{{ns:14}} = category<!-- Category名前空間
  -->|{{ns:100}} = P<!-- Portal名前空間
      -->|{{ns:100}} = portal<!-- Portal名前空間
  -->|{{ns:102}} = PJ<!-- プロジェクト名前空間
      -->|{{ns:102}} = project<!-- プロジェクト名前空間
  -->| #default = {{NAMESPACE}}<!-- 上記以外の名前空間
      -->| #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 --
-->| main      = {{{main| {{{other|}}} }}}<!--
-->| = {{{A|  {{{main| {{{other|}}} }}} }}}<!--
-->| talk      = {{{talk| {{{other|}}} }}}<!--
-->| = {{{T|  {{{talk| {{{other|}}} }}} }}}<!--
-->| user      = {{{user| {{{other|}}} }}}<!--
-->| = {{{U|  {{{user| {{{other|}}} }}} }}}<!--
-->| wikipedia = {{{wikipedia| {{{other|}}} }}}<!--
-->| WP = {{{WP| {{{wikipedia| {{{other|}}} }}} }}}<!--
-->| file<!--
-->| F  = {{{F|  {{{file| {{{image| {{{other|}}} }}} }}} }}}<!--
-->| image    = {{{file| {{{image| {{{other|}}} }}} }}}<!--
-->| MW = {{{MW| {{{mediawiki| {{{other|}}} }}} }}}<!--
-->| mediawiki = {{{mediawiki| {{{other|}}} }}}<!--
-->| = {{{T|  {{{template| {{{other|}}} }}} }}}<!--
-->| template = {{{template| {{{other|}}} }}}<!--
-->| H = {{{H|  {{{help| {{{other|}}} }}} }}}<!--
-->| help      = {{{help| {{{other|}}} }}}<!--
-->| = {{{C|  {{{category| {{{other|}}} }}} }}}<!--
-->| category = {{{category| {{{other|}}} }}}<!--
-->| P = {{{P|  {{{portal| {{{other|}}} }}} }}}<!--
-->| portal    = {{{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}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>
匿名利用者
スポンサーリンク