Template:Ns has subpages
Jump to navigation
Jump to search
yes
![]() | この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:Ns has subpagesを素材として二次利用しています。 Lua error in Module:Itemnumber at line 91: attempt to concatenate local 'qid' (a nil value). |
![]() | このテンプレートはシステムメッセージで使われています。 全ての変更はウィキペディアのユーザーインターフェースに即座に反映されます。余計な混乱を避けるために、どんな変更でも最初はテンプレートのサンドボックスやテストケース、またはご自分の利用者サブページでお試しください。その後、変更を1回の編集でこのテンプレートに反映できます。どんな変更でも実施する前にノートページで議論してください。 |
![]() | LuaModuleを使用しています: |
Detects whether the current or the given namespace has subpages enabled. Returns "yes" if it does, and an empty string otherwise.
This template can be substituted.
Usage
{{ns has subpages}}
→ yes{{ns has subpages|Template}}
→ yes{{ns has subpages|Category}}
→{{ns has subpages|}}
(main space) →{{ns has subpages|{{ns:0}}}}
(main space) →{{ns has subpages|:}}
(main space) →{{ns has subpages|{{ns:Talk}}}}
→ yes{{ns has subpages|Category talk}}
→ yes{{ns has subpages|File:Foo}}
→{{ns has subpages|Foo}}
→{{ns has subpages|:Template}}
→ yes
See also
{{namespace detect}}