Teamplaid:Ns has subpages
Coltas
yes
This template is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This teamplaid is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this teamplaid's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this teamplaid. Please discuss any changes on the talk page before implementing them. |
Uses Lua: |
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.
Ùsaid - Usage
[deasaich]- {{Ns has subpages}} → yes
- {{Ns has subpages|:}} (main space) →
- {{Ns has subpages|{{ns:0}}}} (main space) →
- {{Ns has subpages|}} (main space) →
- {{Ns has subpages|{{ns:Talk}}}} → yes
Faidhle - File
[deasaich]- {{Ns has subpages|{{ns:Faidhle}}}} →
- {{Ns has subpages|{{ns:File}}}} →
- {{Ns has subpages|{{ns:Faidhle}}:Foo}} →
- {{Ns has subpages|{{ns:File}}:Foo}} →
- {{Ns has subpages|Faidhle}} →
- {{Ns has subpages|File}} →
- {{Ns has subpages|Faidhle:Foo}} →
- {{Ns has subpages|File:Foo}} →
Deasbaireachd na roinn-seòrsa - Category talk
[deasaich]- {{Ns has subpages|{{ns:Category talk}}}} → yes
- {{Ns has subpages|{{ns:Deasbaireachd na roinn-seòrsa}}}} → yes
Roinn-seòrsa - Category
[deasaich]- {{Ns has subpages|:Category}} →
- {{Ns has subpages|:Roinn-seòrsa}} →
- {{Ns has subpages|Category}} →
- {{Ns has subpages|Roinn-seòrsa}} →
- {{Ns has subpages|{{ns:Category}}}} →
- {{Ns has subpages|{{ns:Roinn-seòrsa}}}} →
Teamplaid - Template
[deasaich]- {{Ns has subpages|:Teamplaid}} → yes
- {{Ns has subpages|Template}} → yes
- {{Ns has subpages|Teamplaid}} → yes
- {{Ns has subpages|Teamplaid}} → yes
Faic cuideachd - Also see
- {{Namespace detect}}
- {{NAMESPACEID}}
The above documentation is transcluded from Teamplaid:Ns has subpages/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |