|
本館粉絲專頁 |
|
|
模板:SBDPT:修訂版本之間的差異
台灣棒球維基館
小 |
小 (最後修改,接近滿意的程度) |
||
第1行: | 第1行: | ||
− | <INCLUDEONLY><DIV STYLE="display:inline-block;padding:0;margin:{{#if:{{{DST|}}}|{{{DST}}}|0}}"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" STYLE="padding:0;margin:0;white-space:nowrap"><TR><TD>{{#if:{{{WHN|}}}{{{WHT|}}}{{{WHR|}}} | + | <INCLUDEONLY><DIV STYLE="display:inline-block;padding:0;margin:{{#if:{{{DST|}}}|{{{DST}}}|0}}"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" STYLE="padding:0;margin:0;white-space:nowrap"><TR><TD>{{#if:{{{CALLER|}}} |
− | + | | {{#if:{{{WHN|}}}{{{WHT|}}}{{{WHR|}}} | |
+ | | <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="1" STYLE="font:normal 8pt/100% '微軟正黑體';white-space:nowrap;{{{ST0|}}}"><TR><TD STYLE="width:100px;padding:1px"><tt>{{{WHN|}}}</tt></TD><TD STYLE="padding:1px 6px;text-overflow:ellipsis;text-align:center">{{{WHT|}}}</TD><TD STYLE="width:100px;padding:1px;text-align:right">{{{WHR|}}}</TD></TR></TABLE> | ||
+ | }} | ||
+ | | <DIV STYLE="color:red;text-align:center">建議以 [[Template:SBDW|<tt><nowiki>SBDW</nowiki></tt>]] 呼此模板</DIV> | ||
}}<!--BEGIN OF Scoreboard DIV--><DIV STYLE="padding:0;display:inline-block;box-shadow:4px 4px 10px rgba(0,0,0,.5);{{{ST1|margin:1px;border:0}}}"><TABLE BORDER="1" CELLSPACING="0" CELLPADDING="2" STYLE="margin:0;border-collapse:collapse;text-align:center;font:normal 10pt/100% {{{FNT}}},Consolas;background:{{{BG0|#F8F8F8}}};color:{{{FG0|black}}};border:1px solid {{{LNC|#888}}};white-space_nowrap"> | }}<!--BEGIN OF Scoreboard DIV--><DIV STYLE="padding:0;display:inline-block;box-shadow:4px 4px 10px rgba(0,0,0,.5);{{{ST1|margin:1px;border:0}}}"><TABLE BORDER="1" CELLSPACING="0" CELLPADDING="2" STYLE="margin:0;border-collapse:collapse;text-align:center;font:normal 10pt/100% {{{FNT}}},Consolas;background:{{{BG0|#F8F8F8}}};color:{{{FG0|black}}};border:1px solid {{{LNC|#888}}};white-space_nowrap"> | ||
<!-- ■■ ROW #1 ■■ --> | <!-- ■■ ROW #1 ■■ --> | ||
<TR> | <TR> | ||
<!-- ■■ ROW #1 - CELL:GAME_TITLE ■■ --> | <!-- ■■ ROW #1 - CELL:GAME_TITLE ■■ --> | ||
− | <TD NOWRAP STYLE="letter-spacing:1px;width:{{{WTM|100}}}px;height:{{{HRW|22}}}px;background:{{{ST2|{{{BG0|#F8F8F8}}}}}}">{{{GAME}}}</TD> | + | <TD NOWRAP STYLE="letter-spacing:1px;width:{{{WTM|100}}}px;height:{{{HRW|22}}}px;background:{{{ST2|{{{BG0|#F8F8F8}}}}}}">{{{GAME|}}}</TD> |
<!-- ■■ ROW #1 - CELL:INNINGS ■■ --> | <!-- ■■ ROW #1 - CELL:INNINGS ■■ --> | ||
<TD STYLE="width:{{{WCL|32}}}px">1</TD> | <TD STYLE="width:{{{WCL|32}}}px">1</TD> | ||
第39行: | 第42行: | ||
<TR STYLE="text-shadow:2px 2px 6px black;background:{{{BG1|white}}};color:{{{FG1|black;text-shadown:none}}}"> | <TR STYLE="text-shadow:2px 2px 6px black;background:{{{BG1|white}}};color:{{{FG1|black;text-shadown:none}}}"> | ||
<!-- ■■ ROW #2 - CELL:TEAM_NAME ■■ --> | <!-- ■■ ROW #2 - CELL:TEAM_NAME ■■ --> | ||
− | <TD STYLE="font-family:'微軟正黑體';background:{{{BG0|#F8F8F8}}};height:{{{HRW|22}}}px;color:{{{FG3|black}}}">{{{TEAM1}}}</TD> | + | <TD STYLE="font-family:'微軟正黑體';background:{{{BG0|#F8F8F8}}};height:{{{HRW|22}}}px;color:{{{FG3|black}}}">{{{TEAM1|}}}</TD> |
<!-- ■■ ROW #2 - CELL:SCORES ■■ --> | <!-- ■■ ROW #2 - CELL:SCORES ■■ --> | ||
− | <TD>{{#titleparts:{{{TEAM1_SCORES}}}|1|1}}</TD> | + | <TD>{{#titleparts:{{{TEAM1_SCORES|}}}|1|1}}</TD> |
− | <TD>{{#titleparts:{{{TEAM1_SCORES}}}|1|2}}</TD> | + | <TD>{{#titleparts:{{{TEAM1_SCORES|}}}|1|2}}</TD> |
− | <TD>{{#titleparts:{{{TEAM1_SCORES}}}|1|3}}</TD> | + | <TD>{{#titleparts:{{{TEAM1_SCORES|}}}|1|3}}</TD> |
− | <TD>{{#titleparts:{{{TEAM1_SCORES}}}|1|4}}</TD> | + | <TD>{{#titleparts:{{{TEAM1_SCORES|}}}|1|4}}</TD> |
− | <TD>{{#titleparts:{{{TEAM1_SCORES}}}|1|5}}</TD> | + | <TD>{{#titleparts:{{{TEAM1_SCORES|}}}|1|5}}</TD> |
<TD | <TD | ||
<!-- BEGIN OF nested conditions --> | <!-- BEGIN OF nested conditions --> | ||
− | {{#ifexpr: {{{INNING|9}}} >= 6 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|6}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 6 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|6}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 7 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|7}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 7 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|7}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 8 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|8}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 8 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|8}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 9 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|9}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 9 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|9}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 10 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|10}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 10 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|10}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 11 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|11}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 11 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|11}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 12 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|12}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 12 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|12}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 13 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|13}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 13 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|13}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 14 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|14}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 14 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|14}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 15 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|15}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 15 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|15}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 16 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|16}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 16 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|16}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 17 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|17}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 17 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|17}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 18 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|18}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 18 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|18}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 19 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|19}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 19 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|19}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 20 | >{{#titleparts:{{{TEAM1_SCORES}}}|1|20}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 20 | >{{#titleparts:{{{TEAM1_SCORES|}}}|1|20}}</TD><TD |
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | }}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
<!-- END OF nested conditions --> | <!-- END OF nested conditions --> | ||
第101行: | 第104行: | ||
<TR STYLE="text-shadow:2px 2px 6px black;background:{{{BG1|white}}};color:{{{FG1|black;text-shadown:none}}}"> | <TR STYLE="text-shadow:2px 2px 6px black;background:{{{BG1|white}}};color:{{{FG1|black;text-shadown:none}}}"> | ||
<!-- ■■ ROW #3 - CELL:TEAM_NAME ■■ --> | <!-- ■■ ROW #3 - CELL:TEAM_NAME ■■ --> | ||
− | <TD STYLE="font-family:'微軟正黑體';background:{{{BG0|#F8F8F8}}};height:{{{HRW|22}}}px;color:{{{FG3|black}}}">{{{TEAM2}}}</TD> | + | <TD STYLE="font-family:'微軟正黑體';background:{{{BG0|#F8F8F8}}};height:{{{HRW|22}}}px;color:{{{FG3|black}}}">{{{TEAM2|}}}</TD> |
<!-- ■■ ROW #3 - CELL:SCORES ■■ --> | <!-- ■■ ROW #3 - CELL:SCORES ■■ --> | ||
− | <TD>{{#titleparts:{{{TEAM2_SCORES}}}|1|1}}</TD> | + | <TD>{{#titleparts:{{{TEAM2_SCORES|}}}|1|1}}</TD> |
− | <TD>{{#titleparts:{{{TEAM2_SCORES}}}|1|2}}</TD> | + | <TD>{{#titleparts:{{{TEAM2_SCORES|}}}|1|2}}</TD> |
− | <TD>{{#titleparts:{{{TEAM2_SCORES}}}|1|3}}</TD> | + | <TD>{{#titleparts:{{{TEAM2_SCORES|}}}|1|3}}</TD> |
− | <TD>{{#titleparts:{{{TEAM2_SCORES}}}|1|4}}</TD> | + | <TD>{{#titleparts:{{{TEAM2_SCORES|}}}|1|4}}</TD> |
− | <TD>{{#titleparts:{{{TEAM2_SCORES}}}|1|5}}</TD> | + | <TD>{{#titleparts:{{{TEAM2_SCORES|}}}|1|5}}</TD> |
<TD | <TD | ||
<!-- BEGIN OF nested conditions --> | <!-- BEGIN OF nested conditions --> | ||
− | {{#ifexpr: {{{INNING|9}}} >= 6 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|6}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 6 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|6}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 7 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|7}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 7 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|7}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 8 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|8}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 8 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|8}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 9 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|9}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 9 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|9}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 10 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|10}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 10 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|10}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 11 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|11}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 11 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|11}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 12 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|12}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 12 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|12}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 13 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|13}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 13 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|13}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 14 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|14}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 14 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|14}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 15 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|15}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 15 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|15}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 16 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|16}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 16 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|16}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 17 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|17}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 17 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|17}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 18 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|18}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 18 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|18}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 19 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|19}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 19 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|19}}</TD><TD |
− | {{#ifexpr: {{{INNING|9}}} >= 20 | >{{#titleparts:{{{TEAM2_SCORES}}}|1|20}}</TD><TD | + | {{#ifexpr: {{{INNING|9}}} >= 20 | >{{#titleparts:{{{TEAM2_SCORES|}}}|1|20}}</TD><TD |
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | }}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
<!-- END OF nested conditions --> | <!-- END OF nested conditions --> | ||
第184行: | 第187行: | ||
==DBDPT (Scoreboard Prototype)== | ==DBDPT (Scoreboard Prototype)== | ||
:* 此模板用於產生計分板外觀。 | :* 此模板用於產生計分板外觀。 | ||
− | :* | + | :* 此模式為產生計分板的實際工作者,但需設定的項目較多,<SPAN STYLE="color:red">不建議直接使用此模板</SPAN>。 |
:* 此模板被 <tt>[[Template:SBDW|<nowiki>{{SBDW}}</nowiki>]]</tt> 所呼叫及包裝,善用模板 <tt>[[Template:SBDW|<nowiki>{{SBDW}}</nowiki>]]</tt> 可省略繁鎖的樣式設定。 | :* 此模板被 <tt>[[Template:SBDW|<nowiki>{{SBDW}}</nowiki>]]</tt> 所呼叫及包裝,善用模板 <tt>[[Template:SBDW|<nowiki>{{SBDW}}</nowiki>]]</tt> 可省略繁鎖的樣式設定。 | ||
2016年7月18日 (一) 18:00的修訂版本
DBDPT (Scoreboard Prototype)
語法
{{SBDPT <!-- All Parameters have default values and are optional --> <!-- Style Setting --> |DST = <與周圍物件的距離,可附加額外樣式> |WHN = <比賽時間> |WHR = <比賽地點> |WHT = <比賽公告> |BG0 = <預設背景色> |BG1 = <各局得分背景色> |FG0 = <預設前景色> |FG1 = <各局得分前景色> |FG2 = <標題 "R" 前景色> |FG3 = <隊名前景色,可附加隊名額外樣式> |FG4 = <總得分前景色,可附加總得分額外樣式> |ST0 = <資訊列樣式> |ST1 = <外框屬性,可附加外框額外樣式> |ST2 = <比賽名稱背景色,可附加比賽名稱額外樣式> |LNC = <框線顏色,可附加計分板額外樣樣式> |FNT = <字體> |HRW = <列高> |WCL = <欄寬> |WTM = <隊名欄寬> <!-- Scoreboard --> |GAME = <比賽名稱> |INNING = <局數,可省略> |TEAM1 = <客隊名稱> |TEAM1_SCORES = <客隊各局得分,以 "/" 分隔> |TEAM1_R = <客隊總得分,可省略> |TEAM1_H = <客隊安打> |TEAM1_E = <客隊失誤> |TEAM2 = <主隊名稱> |TEAM2_SCORES = <主隊各局得分,以 "/" 分隔> |TEAM2_R = <主隊總得分,可省略> |TEAM2_H = <主隊安打> |TEAM2_E = <主隊失誤> <!-- Game Info --> |WHN = <比賽時間> |WHR = <比賽地點> |WHT = <比賽公告> <!-- Game Summery --> |PPOS = <值 R 表示將投打表現區塊置於計分板右方> |SD = <值 1 表示使用短描述> |WP = <勝利投手> |LP = <敗戰投手> |SV = <救援成功> |GWRBI = <勝利打點> |HOMER = <全壘打> <!-- more/misc Info --> |MORE = <其它資訊,置於計分板右方> }}