有兽档案馆
搜索
切换搜索
切换菜单
切换个人菜单
查看“Template:Category other/doc”的源代码
模板页面
更多语言
阅读
查看源代码
查看历史
模板
讨论
更多操作
←
Template:Category other/doc
因为以下原因,您没有权限编辑该页面:
您所请求的操作,仅限具有
注册用户
、
自动确认用户
、
管理员
、
界面管理员
、
优质编辑者
、
确认用户
、
巡查员
、
档案理事员
等
权限
的
用户
执行。
若您尚未登录有兽档案馆账号,请您
登录
有兽档案馆账号后操作。
您尚未完成电子邮件确认,因此操作受限,请尽快
完成电子邮件确认
。
若您无法完成前述手续,请通过适当渠道请求管理员或档案理事员协助。
您可以查看和复制此页面的源代码。
若您无权编辑本页面,您可以
提出编辑请求
,提请有权限者代为编辑。
<includeonly><!-- 在这里加入模板的保护标识 --></includeonly> <!-- 在本行下编辑模板说明 --> 这是 {{tl|category other}} 元模板。 本模板帮助其他模板侦测页面是否为「Category:」或「其他」类型。 == 用法 == This template usually takes two parameters, like this: <pre> {{category other | Category page text | Other pages text }} </pre> If the template is on a "Category:" page, it will return this: :{{category other | demospace=category | Category page text | Other pages text }} If the template is on any other page, it will return this: :{{category other | Category page text | Other pages text }} A typical usage case could be to make it so that a template only adds a category when on category pages. Thus not adding other pages that just show the template. Like this: <pre> {{category other | [[Category:Some category maintenance category]] }} </pre> Or to warn that a template should not be used on other pages: <pre> {{category other | | This template should only be used on category pages. }} </pre> Note that in the first case above the "other" parameter was not used, and in the second example the "category" parameter was left empty. == Demospace == For testing and demonstration purposes this template can take a parameter named '''demospace'''. * If it has the value '''category''' it returns the category page text. * It if has the value '''other''' or any other value such as the name of some other namespace it returns the other pages text. * If the parameter is empty or undefined, the actual page type determines the result. Like this: <pre> {{category other | Category page text | Other pages text | demospace = category }} </pre> No matter on what kind of page the code above is used it will return this: :{{category other | Category page text | Other pages text | demospace = category }} You can make it so your template also understands the '''demospace''' parameter. That means you can demonstrate the different appearances of your template in the documentation for your template. Then do like this: <pre> {{category other | Category page text | Other pages text | demospace = {{{demospace|}}} }} </pre> == 技术细节 == This template detects "Category talk:" pages as type '''other'''. This template works like {{tl|main talk other}}, for more examples and technical details see full documentation there. == 参见 == {{namespace detect see also}} <includeonly> <!-- 本行下加入模板的分类 --> [[Category:求闻百科元模板]] <!-- 本行下加入模板的跨语言链接 --> </includeonly>
该页面使用的模板:
Template:Category other
(
查看源代码
)
Template:Namespace detect see also
(
查看源代码
)
Template:Tl
(
查看源代码
)
Module:Tl
(
查看源代码
)
返回
Template:Category other/doc
。