|
本館粉絲專頁 |
|
|
使用者:Digipunk/SBDW/Renderer:修訂版本之間的差異
台灣棒球維基館
< 使用者:Digipunk | SBDW
(由1名用戶作出的17個中途修訂版本未被顯示) | |||
第1行: | 第1行: | ||
<INCLUDEONLY><!-- | <INCLUDEONLY><!-- | ||
− | ■■ BEGIN of Outer DIV ■■ --><DIV {{#if:{{{ID|}}}|ID="{{{ID}}}"}} STYLE="display:inline-block;padding:0;margin:{{#if:{{{DST}}}|{{{DST}}}|0}}"><!-- | + | ■■ BEGIN of Outer DIV ■■ --><DIV {{#if:{{{ID|}}}|ID="{{{ID}}}"}} STYLE="display:inline-block;padding:0;vertical-align:top;margin:{{#if:{{{DST}}}|{{{DST}}}|0}}"><!-- |
■■ BEGIN of Main Table ■■ --><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" STYLE="padding:0;margin:0;white-space:nowrap"><TR><TD><!-- | ■■ BEGIN of Main Table ■■ --><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" STYLE="padding:0;margin:0;white-space:nowrap"><TR><TD><!-- | ||
− | ■■ BEGIN of Game-Info ■■ -->{{User:Digipunk/SBDW/Helper | ACT=GAME-INFO | ST0={{{ST0}}}|WHN={{{WHN}}}|WHT={{{WHT}}}|WHR={{{WHR}}} }}<!-- | + | ■■ BEGIN of Game-Info ■■ -->{{User:Digipunk/SBDW/Helper|ACT=GAME-INFO|ST0={{{ST0}}}|WHN={{{WHN}}}|WHT={{{WHT}}}|WHR={{{WHR}}}|WHT-STL={{{WHT-STL}}} }}<!-- |
■■ END of Game-Info ■■ --><!-- | ■■ END of Game-Info ■■ --><!-- | ||
− | ■■ BEGIN OF Scoreboard DIV ■■--><DIV | + | ■■ BEGIN OF Scoreboard DIV ■■--><DIV CLASS="DGPK-SBDW{{{STYLE|}}}"><TABLE BORDER="1" CELLSPACING="0" CELLPADDING="2" STYLE="{{#if:{{{FIXED-WIDTH}}}|width:{{{FIXED-WIDTH}}}px;}}{{#if:{{{FNT}}}|font-family:{{{FNT}}}}}"> |
<!-- ■ ROW #1 ■ --> | <!-- ■ ROW #1 ■ --> | ||
− | <TR> | + | <TR CLASS="scores-title"> |
<!-- | <!-- | ||
− | ■ GAME_TITLE ■--><TD NOWRAP STYLE=" | + | ■ GAME_TITLE ■--><TD NOWRAP STYLE="{{#if:{{{WTM}}}|width:{{{WTM}}}px;}}{{#if:{{{HRW}}}|height:{{{HRW}}}px;}}">{{{GAME}}}</TD><!-- |
− | ■ INNING TITLES ■-->{{User:Digipunk/SBDW/Helper | ACT=SHOW-INNING-TITLES | N={{{INNING}}}|W={{{WCL}}} }}<!-- | + | ■ INNING TITLES ■-->{{User:Digipunk/SBDW/Helper|ACT=SHOW-INNING-TITLES|N={{{INNING}}}|W={{#if:{{{FIXED-WIDTH}}}||{{{WCL}}}}} }}<!-- |
− | ■ CELL:R ■--><TD STYLE=" | + | ■ CELL:R ■--><TD CLASS="runs" STYLE="{{#if:{{{FIXED-WIDTH}}}||width:{{{WCL}}}px}};font-weight:bold" TITLE="得分">R</TD><!-- |
− | ■ RHEB TITLES ■-->{{User:Digipunk/SBDW/Helper | ACT=SHOW-RHEB-TITLES | HAS-RHEB={{{HAS-RHEB}}}|HAS-EXT={{{HAS-EXT}}}|W={{{WCL}}} }} | + | ■ RHEB TITLES ■-->{{User:Digipunk/SBDW/Helper|ACT=SHOW-RHEB-TITLES|HAS-RHEB={{{HAS-RHEB}}}|HAS-EXT={{{HAS-EXT}}}|W={{#if:{{{FIXED-WIDTH}}}||{{{WCL}}}}}|S=font-family:Consolas }} |
</TR> | </TR> | ||
<!-- ■ ROW #2 ■ --> | <!-- ■ ROW #2 ■ --> | ||
− | <TR | + | <TR CLASS="scores"> |
<!-- | <!-- | ||
− | ■ TEAM_NAME ■--><TD STYLE=" | + | ■ TEAM_NAME ■--><TD STYLE="{{#if:{{{HRW}}}|height:{{{HRW}}}px;}}">{{{TEAM1}}}</TD><!-- |
− | ■ INNING VALUES ■-->{{User:Digipunk/SBDW/Helper | ACT=SHOW-INNING-VALUES | S={{{TEAM1-SCORES}}}|N={{{INNING}}} }}<!-- | + | ■ INNING VALUES ■-->{{User:Digipunk/SBDW/Helper|ACT=SHOW-INNING-VALUES|S={{{TEAM1-SCORES}}}|N={{{INNING}}}|C={{{CALLED}}} }}<!-- |
− | ■ CELL:R ■--><TD | + | ■ CELL:R ■--><TD CLASS="runs">{{#if:{{#titleparts:{{{TEAM1-RHEB}}}|1|1}} |
| {{#titleparts:{{{TEAM1-RHEB}}}|1|1}} | | {{#titleparts:{{{TEAM1-RHEB}}}|1|1}} | ||
− | | {{#if: {{{TEAM1-SCORES|}}} | {{User:Digipunk/SBDW/Helper | ACT=CALC-RUNS | S={{{TEAM1-SCORES}}}|N={{{INNING}}} }} }} | + | | {{#if: {{{TEAM1-SCORES|}}} | {{User:Digipunk/SBDW/Helper|ACT=CALC-RUNS|S={{{TEAM1-SCORES}}}|N={{{INNING}}} }} }} |
}}</TD><!-- | }}</TD><!-- | ||
− | ■ RHEB VALUES ■-->{{User:Digipunk/SBDW/Helper | ACT=SHOW-RHEB-VALUES | HAS-RHEB={{{HAS-RHEB}}}|V={{{TEAM1-RHEB}}}|HAS-EXT={{{HAS-EXT}}}|W={{{WCL}}} }} | + | ■ RHEB VALUES ■-->{{User:Digipunk/SBDW/Helper|ACT=SHOW-RHEB-VALUES|HAS-RHEB={{{HAS-RHEB}}}|V={{{TEAM1-RHEB}}}|HAS-EXT={{{HAS-EXT}}}|W={{{WCL}}}|S=text-shadow:none;font-family:Consolas }} |
</TR> | </TR> | ||
<!-- ■ ROW #3 ■ --> | <!-- ■ ROW #3 ■ --> | ||
− | <TR | + | <TR CLASS="scores"> |
<!-- | <!-- | ||
− | ■ TEAM_NAME ■--><TD STYLE=" | + | ■ TEAM_NAME ■--><TD STYLE="{{#if:{{{HRW}}}|height:{{{HRW}}}px;}}">{{{TEAM2}}}</TD><!-- |
− | ■ INNING VALUES ■-->{{User:Digipunk/SBDW/Helper | ACT=SHOW-INNING-VALUES | S={{{TEAM2-SCORES}}}|N={{{INNING}}} }}<!-- | + | ■ INNING VALUES ■-->{{User:Digipunk/SBDW/Helper|ACT=SHOW-INNING-VALUES|S={{{TEAM2-SCORES}}}|N={{{INNING}}}|C={{{CALLED}}} }}<!-- |
− | ■ CELL:R ■--><TD | + | ■ CELL:R ■--><TD CLASS="runs">{{#if: {{#titleparts:{{{TEAM2-RHEB}}}|1|1}} |
| {{#titleparts:{{{TEAM2-RHEB}}}|1|1}} | | {{#titleparts:{{{TEAM2-RHEB}}}|1|1}} | ||
− | | {{#if: {{{TEAM2-SCORES|}}} | {{User:Digipunk/SBDW/Helper | ACT=CALC-RUNS | S={{{TEAM2-SCORES}}}|N={{{INNING}}} }} }} | + | | {{#if: {{{TEAM2-SCORES|}}} | {{User:Digipunk/SBDW/Helper|ACT=CALC-RUNS|S={{{TEAM2-SCORES}}}|N={{{INNING}}} }} }} |
}}</TD><!-- | }}</TD><!-- | ||
− | ■ RHEB VALUES ■-->{{User:Digipunk/SBDW/Helper | ACT=SHOW-RHEB-VALUES | HAS-RHEB={{{HAS-RHEB}}}|V={{{TEAM2-RHEB}}}|HAS-EXT={{{HAS-EXT}}}|W={{{WCL}}} }} | + | ■ RHEB VALUES ■-->{{User:Digipunk/SBDW/Helper|ACT=SHOW-RHEB-VALUES|HAS-RHEB={{{HAS-RHEB}}}|V={{{TEAM2-RHEB}}}|HAS-EXT={{{HAS-EXT}}}|W={{{WCL}}}|S=text-shadow:none;font-family:Consolas }} |
</TR> | </TR> | ||
</TABLE></DIV><!-- | </TABLE></DIV><!-- | ||
− | ■■ END OF Scoreboard DIV ■■--></TD><!-- | + | ■■ END OF Scoreboard DIV ■■--><!-- |
+ | ■■ BEGIN OF Lineup DIV ■■-->{{#if:{{{V-BATTERS}}}{{{H-BATTERS}}}{{{V-PITCHERS}}}{{{H-PITCHERS}}} | ||
+ | | <DIV CLASS="DGPK-LINEUP" STYLE="margin:0 0 5px;border-bottom:1px dashed black;padding-bottom:10px"> | ||
+ | <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"> | ||
+ | <TR CLASS="outer-row"> | ||
+ | <TD>{{{V-BATTERS}}}{{{V-PITCHERS}}}</TD> | ||
+ | <TD>{{{H-BATTERS}}}{{{H-PITCHERS}}}</TD> | ||
+ | </TR> | ||
+ | </TABLE></DIV>}}<!-- | ||
+ | ■■ END OF Lineup DIV ■■--></TD><!-- | ||
■■ BEGIN of 右區塊 ■■--><!-- | ■■ BEGIN of 右區塊 ■■--><!-- | ||
− | ■ Game-Result1 ■-->{{#ifeq:{{{PPOS}}} | R | {{User:Digipunk/SBDW/Helper | ACT=GAME-RESULT1 | SD={{{SD}}}|WP={{{WP}}}|LP={{{LP}}}|SV={{{SV}}}|GWRBI={{{GWRBI}}}|HOMER={{{HOMER}}} }} | + | ■ Game-Result1 ■-->{{#ifeq:{{{PPOS}}} | R | {{User:Digipunk/SBDW/Helper|ACT=GAME-RESULT1|SD={{{SD}}}|WP={{{WP}}}|LP={{{LP}}}|SV={{{SV}}}|GWRBI={{{GWRBI}}}|HOMER={{{HOMER}}}|MVP={{{MVP}}} }} |
}}<!-- | }}<!-- | ||
− | ■ Game-More ■-->{{#if:{{{MORE}}} | {{User:Digipunk/SBDW/Helper | ACT=GAME-MORE | MORE={{{MORE}}} }} }}<!-- | + | ■ Game-More ■-->{{#if:{{{MORE}}} | {{User:Digipunk/SBDW/Helper|ACT=GAME-MORE|MORE={{{MORE}}} }} }}<!-- |
■■ END of 右區塊 ■■--></TR></TABLE><!-- | ■■ END of 右區塊 ■■--></TR></TABLE><!-- | ||
■■ END of Main Table ■■ | ■■ END of Main Table ■■ | ||
--><!-- | --><!-- | ||
■■ BEGIN of 下區塊:獨立 Table ■■--><!-- | ■■ BEGIN of 下區塊:獨立 Table ■■--><!-- | ||
− | ■ Game-Result2 ■-->{{#ifeq:{{{PPOS}}} | R || {{User:Digipunk/SBDW/Helper | ACT=GAME-RESULT2 | SD={{{SD}}}|WP={{{WP}}}|LP={{{LP}}}|SV={{{SV}}}|GWRBI={{{GWRBI}}}|HOMER={{{HOMER}}} }} }}<!-- | + | ■ Game-Result2 ■-->{{#ifeq:{{{PPOS}}} | R || {{User:Digipunk/SBDW/Helper|ACT=GAME-RESULT2|SD={{{SD}}}|WP={{{WP}}}|LP={{{LP}}}|SV={{{SV}}}|GWRBI={{{GWRBI}}}|HOMER={{{HOMER}}}|MVP={{{MVP}}}|WLOS={{#ifexpr:{{{WLOS}}}<0|{{{WLOS}}}|0}} }} }}<!-- |
− | ■■ END of 下區塊:獨立 Table ■■--></DIV><!-- | + | ■■ END of 下區塊:獨立 Table ■■--><!-- |
+ | ■■ BEGIN OF ExtraInfo DIV ■■-->{{#if:{{{UMPIRES}}}{{{DURATION}}}{{{AUDIENCE}}} | ||
+ | | <DIV CLASS="SBDW-INFO" STYLE="width:{{#if:{{{FIXED-WIDTH}}}|{{{FIXED-WIDTH}}}|{{#expr:({{{WTM}}}+5)+({{{WCL}}}+5)*({{{INNING}}}+3)+3 }}}}px"> | ||
+ | <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" STYLE="width:100%;font:normal 8pt/1 Consolas,monospace,'Courier New';white-space:nowrap"> | ||
+ | <TR STYLE="vertical-align:middle"> | ||
+ | <TD STYLE="text-align:left;font-family:Oswald">{{{UMPIRES}}}</TD> | ||
+ | <TD STYLE="text-align:right">{{{AUDIENCE}}}{{{DURATION}}}</TD> | ||
+ | </TR> | ||
+ | </TABLE></DIV>}}{{#if:{{{NOTE}}} | ||
+ | | <DIV CLASS="SBDW-INFO" STYLE="width:{{#if:{{{FIXED-WIDTH}}}|{{{FIXED-WIDTH}}}|{{#expr:({{{WTM}}}+5)+({{{WCL}}}+5)*({{{INNING}}}+3)+3 }}}}px"> | ||
+ | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1" STYLE="border-left:6px solid #DDD;width:100%;font:normal 8pt/1 Oswald"> | ||
+ | <TR STYLE="vertical-align:top"> | ||
+ | <TD STYLE="width:1px;white-space:nowrap">✎註:</TD> | ||
+ | <TD>{{{NOTE}}}</TD> | ||
+ | </TR> | ||
+ | </TABLE></DIV>}}<!-- | ||
+ | ■■ END OF ExtraInfo DIV ■■--></DIV><!-- | ||
■■ END of Outer DIV ■■ --></INCLUDEONLY><NOINCLUDE> | ■■ END of Outer DIV ■■ --></INCLUDEONLY><NOINCLUDE> | ||
==SBDW Renderer== | ==SBDW Renderer== | ||
:* Refer to {{User:Digipunk/TPL|SBDW|link}} for more details. | :* Refer to {{User:Digipunk/TPL|SBDW|link}} for more details. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==開發記錄== | ==開發記錄== |
2019年9月9日 (一) 16:25的最新修訂版本
[編輯] SBDW Renderer
- Refer to {{SBDW}} for more details.
[編輯] 開發記錄
- [2016-07-17] 建立模板。