模板:Schedule:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
无编辑摘要 |
重写Schedule模板为BWIKI风格:单一参数入口(type/time/loc/day/title/pm),去除子操作模式,保留全部12种季节类型和mw-collapsible折叠功能 |
||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly> | ||
<!-- ============================== | |||
Schedule 模板 — BWIKI 风格重写 | |||
参数说明: | |||
{{ | type = spring|summer|fall|winter|desert|market|rain|green|clinic|marriage|custom|special | ||
title = 季节标题(留空则自动使用 {{Season|type}} 或默认文本) | |||
day = 日期标注(如"春季 5 日(巴士站已修复)") | |||
time = 时间(如"上午 9:00") | |||
loc = 地点/行为描述 | |||
pm = postmarriage,婚后日程(任意非空值触发婚后样式) | |||
note = 备注文本(替代 table_row_t) | |||
============================== --> | |||
{{#switch: {{lc:{{{type|}}}}} | |||
| spring | 春季 = | |||
<section class="schedule-season-block schedule-season-spring mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-spring"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{Season|Spring}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-spring">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
| | </tr> | ||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| summer | 夏季 = | |||
<section class="schedule-season-block schedule-season-summer mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-summer"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{Season|Summer}}}} | |||
| | </div> | ||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-summer">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
}}< | <tr> | ||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
{{ | }} | ||
</table> | |||
{{ | </div> | ||
{{ | </section> | ||
| fall | 秋季 = | |||
<section class="schedule-season-block schedule-season-fall mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-fall"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{Season|Fall}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-fall">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| winter | 冬季 = | |||
<section class="schedule-season-block schedule-season-winter mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-winter"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{Season|Winter}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-winter">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| desert | 沙漠节 = | |||
<section class="schedule-season-block schedule-season-desert mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-desert"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{#if:{{{day|}}}|春季 {{{day}}} 日(巴士站已修复)|沙漠节}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| market | 夜市 = | |||
<section class="schedule-season-block schedule-season-market mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-market"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{#if:{{{day|}}}|冬季 {{{day}}} 日(夜市)|夜市}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| rain | 雨天 = | |||
<section class="schedule-season-block schedule-season-rain mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-rain"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{Weather|Rain}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| green | green rain | 苔雨 = | |||
<section class="schedule-season-block schedule-season-green mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-green"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{Weather|Green}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| clinic | 体检 = | |||
<section class="schedule-season-block schedule-season-clinic mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-clinic"> | |||
{{#if:{{{title|}}}|{{{title|}}}|{{#if:{{{day|}}}|{{{day}}}|体检日}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| marriage | marriaged | 婚后 = | |||
<section class="schedule-season-block schedule-season-marriage mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-marriage"> | |||
[[File:Mermaid's_Pendant.png|20px]] [[s:婚姻|婚后]] | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-marriage">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| custom = | |||
<section class="schedule-season-block schedule-season-custom mw-collapsible mw-collapsed" style="border-color: {{{bordercolor|}}}; background-color: {{{bordercolor|}}};"> | |||
<div class="schedule-season-header schedule-header-custom" style="background-color: {{{bordercolor|#00b206}}}; border-color: {{{bordercolor|#007448}}}; text-shadow: 1px 1px {{{textshadow|#1e8e64}}};"> | |||
{{{title|自定义季节}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-custom">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| special = | |||
<section class="schedule-season-block schedule-season-special mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-special"> | |||
{{{title|特殊日程}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-special">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
| #default = | |||
<section class="schedule-season-block schedule-season-custom mw-collapsible mw-collapsed"> | |||
<div class="schedule-season-header schedule-header-custom"> | |||
{{{type|{{{title|}}}}}} | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
<table class="schedule-table wikitable"> | |||
{{#if:{{{day|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-header schedule-rowheader-custom">{{{day|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{time|}}}|{{#if:{{{loc|}}}| | |||
<tr> | |||
<td class="schedule-row-time">{{{time|}}}</td> | |||
<td class="schedule-row-location">{{{loc|}}}</td> | |||
</tr> | |||
}}}} | |||
{{#if:{{{pm|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-marriage">{{{loc|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{note|}}}| | |||
<tr> | |||
<td colspan="2" class="schedule-row-text">{{{note|}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</section> | |||
}} | }} | ||
</ | </includeonly> | ||
<noinclude> | |||
{{Documentation}} | |||
{{Documentation | |||
[[分类:模板]] | [[分类:模板]] | ||
</noinclude> | </noinclude> | ||