|
|
本館粉絲專頁 |
|
|
使用者:Digipunk/XXT/Helper:修訂版本之間的差異
台灣棒球維基館
< 使用者:Digipunk | XXT
小 |
小 |
||
| 第12行: | 第12行: | ||
| PRESET-TEAM-STYLE = {{#switch:{{{2|}}} | | 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(#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(#558,#336);color:white;text-shadow:2px 2px 2px rgba(0,0,0,.6);font-weight:bold | ||
| 第17行: | 第19行: | ||
| 西苑橘 = background:linear-gradient(#F95,#C62);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 | | 屏中白 = background:linear-gradient(#FFF,#F4F4F4);color:red;text-shadow:2px 2px 2px rgba(0,0,0,.3);font-weight:bold | ||
| + | | 鶯歌白 = background:white;color:red;text-shadow:2px 2px 2px rgba(0,0,0,.3);font-weight:bold | ||
| {{{2|}}} | | {{{2|}}} | ||
}} | }} | ||
| 第23行: | 第26行: | ||
* <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> | ||
* <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> | ||
| + | * <B>鶯歌白</B><SPAN STYLE="color:gray">(白底紅字粗體略帶陰影,同屏中白)</SPAN> | ||
</DIV> | </DIV> | ||
2016年11月13日 (日) 19:14的修訂版本
目次 |
XXT Helper
- C23
- PRESET-TEAM-STYLE
- PRESET-TEAM-STYLE-LIST
- EVENT-LOGO
- PR
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 | }} | |
傳回值
- 若符合預設樣式名稱,便傳回該樣式,否則傳回原值。
PRESET-TEAM-STYLE-LIST(預設隊名樣式列表)
語法
| 1 | {{User:Digipunk/XXT/Helper|PRESET-TEAM-STYLE-LIST}} | |
傳回值
- 高苑綠(深綠底黃字粗體略帶陰影)
- 平鎮藍(深藍底白字粗體略帶陰影)
- 桃農藍(深藍底白字粗體略帶陰影,同平鎮藍)
- 北科藍(深藍底白字粗體略帶陰影,同平鎮藍)
- 興大藍(深藍底白字粗體略帶陰影,同平鎮藍)
- 穀保藍(淺藍底白字粗體略帶陰影)
- 西苑橘(橘底白色粗體略帶陰影)
- 屏中白(白底紅字粗體略帶陰影)
- 鶯歌白(白底紅字粗體略帶陰影,同屏中白)
開發記錄
- [2016-07-26] 建立模板,新增 C23。
- [2016-08-11] 新增 PRESET-TEAM-STYLE。