跳至內容

模板:Infobox weather/doc

維基百科,自由的百科全書
  • 注意:這個為兼容性保留的模板不支持「name」參數。

如有任何問題,請於討論頁提出。對於較短的形式,見下文:精簡版

  • 可選擇以英制單位公制單位輸入數據。
  • 沒有使用的參數項可刪去。
  • 所有項目是選填,locationsource(或source 1)除外。
  • 如果12個月的數據已填入,「全年」的數值會自動產生。
  • 同一行的所有數據請使用同一精確度,例如 Jan 是0 而 Feb 是0.3,則 Jan 填0.0。
  • 如果同一頁面使用多個表格,或上面有圖像或信息框,請檢查模板不會在該頁面遮蓋其它「物件」或被其它「物件」遮蓋。請使用「顯示預覽」及不同的「字體縮放」測試。如有需要,可在「氣候」章節前加上 {{Clear}},或在表格前加 <div style="width:50%;">及在表格後加 </div>。

僅填寫英制的模板

[編輯]

將自動轉換並顯示出公制數值

{{Infobox weather    <!-- 模板開始。-->
| collapsed   =  <!-- 留空或移除此參數則不摺疊模板。 -->
| open        =  <!-- 保持打开,移除之后折叠。 -->
| single_line =  <!-- 填入任何非空白值,該行在同一格顯示公制及英制單位。留空或移除此參數則分為兩行顯示。 -->
| location    =  <!-- 必填,数据提取地。 -->

| sctemp =
<!-- 歷史最高溫 -->
| Jan_REC_Hi_°F =
| Feb_REC_Hi_°F =
| Mar_REC_Hi_°F =
| Apr_REC_Hi_°F =
| May_REC_Hi_°F =
| Jun_REC_Hi_°F =
| Jul_REC_Hi_°F =
| Aug_REC_Hi_°F =
| Sep_REC_Hi_°F =
| Oct_REC_Hi_°F =
| Nov_REC_Hi_°F =
| Dec_REC_Hi_°F =
<!-- 平均高溫 -->
| Jan_Hi_°F  =
| Feb_Hi_°F  =
| Mar_Hi_°F  =
| Apr_Hi_°F  =
| May_Hi_°F  =
| Jun_Hi_°F  =
| Jul_Hi_°F  =
| Aug_Hi_°F  =
| Sep_Hi_°F  =
| Oct_Hi_°F  =
| Nov_Hi_°F  =
| Dec_Hi_°F  =
| Year_Hi_°F =
<!-- 每日平均氣溫 -->
| Jan_MEAN_°F  =
| Feb_MEAN_°F  =
| Mar_MEAN_°F  =
| Apr_MEAN_°F  =
| May_MEAN_°F  =
| Jun_MEAN_°F  =
| Jul_MEAN_°F  =
| Aug_MEAN_°F  =
| Sep_MEAN_°F  =
| Oct_MEAN_°F  =
| Nov_MEAN_°F  =
| Dec_MEAN_°F  =
| Year_MEAN_°F =
<!-- 平均低溫 -->
| Jan_Lo_°F  =
| Feb_Lo_°F  =
| Mar_Lo_°F  =
| Apr_Lo_°F  =
| May_Lo_°F  =
| Jun_Lo_°F  =
| Jul_Lo_°F  =
| Aug_Lo_°F  =
| Sep_Lo_°F  =
| Oct_Lo_°F  =
| Nov_Lo_°F  =
| Dec_Lo_°F  =
| Year_Lo_°F =
<!-- 歷史最低溫 -->
| Jan_REC_Lo_°F =
| Feb_REC_Lo_°F =
| Mar_REC_Lo_°F =
| Apr_REC_Lo_°F =
| May_REC_Lo_°F =
| Jun_REC_Lo_°F =
| Jul_REC_Lo_°F =
| Aug_REC_Lo_°F =
| Sep_REC_Lo_°F =
| Oct_REC_Lo_°F =
| Nov_REC_Lo_°F =
| Dec_REC_Lo_°F =
<!-- 總降水量 -->
| scprecip         =
| Jan_Precip_inch  =
| Feb_Precip_inch  =
| Mar_Precip_inch  =
| Apr_Precip_inch  =
| May_Precip_inch  =
| Jun_Precip_inch  =
| Jul_Precip_inch  =
| Aug_Precip_inch  =
| Sep_Precip_inch  =
| Oct_Precip_inch  =
| Nov_Precip_inch  =
| Dec_Precip_inch  =
| Year_Precip_inch =
<!-- 降雨量 -->
| scrain         =
| Jan_Rain_inch  =
| Feb_Rain_inch  =
| Mar_Rain_inch  =
| Apr_Rain_inch  =
| May_Rain_inch  =
| Jun_Rain_inch  =
| Jul_Rain_inch  =
| Aug_Rain_inch  =
| Sep_Rain_inch  =
| Oct_Rain_inch  =
| Nov_Rain_inch  =
| Dec_Rain_inch  =
| Year_Rain_inch =
<!-- 降雪量 -->
| scsnow           =
| Jan_Precip_inch  =
| Feb_Precip_inch  =
| Mar_Precip_inch  =
| Apr_Precip_inch  =
| May_Precip_inch  =
| Jun_Precip_inch  =
| Jul_Precip_inch  =
| Aug_Precip_inch  =
| Sep_Precip_inch  =
| Oct_Precip_inch  =
| Nov_Precip_inch  =
| Dec_Precip_inch  =
| Year_Precip_inch =
<!-- 每日平均相對濕度 -->
| Jan_Hum  =
| Feb_Hum  =
| Mar_Hum  =
| Apr_Hum  =
| May_Hum  =
| Jun_Hum  =
| Jul_Hum  =
| Aug_Hum  =
| Sep_Hum  =
| Oct_Hum  =
| Nov_Hum  =
| Dec_Hum  =
| Year_Hum =
<!-- 最高酷熱指數 -->
| Jan_HumD  =
| Feb_HumD  =
| Mar_HumD  =
| Apr_HumD  =
| May_HumD  =
| Jun_HumD  =
| Jul_HumD  =
| Aug_HumD  =
| Sep_HumD  =
| Oct_HumD  =
| Nov_HumD  =
| Dec_HumD  =
| Year_HumD =
<!-- 最低風寒指數 -->
| Jan_Chill  =
| Feb_Chill  =
| Mar_Chill  =
| Apr_Chill  =
| May_Chill  =
| Jun_Chill  =
| Jul_Chill  =
| Aug_Chill  =
| Sep_Chill  =
| Oct_Chill  =
| Nov_Chill  =
| Dec_Chill  =
| Year_Chill =
<!-- 平均降水日數 -->
| Unit_Precip_days =  <!-- 单位需求,如 0.01 in -->
| Jan_Precip_days  =
| Feb_Precip_days  =
| Mar_Precip_days  =
| Apr_Precip_days  =
| May_Precip_days  =
| Jun_Precip_days  =
| Jul_Precip_days  =
| Aug_Precip_days  =
| Sep_Precip_days  =
| Oct_Precip_days  =
| Nov_Precip_days  =
| Dec_Precip_days  =
| Year_Precip_days =
<!-- 平均降雨日數 -->
| Unit_Rain_days =  <!-- 单位需求,如 0.01 in -->
| Jan_Rain_days  =
| Feb_Rain_days  =
| Mar_Rain_days  =
| Apr_Rain_days  =
| May_Rain_days  =
| Jun_Rain_days  =
| Jul_Rain_days  =
| Aug_Rain_days  =
| Sep_Rain_days  =
| Oct_Rain_days  =
| Nov_Rain_days  =
| Dec_Rain_days  =
| Year_Rain_days =
<!-- 平均降雪日數 -->
| Unit_Snow_days =  <!-- 单位需求,如 0.01 in -->
| Jan_Snow_days  =
| Feb_Snow_days  =
| Mar_Snow_days  =
| Apr_Snow_days  =
| May_Snow_days  =
| Jun_Snow_days  =
| Jul_Snow_days  =
| Aug_Snow_days  =
| Sep_Snow_days  =
| Oct_Snow_days  =
| Nov_Snow_days  =
| Dec_Snow_days  =
| Year_Snow_days =
<!-- 每月平均日照時數 -->
| Jan_Sun  =
| Feb_Sun  =
| Mar_Sun  =
| Apr_Sun  =
| May_Sun  =
| Jun_Sun  =
| Jul_Sun  =
| Aug_Sun  =
| Sep_Sun  =
| Oct_Sun  =
| Nov_Sun  =
| Dec_Sun  =
| Year_Sun =
<!-- 來源,必須填寫 -->
| source = <ref name="">{{cite web |url= |title= |publisher= |access-date=10月 22, 2024 }}</ref>
<!-- 第二個來源 -->
| source 2 = <ref name="">{{cite web |url= |title= |publisher= |access-date=10月 22, 2024 }}</ref>
}}<!-- 模板結束 -->

