• Home
  • Random
  • Log in
  • Settings
  • About Azupedia
  • Disclaimers
Azupedia

Template:Main other

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{ns0}}

このテンプレートは、他のテンプレート内で使用し、記事名前空間とそれ以外の名前空間を判別して表示内容を変えるために使用します。

Contents

  • 1 使い方
  • 2 関連項目

使い方

通常、引数を2個取ります。

{{main other | 記事の名前空間用のテキスト | それ以外の名前空間用のテキスト }}

もしテンプレートが記事ページで使用されていれば 記事の名前空間用のテキスト を、

それ以外のページで使用されていれば それ以外の名前空間用のテキスト を表示します。

典型的な使い方としては、記事のページのみカテゴリを追加したい場合があります。

{{main other | [[Category:カテゴリ]] }}

関連項目

Template:名前空間判定テンプレート一覧

{{デフォルトソート:Template:TEMPLATENAME}}

The above documentation is transcluded from Template:Main other/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://wiki.tiffa.net/w/index.php?title=Template:Main_other&oldid=78"
Last edited on 22 August 2020, at 20:20

Languages

      This page is not available in other languages.

      Azupedia
      • This page was last edited on 22 August 2020, at 20:20.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Azupedia
      • Disclaimers
      • Desktop