模板:Main other:修订间差异

来自北京交通百科
跳转到导航 跳转到搜索
Deefhi留言 | 贡献
创建页面,内容为“{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospac…”
 
Deefhi留言 | 贡献
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
{{#switch:
<noinclude>
  <!--If no or empty "demospace" parameter then detect namespace-->
本模板用于展示首页或某个特殊页面的紧急通知内容模板
  {{#if:{{{demospace|}}}
==使用说明==
  | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"-->
将下列文字复制到你想添加信息框的条目中:
  | {{#ifeq:{{NAMESPACE}}|{{ns:0}}
<nowiki>{{Main other|通知内容=}}</nowiki>
    | {{ifPNS| other | main }}
{| style="width: 100% !important;"
    | other
|-
    }}
| style="text-align: center;" colspan=2|
  }}
|-
| main = {{{1|}}}
|class="MainPageBG01"  style="border-top: 4px solid #e91e63; background-color: #ffabc8; color: #7b0101;font-size: 90%;font-weight: bold"|
| other
{|width="100%" cellpadding="2" cellspacing="5" style="padding: 5px"
| #default = {{{2|}}}
|-
}}<!--End switch--><noinclude>{{Documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
| style="text-align: center;"|范例:2020年4月18日起至另有通知时止,北京地铁1号线苹果园站封站,列车运行区段变更为古城站至四惠东站。
|}
|}
</noinclude>
<includeonly>{| style="width: 100% !important;"
|-
| style="text-align: center;" colspan=2|
|-
|class="MainPageBG01"  style="border-top: 4px solid #e91e63; background-color: #ffabc8; color: #7b0101;font-size: 90%;font-weight: bold"|
{|width="100%" cellpadding="2" cellspacing="5" style="padding: 5px"
|-
| style="text-align: center;"|{{{通知内容}}}
|}
|}</includeonly><noinclude>
<templatedata>
{
"params": {
"通知内容": {
"label": "字符",
"description": "输入通知内容",
"example": "2020年4月18日起至另有通知时止,北京地铁1号线苹果园站封站,列车运行区段变更为古城站至四惠东站。",
"suggested": true,
"required": true
}
},
"description": "展示首页或某个特殊页面的紧急通知内容",
"paramOrder": [
"通知内容"
]
}
</templatedata></noinclude>

2023年6月23日 (五) 11:27的最新版本

本模板用于展示首页或某个特殊页面的紧急通知内容模板

使用说明

将下列文字复制到你想添加信息框的条目中: {{Main other|通知内容=}}

范例:2020年4月18日起至另有通知时止,北京地铁1号线苹果园站封站,列车运行区段变更为古城站至四惠东站。


展示首页或某个特殊页面的紧急通知内容

模板参数[编辑模板数据]

参数描述类型状态
字符通知内容

输入通知内容

示例值
2020年4月18日起至另有通知时止,北京地铁1号线苹果园站封站,列车运行区段变更为古城站至四惠东站。
未知必需