• 首页
  • 随机
  • 登录
  • 设置
  • 关于悠日計画 維基百科 ~ Yuuni Wiki
  • 免责声明
悠日計画 維基百科 ~ Yuuni Wiki

模板:Subpage other

  • 语言
  • 监视
  • 查看源代码
文件:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 253,000 pages, or roughly 16218% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

Usage

This template checks whether the current page is a subpage or not. A subpage is a page that has a slash:

[[Template:Parentpage/Subpage]]

Exception: in article space (mainspace) the slash is part of the title, and there are no subpages. Example, AC/DC is a parent page not a subpage.

Usage example: both Template:Infobox element isotopes and Template:Infobox element isotopes/infotable use documentation page Template:Infobox element isotopes/doc. We only want to categorise the parent page. So in the /doc page we add:

{{Subpage other|<!-- do not categorise -->|[[Category:Chemical element infobox]]}}
Note
WP:Subpage uses an other definition than magic word {{SUBPAGENAME}}. This template uses the former definition (pagename has an after-slash part).

See also

  • {{Sandbox other}} — Distinguishes between the /sandbox subpages and the root template page and other subpages.
  • {{Testcases other}} — Distinguishes between the /testcases subpages and the root template page and other subpages.
  • {{Template other}} — Distinguishes between pages in the template namespace and other namespaces.
  • {{When on basepage}} — Distinguishes between the root template page and subpages, without special consideration in the mainspace.
  • {{Subpage other}} — Distinguisheds between the root page and subpages (any subpage), classifying pagenames in the mainspace with a slash as being the root page.
The above documentation is transcluded from 模板:Subpage 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.
检索自“https://wiki.czzzz.work/index.php?title=模板:Subpage_other&oldid=689”
最后编辑于2022年9月18日 (星期日) 21:24

语言

    此页面在其他语言不可用。

    悠日計画 維基百科 ~ Yuuni Wiki
    • 此页面最后编辑于2022年9月18日 (星期日) 21:24。
    • 除非另有声明,本网站内容采用知识共享署名-非商业性使用-相同方式共享授权。
    • 隐私政策
    • 关于悠日計画 維基百科 ~ Yuuni Wiki
    • 免责声明
    • 桌面版