本館粉絲專頁

模板:BD:修訂版本之間的差異

分享此網頁到Facebook
分享此網頁到Plurk
分享此網頁到百度搜藏
分享此網頁到Twitter
分享此網頁到Del.icio.us
台灣棒球維基館
跳轉到: 導覽搜尋
(慢慢加內容:6)
(語法說明)
第1行: 第1行:
 
<INCLUDEONLY>[[{{#titleparts:{{{1}}}|1|1}}年]]{{#titleparts:{{{1}}}|1|2}}月{{#titleparts:{{{1}}}|1|3}}日{{#ifexpr: {{{2|1}}}=0 | | ({{#ifexpr: ({{#expr:{{#time:n}}-{{#titleparts:{{{1}}}|1|2}}}}>0) or ({{#expr:{{#time:n}}-{{#titleparts:{{{1}}}|1|2}}}}=0 and {{#expr:{{#time:j}}-{{#titleparts:{{{1}}}|1|3}}}}>=0) | {{#expr:{{#time:Y}}-{{#titleparts:{{{1}}}|1|1}}}} | {{#expr:{{#time:Y}}-{{#titleparts:{{{1}}}|1|1}}-1}} }} 歲) }}</INCLUDEONLY><NOINCLUDE>
 
<INCLUDEONLY>[[{{#titleparts:{{{1}}}|1|1}}年]]{{#titleparts:{{{1}}}|1|2}}月{{#titleparts:{{{1}}}|1|3}}日{{#ifexpr: {{{2|1}}}=0 | | ({{#ifexpr: ({{#expr:{{#time:n}}-{{#titleparts:{{{1}}}|1|2}}}}>0) or ({{#expr:{{#time:n}}-{{#titleparts:{{{1}}}|1|2}}}}=0 and {{#expr:{{#time:j}}-{{#titleparts:{{{1}}}|1|3}}}}>=0) | {{#expr:{{#time:Y}}-{{#titleparts:{{{1}}}|1|1}}}} | {{#expr:{{#time:Y}}-{{#titleparts:{{{1}}}|1|1}}-1}} }} 歲) }}</INCLUDEONLY><NOINCLUDE>
 +
==Birthday==
 +
:顯示<B>生日</B>及<B>年齡</B>,適用於球員資料頁面,例如:
 +
 +
:*球員姓名:陳金鋒
 +
:*出生日期:{{BD | 1977/10/28 }}
 +
 +
===語法及參數順序===
 +
<PRE STYLE="margin-left:20px"><nowiki>{{ BD | Year/Month/Day | alive }}</nowiki></PRE>
 +
 +
:{| CLASS="wikitable" STYLE="background:white;min-width:500px;font-family:Consolas"
 +
|-
 +
! 參數順序 !! 意義 !! 說明 !! 預設值
 +
|-
 +
|STYLE="text-align:center"| 1 || Year/Month/day || 生日,必須用 "/" 格開 ||
 +
|-
 +
|STYLE="text-align:center"| 2 || alive || 1:在世<BR>0:已歿 ||
 +
*可省略,預設值為 1
 +
*已歿者不顯示年齡
 +
|}
  
 
[[Category:模板管理]]</NOINCLUDE>
 
[[Category:模板管理]]</NOINCLUDE>

2016年7月13日 (三) 16:34的修訂版本

Birthday

顯示生日年齡,適用於球員資料頁面,例如:
  • 球員姓名:陳金鋒
  • 出生日期:1977年10月28日(47歲)

語法及參數順序

{{ BD | Year/Month/Day | alive }}
參數順序 意義 說明 預設值
1 Year/Month/day 生日,必須用 "/" 格開
2 alive 1:在世
0:已歿
  • 可省略,預設值為 1
  • 已歿者不顯示年齡