Template:Main other/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:Main other. It contains usage information, categories and other content that is not part of the original template page. |
このテンプレートは、他のテンプレート内で使用し、記事名前空間とそれ以外の名前空間を判別して表示内容を変えるために使用します。
使い方
通常、引数を2個取ります。
{{main other | 記事の名前空間用のテキスト | それ以外の名前空間用のテキスト }}
もしテンプレートが記事ページで使用されていれば 記事の名前空間用のテキスト を、
それ以外のページで使用されていれば それ以外の名前空間用のテキスト を表示します。
典型的な使い方としては、記事のページのみカテゴリを追加したい場合があります。
{{main other | [[Category:カテゴリ]] }}
関連項目