本館粉絲專頁

使用者:Digipunk/XXT/Helper:修訂版本之間的差異

分享此網頁到Facebook
分享此網頁到Plurk
分享此網頁到百度搜藏
分享此網頁到Twitter
分享此網頁到Del.icio.us
最近作者:Digipunk 2018年8月20日 (星期一)18:08
台灣棒球維基館
跳轉到: 導覽搜尋
(bug fixed)
 
(由1名用戶作出的3個中途修訂版本未被顯示)
第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>
  
 
| EVENT-LOGO = {{#switch:{{{2}}}
 
| EVENT-LOGO = {{#switch:{{{2}}}
     | 黑豹旗 = [[File:XPANTHER01.png|link=|80px]]
+
     | 黑豹旗 = {{#iferror:{{#ifexpr:{{padleft:|4|{{PAGENAME}}}}>=2013|<SPAN STYLE="font:bold 10pt/130% 'Comic Sans MS'">{{padleft:|4|{{PAGENAME}}}}黑豹旗</SPAN><BR>}}}}[[File:XPANTHER01.png|link=|80px]]
 
     | {{#ifexist:File:{{{2}}} | [[File:{{{2}}}|link=|80px]] }}
 
     | {{#ifexist:File:{{{2}}} | [[File:{{{2}}}|link=|80px]] }}
 
   }}
 
   }}
  
 +
| PR = {{#if:{{{2|}}}
 +
    | {{padright:{{{2}}}|{{{3}}}| }}
 +
  }}
 
}}</INCLUDEONLY><NOINCLUDE>
 
}}</INCLUDEONLY><NOINCLUDE>
 
==XXT Helper==
 
==XXT Helper==
第39行: 第48行:
 
:* <tt>PRESET-TEAM-STYLE-LIST</tt>
 
:* <tt>PRESET-TEAM-STYLE-LIST</tt>
 
:* <tt>EVENT-LOGO</tt>
 
:* <tt>EVENT-LOGO</tt>
 +
:* <tt>PR</tt>
  
 
==<tt>C23</tt>(是否為二或三個英數字)==
 
==<tt>C23</tt>(是否為二或三個英數字)==
第115行: 第125行:
 
</DIV>
 
</DIV>
  
<NOINCLUDE>
+
</NOINCLUDE>

2018年8月20日 (一) 18:08的最新修訂版本

目次

[編輯] 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