|
|
本館粉絲專頁 |
|
|
使用者:Digipunk/XXT/Helper:修訂版本之間的差異
台灣棒球維基館
< 使用者:Digipunk | XXT
小 |
小 |
||
| 第9行: | 第9行: | ||
| 0 | | 0 | ||
}} | }} | ||
| + | |||
| + | | PRESET-TEAM-STYLE = {{#switch:{{{2|}}} | ||
| + | | 高苑綠 = background:linear-gradient(#686,#353);color:yellow;text-shadow:2px 2px 2px rgba(0,0,0,.6);font-weight:bold | ||
| + | | 桃農藍 | ||
| + | | 平鎮藍 = background:linear-gradient(#558,#336);color:white;text-shadow:2px 2px 2px rgba(0,0,0,.6);font-weight:bold | ||
| + | | 穀保藍 = background:linear-gradient(#8DF,#4AC);color:white;text-shadow:2px 2px 2px rgba(0,0,0,.6);font-weight:bold | ||
| + | | 西苑橘 = background:linear-gradient(#F95,#C62);color:white;text-shadow:2px 2px 2px rgba(0,0,0,.6);font-weight:bold | ||
| + | | 屏中白 = background:linear-gradient(#FFF,#F4F4F4);color:red;text-shadow:2px 2px 2px rgba(0,0,0,.3);font-weight:bold | ||
| + | | {{{2|}}} | ||
| + | }} | ||
| + | | PRESET-TEAM-STYLE-LIST = <DIV STYLE="padding-left:40px"> | ||
| + | * <B>高苑綠</B><SPAN STYLE="color:gray">(深綠底黃字粗體略帶陰影)</SPAN> | ||
| + | * <B>平鎮藍</B><SPAN STYLE="color:gray">(深藍底白字粗體略帶陰影)</SPAN> | ||
| + | * <B>桃農藍</B><SPAN STYLE="color:gray">(深藍底白字粗體略帶陰影,同平鎮藍)</SPAN> | ||
| + | * <B>穀保藍</B><SPAN STYLE="color:gray">(淺藍底白字粗體略帶陰影)</SPAN> | ||
| + | * <B>西苑橘</B><SPAN STYLE="color:gray">(橘底白色粗體略帶陰影)</SPAN> | ||
| + | * <B>屏中白</B><SPAN STYLE="color:gray">(白底紅字粗體略帶陰影)</SPAN> | ||
| + | </DIV> | ||
| + | |||
| + | | EVENT-LOGO = {{#switch:{{{2|}}} | ||
| + | | 黑豹旗 = XPANTHER01.png | ||
| + | | {{{2|}}} | ||
| + | }} | ||
| + | |||
}}</INCLUDEONLY><NOINCLUDE> | }}</INCLUDEONLY><NOINCLUDE> | ||
==XXT Helper== | ==XXT Helper== | ||
| − | :* C23 | + | :* <tt>C23</tt> |
| − | :* | + | :* <tt>PRESET-TEAM-STYLE</tt> |
| − | == | + | ==<tt>C23</tt>(是否為二或三個英數字)== |
===語法=== | ===語法=== | ||
| 第31行: | 第55行: | ||
</DIV> | </DIV> | ||
====傳回值==== | ====傳回值==== | ||
| − | :* | + | :* <tt>1</tt>:是,兩字元或三字元(英數字) |
| − | :* | + | :* <tt>0</tt>:少於 2 字元 |
| − | :* | + | :* <tt>2</tt>:多於 3 字元 |
===範例=== | ===範例=== | ||
| 第52行: | 第76行: | ||
| <nowiki>{{User:Digipunk/XXT/Helper|C23| 你好}}</nowiki> ||STYLE="text-align:center"| {{User:Digipunk/XXT/Helper|C23| 你好}} | | <nowiki>{{User:Digipunk/XXT/Helper|C23| 你好}}</nowiki> ||STYLE="text-align:center"| {{User:Digipunk/XXT/Helper|C23| 你好}} | ||
|} | |} | ||
| + | |||
| + | ==<tt>PRESET-TEAM-STYLE</tt>(預設隊名樣式)== | ||
| + | |||
| + | ===語法=== | ||
| + | <DIV STYLE="background:black;color:#FF0;padding:10px"> | ||
| + | {| BORDER="0" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" STYLE="font:normal 10pt/110% Consolas;white-space:pre" | ||
| + | |- | ||
| + | |STYLE="color:#CCC;width:30px"|1||COLSPAN="2"|<B>{{User:Digipunk/XXT/Helper|PRESET-TEAM-STYLE</B> | ||
| + | |- | ||
| + | |STYLE="color:#CCC"|2||COLSPAN="2"| <SPAN STYLE="color:#88F"><!-- 【順序參數】 --></SPAN> | ||
| + | |- | ||
| + | |STYLE="color:#CCC"|3||STYLE="width:30px"| | <SPAN STYLE="color:#0FF">2</SPAN> | ||
| + | | = <SPAN STYLE="color:#F4F"><字串></SPAN> | ||
| + | |- | ||
| + | |STYLE="color:#CCC"|4||COLSPAN="2"|<B>}}</B> | ||
| + | |} | ||
| + | </DIV> | ||
| + | ====傳回值==== | ||
| + | :* 若符合預設樣式名稱,便傳回該樣式,否則傳回原值。 | ||
| + | |||
| + | ===目前預設樣式=== | ||
| + | :* 目前僅各屆前四名設有預設樣式: | ||
| + | {{User:Digipunk/XXT/Helper | PRESET-TEAM-STYLE-LIST}} | ||
==開發記錄== | ==開發記錄== | ||
<DIV STYLE="width:85%"> | <DIV STYLE="width:85%"> | ||
| − | :* <tt>[2016-07-26]</tt> | + | :* <tt>[2016-07-26]</tt> 建立模板,新增 <tt>C23</tt>。 |
| + | :* <tt>[2016-08-11]</tt> 新增 <tt>PRESET-TEAM-STYLE</tt>。 | ||
</DIV> | </DIV> | ||
<NOINCLUDE> | <NOINCLUDE> | ||
2016年8月12日 (五) 17:06的修訂版本
目次 |
XXT Helper
- C23
- PRESET-TEAM-STYLE
C23(是否為二或三個英數字)
語法
| 1 | {{User:Digipunk/XXT/Helper|C23 | |
| 2 | <!-- 【順序參數】 --> | |
| 3 | | 2 | = <字串> |
| 4 | }} | |
傳回值
- 1:是,兩字元或三字元(英數字)
- 0:少於 2 字元
- 2:多於 3 字元
範例
檢查字串 得到結果 {{User:Digipunk/XXT/Helper|C23| abc}} 1 {{User:Digipunk/XXT/Helper|C23| ab}} 1 {{User:Digipunk/XXT/Helper|C23| a}} 0 {{User:Digipunk/XXT/Helper|C23| }} 0 {{User:Digipunk/XXT/Helper|C23| abcd}} 2 {{User:Digipunk/XXT/Helper|C23| 你好}} 2
PRESET-TEAM-STYLE(預設隊名樣式)
語法
| 1 | {{User:Digipunk/XXT/Helper|PRESET-TEAM-STYLE | |
| 2 | <!-- 【順序參數】 --> | |
| 3 | | 2 | = <字串> |
| 4 | }} | |
傳回值
- 若符合預設樣式名稱,便傳回該樣式,否則傳回原值。
目前預設樣式
- 目前僅各屆前四名設有預設樣式:
- 高苑綠(深綠底黃字粗體略帶陰影)
- 平鎮藍(深藍底白字粗體略帶陰影)
- 桃農藍(深藍底白字粗體略帶陰影,同平鎮藍)
- 北科藍(深藍底白字粗體略帶陰影,同平鎮藍)
- 興大藍(深藍底白字粗體略帶陰影,同平鎮藍)
- 穀保藍(淺藍底白字粗體略帶陰影)
- 西苑橘(橘底白色粗體略帶陰影)
- 屏中白(白底紅字粗體略帶陰影)
- 鶯歌白(白底紅字粗體略帶陰影,同屏中白)
開發記錄
- [2016-07-26] 建立模板,新增 C23。
- [2016-08-11] 新增 PRESET-TEAM-STYLE。