• 首页
  • 随机
  • 最近更改
  • 特殊页面
  • 社群首页
  • 设置
  • 关于戏曲百科
  • 免责声明
戏曲百科
  • 登录

模板:When in sandbox

  • 监视
  • 查看源代码
    • 链入页面
    • 固定链接
    • 页面信息
(重定向自模板:\sandbox)
模板文档[查看] [编辑] [历史] [清除缓存]

模板:缺乏中文說明

{{When in sandbox (|return this, otherwise) return "/sandbox" (|else return this)}}

Returns "/sandbox" – or, if supplied, the first unnamed parameter ("return this" above) – if the template detects that the page where it is transcluded is a subpage named "sandbox" (i.e. a sandbox page); otherwise it returns nothing模板:Spndashor, if supplied, the second unnamed parameter ("else return this" above). It corresponds to {{When pagename is |/sandbox={{{return this|/sandbox}}} |other={{{else return this|}}}}}.

This can be useful to e.g. switch the version of a template used in its /doc[umentation] to the version in its sandbox (by replacing 模板:Mono ... on the /doc page with 模板:Mono ...) when that documentation is transcluded on the template's sandbox page.

重定向

  • {{\sandbox}}

參見

  • 模板:Tsl
上述文档嵌入自模板:When in sandbox/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
检索自“https://wiki66.com/index.php?title=模板:When_in_sandbox&oldid=46660”
分类:​
  • 含有受损文件链接的页面
  • 放置于模板的noteTA
  • 沙盒模板
最后编辑于2026年9月10日 (星期四) 02:11

语言

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

    戏曲百科
    • Powered by MediaWiki
    • Powered by Semantic MediaWiki
    • 本页面最后编辑于2026年9月10日 (星期四) 02:11。
    • 错误反馈
    • 关于戏曲百科
    • 免责声明
    • 豫ICP备13003402号-1
    • 桌面版