僅填寫公制的模板

[編輯]

將自動轉換並顯示出英制數值

{{Infobox weather    <!-- 模板開始。-->
| collapsed    =  <!-- 留空或移除此參數則不摺疊模板。 -->
| open         =  <!-- 保持打开,移除之后折叠。 -->
| metric_first = yes
| single_line  =  <!-- 填入任何非空白值,該行在同一格顯示公制及英制單位。留空或移除此參數則分為兩行顯示。 -->
| location     =  <!-- 必填,数据提取地。 -->

| sctemp =
<!-- 歷史最高溫 -->
| Jan_REC_Hi_°C =
| Feb_REC_Hi_°C =
| Mar_REC_Hi_°C =
| Apr_REC_Hi_°C =
| May_REC_Hi_°C =
| Jun_REC_Hi_°C =
| Jul_REC_Hi_°C =
| Aug_REC_Hi_°C =
| Sep_REC_Hi_°C =
| Oct_REC_Hi_°C =
| Nov_REC_Hi_°C =
| Dec_REC_Hi_°C =
<!-- 平均高溫 -->
| Jan_Hi_°C  =
| Feb_Hi_°C  =
| Mar_Hi_°C  =
| Apr_Hi_°C  =
| May_Hi_°C  =
| Jun_Hi_°C  =
| Jul_Hi_°C  =
| Aug_Hi_°C  =
| Sep_Hi_°C  =
| Oct_Hi_°C  =
| Nov_Hi_°C  =
| Dec_Hi_°C  =
| Year_Hi_°C =
<!-- 每日平均氣溫 -->
| Jan_MEAN_°C  =
| Feb_MEAN_°C  =
| Mar_MEAN_°C  =
| Apr_MEAN_°C  =
| May_MEAN_°C  =
| Jun_MEAN_°C  =
| Jul_MEAN_°C  =
| Aug_MEAN_°C  =
| Sep_MEAN_°C  =
| Oct_MEAN_°C  =
| Nov_MEAN_°C  =
| Dec_MEAN_°C  =
| Year_MEAN_°C =
<!-- 平均低溫 -->
| Jan_Lo_°C  =
| Feb_Lo_°C  =
| Mar_Lo_°C  =
| Apr_Lo_°C  =
| May_Lo_°C  =
| Jun_Lo_°C  =
| Jul_Lo_°C  =
| Aug_Lo_°C  =
| Sep_Lo_°C  =
| Oct_Lo_°C  =
| Nov_Lo_°C  =
| Dec_Lo_°C  =
| Year_Lo_°C =
<!-- 歷史最低溫 -->
| Jan_REC_Lo_°C =
| Feb_REC_Lo_°C =
| Mar_REC_Lo_°C =
| Apr_REC_Lo_°C =
| May_REC_Lo_°C =
| Jun_REC_Lo_°C =
| Jul_REC_Lo_°C =
| Aug_REC_Lo_°C =
| Sep_REC_Lo_°C =
| Oct_REC_Lo_°C =
| Nov_REC_Lo_°C =
| Dec_REC_Lo_°C =
<!-- 總降水量 -->
| scprecip       =
| Jan_Precip_cm  =
| Feb_Precip_cm  =
| Mar_Precip_cm  =
| Apr_Precip_cm  =
| May_Precip_cm  =
| Jun_Precip_cm  =
| Jul_Precip_cm  =
| Aug_Precip_cm  =
| Sep_Precip_cm  =
| Oct_Precip_cm  =
| Nov_Precip_cm  =
| Dec_Precip_cm  =
| Year_Precip_cm =
<!-- 降雨量 -->
| scrain       =
| Jan_Rain_cm  =
| Feb_Rain_cm  =
| Mar_Rain_cm  =
| Apr_Rain_cm  =
| May_Rain_cm  =
| Jun_Rain_cm  =
| Jul_Rain_cm  =
| Aug_Rain_cm  =
| Sep_Rain_cm  =
| Oct_Rain_cm  =
| Nov_Rain_cm  =
| Dec_Rain_cm  =
| Year_Rain_cm =
<!-- 降雪量 -->
| scsnow         =
| Jan_Precip_cm  =
| Feb_Precip_cm  =
| Mar_Precip_cm  =
| Apr_Precip_cm  =
| May_Precip_cm  =
| Jun_Precip_cm  =
| Jul_Precip_cm  =
| Aug_Precip_cm  =
| Sep_Precip_cm  =
| Oct_Precip_cm  =
| Nov_Precip_cm  =
| Dec_Precip_cm  =
| Year_Precip_cm =
<!-- 每日平均相對濕度 -->
| Jan_Hum  =
| Feb_Hum  =
| Mar_Hum  =
| Apr_Hum  =
| May_Hum  =
| Jun_Hum  =
| Jul_Hum  =
| Aug_Hum  =
| Sep_Hum  =
| Oct_Hum  =
| Nov_Hum  =
| Dec_Hum  =
| Year_Hum =
<!-- 最高酷熱指數 -->
| Jan_HumD  =
| Feb_HumD  =
| Mar_HumD  =
| Apr_HumD  =
| May_HumD  =
| Jun_HumD  =
| Jul_HumD  =
| Aug_HumD  =
| Sep_HumD  =
| Oct_HumD  =
| Nov_HumD  =
| Dec_HumD  =
| Year_HumD =
<!-- 最低風寒指數 -->
| Jan_Chill  =
| Feb_Chill  =
| Mar_Chill  =
| Apr_Chill  =
| May_Chill  =
| Jun_Chill  =
| Jul_Chill  =
| Aug_Chill  =
| Sep_Chill  =
| Oct_Chill  =
| Nov_Chill  =
| Dec_Chill  =
| Year_Chill =
<!-- 平均降水日數 -->
| Unit_Precip_days =  <!-- 单位需求,如 0.01 in -->
| Jan_Precip_days  =
| Feb_Precip_days  =
| Mar_Precip_days  =
| Apr_Precip_days  =
| May_Precip_days  =
| Jun_Precip_days  =
| Jul_Precip_days  =
| Aug_Precip_days  =
| Sep_Precip_days  =
| Oct_Precip_days  =
| Nov_Precip_days  =
| Dec_Precip_days  =
| Year_Precip_days =
<!-- 平均降雨日數 -->
| Unit_Rain_days =  <!-- 单位需求,如 0.01 in -->
| Jan_Rain_days  =
| Feb_Rain_days  =
| Mar_Rain_days  =
| Apr_Rain_days  =
| May_Rain_days  =
| Jun_Rain_days  =
| Jul_Rain_days  =
| Aug_Rain_days  =
| Sep_Rain_days  =
| Oct_Rain_days  =
| Nov_Rain_days  =
| Dec_Rain_days  =
| Year_Rain_days =
<!-- 平均降雪日數 -->
| Unit_Snow_days =  <!-- 单位需求,如 0.01 in -->
| Jan_Snow_days  =
| Feb_Snow_days  =
| Mar_Snow_days  =
| Apr_Snow_days  =
| May_Snow_days  =
| Jun_Snow_days  =
| Jul_Snow_days  =
| Aug_Snow_days  =
| Sep_Snow_days  =
| Oct_Snow_days  =
| Nov_Snow_days  =
| Dec_Snow_days  =
| Year_Snow_days =
<!-- 每月平均日照時數 -->
| Jan_Sun  =
| Feb_Sun  =
| Mar_Sun  =
| Apr_Sun  =
| May_Sun  =
| Jun_Sun  =
| Jul_Sun  =
| Aug_Sun  =
| Sep_Sun  =
| Oct_Sun  =
| Nov_Sun  =
| Dec_Sun  =
| Year_Sun =
<!-- 來源,必須填寫 -->
| source = <ref name="">{{cite web |url= |title= |publisher= |access-date=5月 21, 2016 }}</ref>
<!-- 第二個來源 -->
| source 2 = <ref name="">{{cite web |url= |title= |publisher= |access-date=5月 21, 2016 }}</ref>
}}<!-- 模板結束 -->

查看和編輯鏈接

[編輯]

When this template is used in template space, it may be desirable to provide view and edit links to the template (similar to a navbox). This can be be accomplished by setting the name parameter to be the name of the template.

| name = {{subst:PAGENAME}}

精簡版

[編輯]

精簡版模板:

  • {{Infobox weather/concise C}} - 如果只想填入12個月的平均高溫、平均低溫和降水量並顯示為攝氏度和毫米,可以用此精簡版模板。
  • {{Infobox weather/concise F}} - 如果只想填入12個月的平均高溫、平均低溫和降水量並顯示為華氏度和英寸,可以用此精簡版模板。

類似模板

[編輯]