求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

模板:As of/doc檢視原始碼檢視歷史

事實揭露 揭密真相
前往: 導覽搜尋

用法

本模板{{As of}}主要標記可能的日期狀態,並將條目增加到「截至...」格式的分類當中。本模板允與編輯者可以將可能因時間推移而改變內容的條目進行分類。The date used for a given statement should be the current date (for currently valid statements) or the date on which the cited reference was produced (for example, when using census data). It also includes the ISO 8601 format needed by hAtom (class="updated") and hCalendar (class="dtstart") microformats through use of the {{Start date}} template. Unlike the {{Update after}} template, {{As of}} does not require the editor to give a full date. This template should not be subst'd.

語法

本模板的使用格式如下:

{{As of|year|month|day}}
{{As of|year|month}}
{{As of|year}}

另外還有其他的參數可供使用(參見下一段)。

參數

必填

  • year(第一個參數)─格式必須為yyyy

選填

  • month(第二個參數)─全名、縮寫或數字(推薦)格式。
  • day(第三個參數)─只允許數字格式,不得包含內部連結。

Named

  • alt – optional; allows substitution of visible text output (defaults to "As of date") for different wording and case, if defined values for df and lc parameters are ignored
  • df – optional; allows use of American date format with df=US
  • lc – optional; gives lower case "as of date" when defined, recommended syntax is lc=on
  • url – optional; adds an inline external link (hidden by default) suggesting a webpage for future editors to check for updates to the statement, use the full URL with no spaces. See 求真百科:As of for displaying links.

例子

{{As of|2008}} — 截至2008年 (2008-Missing required parameter 1=month!)
{{As of|2008|7}} — 截至2008年7月 (2008-07)
{{As of|2008|7|5}} — 截至2008年7月5日 (2008-07-05)
{{As of|2008|4|1|alt=截至[[2000年美國人口普查]]}} — 截至2000年美國人口普查
{{As of|2008|7|5|df=US}} — 截至2008年7月5日 (2008-07-05)
{{As of|2008|7|5|lc=on}} — 截至2008年7月5日 (2008-07-05)
{{As of|2008|7|url=http://en.wikipedia.org/}}
對於登入用戶,該連結會顯示為(參見求真百科:As of)—截至2008年7月[ref]
對於其他用戶—截至2008年7月

模板數據

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for As of

一個用來標記可能已過時之敘述的模板,並會將條目自動加入至「分類:包含可能過時之敘述的條目」。可讓編輯者更新可能隨時間而過時的條目內容。

模板參數

參數描述類型狀態
年份1

敘述內容的有效日期中的「年」。必須是四位數字(YYYY)

預設
空的
範例
空的
自動值
空的
數值必填
月份2

敘述內容的有效日期中的「月」。必須是兩位數字(MM)

預設
空的
範例
空的
自動值
空的
數值選填
3

敘述內容的有效日期中的「日」。必須是兩位數字(DD)

預設
空的
範例
空的
自動值
空的
數值選填
其他文字alt

可在模板輸出後顯示不同的文字

預設
空的
範例
空的
自動值
空的
選填
URLurl

一個通往外部連結的網址(預設為隱藏),可讓其他編輯者前往該連結查看是否有更新資訊

預設
空的
範例
空的
自動值
空的
選填

參見