有兽档案馆
搜索
切换搜索
切换菜单
切换个人菜单
查看“Template:Main Other/doc/doc”的源代码
模板页面
更多语言
阅读
查看源代码
查看历史
模板
讨论
更多操作
←
Template:Main Other/doc/doc
因为以下原因,您没有权限编辑该页面:
您所请求的操作,仅限具有
注册用户
、
自动确认用户
、
管理员
、
界面管理员
、
优质编辑者
、
确认用户
、
巡查员
、
档案理事员
等
权限
的
用户
执行。
若您尚未登录有兽档案馆账号,请您
登录
有兽档案馆账号后操作。
您尚未完成电子邮件确认,因此操作受限,请尽快
完成电子邮件确认
。
若您无法完成前述手续,请通过适当渠道请求管理员或档案理事员协助。
您可以查看和复制此页面的源代码。
若您无权编辑本页面,您可以
提出编辑请求
,提请有权限者代为编辑。
这是{{tl|main other}}元模板。 此模板可帮助其他模板检测它们是否位于主空间(条目)页面或某些“其他”类型的页面上。 === 用法 === 本模板通常使用2个参数 <pre> {{main other | 条目命名空间用文本 | 其他命名空间用文本 }} </pre> 模板用于条目时,显示''条目命名空间用文本'' 其他页面则显示''其他命名空间用文本'' 典型用法像是只想对条目加入分类,在其他命名空间不加入时: <pre> {{main other | [[Category:某条目维护分类]] }} </pre> 或是警告模板不该用于其他命名空间页面: <pre> {{main other | | 这个模板只应该用于条目。 }} </pre> 请注意,在上面的第一种情况下,未使用“ other”参数,在第二个示例中,“ main”参数为空。 === Demospace === For testing and demonstration purposes this template can take a parameter named '''demospace'''. * If it has the value '''main''' it returns the article 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> {{main other | Article text | Other pages text | demospace = main }} </pre> No matter on what kind of page the code above is used it will return this: :{{main other | Article text | Other pages text | demospace = main }} 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> {{main other | Article text | Other pages text | demospace = {{{demospace|}}} }} </pre> === Technical details === This template detects article "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>{{Sandbox other||[[Category:命名空间操作模板]] }}</includeonly>
该页面使用的模板:
Template:Main other
(
查看源代码
)
Template:Namespace detect see also
(
查看源代码
)
Template:Tl
(
查看源代码
)
Module:Tl
(
查看源代码
)
返回
Template:Main Other/doc/doc
。