แม่แบบ:กล่องข้อมูล เหตุการณ์สภาพอากาศ/อุตุนิยมวิทยา/ข้อมูลแม่แบบ
การใช้งาน
ใช้สิ่งนี้กับหน้าเอกสารของแม่แบบที่จะใช้แม่แบบนี้
== TemplateData ==
{{#tag: templatedata | {{Infobox weather event/meteorology/TemplateData | description = Box. }} }}
ใช้แม่แบบตามที่ต้องการ
ข้อมูลแม่แบบ
ข้อมูลแม่แบบ-การรับ.
แม่แบบ-เมต้า ใช้สำหรับข้อมูลแม่แบบของกล่องย่อยที่เกี่ยวข้องกับอุตุนิยมวิทยา
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
คำอธิบาย | description | คำอธิบายที่กำหนดเองเพื่อใช้ | สตริง | แนะนำ |
พารามิเตอร์พิเศษ | extra-parameters | พารามิเตอร์เพิ่มเติมในรูปแบบ JSON | สตริง | แนะนำ |
มาตราส่วนสภาพอากาศของพายุหมุนเขตร้อน ? | tc-scale | 'จริง' เพราะพารามิเตอร์ส่วนหัวจะถูกลบออก หมวดหมู่ ขนาด และเอเจนซี่จะถูกลบออก (เว้นแต่จะเปิดใช้งานด้วยพารามิเตอร์ 'เมต้า') และจะแสดงเฉพาะข้อมูลลม ลมกระโชก ความกดอากาศ และแรงโบฟอร์ตเท่านั้น | ตรรกะ | แนะนำ |
มีการบังคับใส่ข้อมูลทั้งหมดไหม ? | force-all-data | 'จริง' เพราะพารามิเตอร์ที่เกี่ยวข้องกับหิมะ และปริมาณน้ำฝนจะรวมอยู่ด้วย ไม่ว่านี่จะเป็นกล่องมาตราส่วนของพายุหมุนเขตร้อน หรือไม่ก็ตาม | ตรรกะ | แนะนำ |
ไม่มีมาตราส่วน ? | no-scale | 'จริง' เพราะพารามิเตอร์หมวดหมู่ และลุ่มน้ำจะถูกปิดใช้งาน นอกจากนี้ ยังเปิดใช้งานพารามิเตอร์สไตล์ส่วนหัว และส่วนหัวด้วย | ตรรกะ | แนะนำ |
มีแอ่งไหม ? | has-basin | ควรเป็น 'จริง' เพราะทุกครั้งที่กล่องย่อยจะมีแอ่ง ซึ่งอาจใช้สำหรับหน่วยงาน เช่น มาตราส่วน SSHWS (ซึ่งจะต้องเปลี่ยนชื่อในแอ่งโดยที่ SSHWS ไม่ใช่มาตราส่วน RSMC) | ตรรกะ | แนะนำ |
แม่แบบเมต้า ? | meta | 'จริง' เพราะแม่แบบจะถือเป็นแม่แบบเมต้า (แม่แบบที่เป็นฐานของกล่องย่อยอื่น ๆ) พารามิเตอร์หมวดหมู่ หน่วยงาน และขนาดจะปรากฏขึ้น | ตรรกะ | แนะนำ |
ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ หน้าย่อยของแม่แบบนี้ |
{
"params": {
"child": {
"label": "Child display?",
"description": "Whether this is a child box or not. Use `yes`, unless you're using this box standalone.",
"example": "yes",
"type": "boolean",
"default": "yes"
},
"bodystyle": {
"label": "Body style",
"description": "Custom CSS for the box",
"type": "string",
"default": "border-collapse: collapse"
},
"category": {
"label": "Storm category",
"description": "The storm category. This populates the header color and name automatically.",
"type": "string",
"suggested": true
},
"basin": {
"label": "Basin",
"description": "Basin of the storm. Controls the name of the category, if the category supports basin-specific names.",
"type": "string",
"suggestedvalues": [
"atl",
"epac",
"satl",
"wpac"
]
},
"header": {
"label": "Header text",
"description": "Header text to show. Overrides category name if provided.",
"type": "content"
},
"header-style": {
"label": "Header style",
"description": "Controls the style of the subbox header. This header usually includes the category of the storm or the storm type, if a category is not applicable.",
"type": "string",
"default": "font-size: 100%; background-color: #{{Storm colour|{{{category|}}}}}"
},
"no-header": {
"label": "No header?",
"description": "Disables the header row",
"example": "yes",
"type": "boolean",
"default": "no"
},
"subheader": {
"label": "Subheader text",
"description": "Subheader text to show. Overrides interval, scale, and agency, if provided.",
"type": "content"
},
"interval": {
"label": "Measurement interval",
"description": "The measurement interval used by the agency. e.g. JMA uses 10-minute, JTWC uses 1-minute.",
"example": "1",
"type": "number",
"suggested": true
},
"post-interval": {
"aliases": [
"postinterval"
],
"label": "Post-interval text",
"description": "Text to add after \"N-minute sustained\". A space is automatically provided.",
"type": "string"
},
"agency": {
"label": "Agency",
"description": "Agency issuing the meteorological data. If the agency uses multiple scales, or uses a scale that is used by multiple agencies, consider also supplying \"scale\".",
"example": "[[National Weather Service|NWS]]",
"type": "content",
"suggested": true
},
"scale": {
"label": "Scale",
"description": "Scale used to quantify the meteorological data. If the scale is used by multiple agencies, consider supplying \"agency\".",
"example": "[[Saffir–Simpson scale|SSHWS]]",
"type": "content",
"suggested": true
},
"winds": {
"label": "Maximum sustained winds",
"description": "The maximum sustained winds of a given storm. Not to be confused with maximum wind gusts (provided with \"gusts\"). Supply value in knots.",
"example": "124",
"type": "number",
"suggested": true
},
"winds-prefix": {
"label": "Maximum winds prefix",
"description": "Prefix for the maximum sustained winds. Use this to add approximation symbols, such as '~', '<', or '>'.",
"example": "~",
"type": "string"
},
"winds-suffix": {
"label": "Maximum winds suffix",
"description": "Suffix for the maximum sustained winds. Use this to add references, footnotes, or other content.",
"type": "content"
},
"gusts": {
"label": "Maximum wind gust",
"description": "The maximum wind gust of a given storm. Not to be confused with maximum sustained winds (provided with \"winds\"). Supply value in knots.",
"example": "164",
"type": "number",
"suggested": true
},
"gusts-prefix": {
"label": "Maximum gusts prefix",
"description": "Prefix for the maximum wind gusts. Use this to add approximation symbols, such as '~', '<', or '>'.",
"example": "~",
"type": "string"
},
"gusts-suffix": {
"label": "Maximum gusts suffix",
"description": "Suffix for the maximum wind gusts. Use this to add references, footnotes, or other content.",
"type": "content"
},
"beaufort-scale": {
"aliases": [
"beaufort scale"
],
"label": "Beaufort scale",
"description": "The maximum sustained winds on the Beaufort scale. Rarely used except for historical storms; consider using \"winds\" instead.",
"type": "number"
},
"pressure": {
"label": "Lowest pressure",
"description": "Lowest pressure, usually measured near the storm's center. Supply value in hectopascals/millibars (hPa/mbar).",
"example": "975",
"type": "number",
"suggested": true
},
"pressure-prefix": {
"label": "Lowest pressure prefix",
"description": "Prefix for the pressure. Use this to add approximation symbols, such as '~', '<', or '>'.",
"example": "~",
"type": "string"
},
"pressure-suffix": {
"label": "Lowest pressure suffix",
"description": "Suffix for the lowest pressure. Use this to add references, footnotes, or other content.",
"type": "content"
}
,
"lowest-temperature": {
"aliases": [
"lowest temperature"
],
"label": "Lowest temperature",
"description": "Lowest temperature. Supply value in Fahrenheit when \"basin\" is \"atl\" or \"epac\". Otherwise, supply the value in Celcius.",
"example": "13",
"type": "number",
"suggested": true
},
"temperature-prefix": {
"label": "Lowest temperature prefix",
"description": "Prefix for the temperature. Use this to add approximation symbols, such as '~', '<', or '>'.",
"example": "~",
"type": "string"
},
"temperature-suffix": {
"label": "Lowest temperature suffix",
"description": "Suffix for the lowest recorded temperature. Use this to add references, footnotes, or other content.",
"type": "content"
},
"largest-hail": {
"aliases": [
"largest hail"
],
"label": "Largest hail",
"description": "Largest recorded size of hail. Supply value in inches when \"basin\" is \"atl\" or \"epac\". Otherwise, supply the value in centimeters.",
"example": "12",
"type": "number"
},
"largest-hail-suffix": {
"label": "Largest hail suffix",
"description": "Suffix for the largest hail recorded. Use this to add references, footnotes, or other content.",
"type": "content"
},
"maximum-rain": {
"aliases": [
"maximum rain"
],
"label": "Maximum rainfall",
"description": "Maximum recorded rainfall. Supply value in inches when \"basin\" is \"atl\" or \"epac\". Otherwise, supply the value in centimeters.",
"example": "42",
"type": "number"
},
"maximum-rain-suffix": {
"label": "Maximum rainfall suffix",
"description": "Suffix for the maximum recorded rainfall. Use this to add references, footnotes, or other content.",
"type": "content"
},
"maximum-snow": {
"aliases": [
"maximum snow"
],
"label": "Maximum snow or ice accretion",
"description": "Maximum height of accumulated snow or ice accretion. Supply value in inches when \"basin\" is \"atl\" or \"epac\". Otherwise, supply the value in centimeters.",
"type": "content"
},
"maximum-snow-suffix": {
"label": "Maximum snow accumulation or ice accretion suffix",
"description": "Suffix for the maximum recorded snow accumulation or ice accretion. Use this to add references, footnotes, or other content."
}
},
"description": "A subbox for displaying meteorological information for a storm. Should be used adjacent to an 'Infobox weather event' template, and before an 'Infobox weather event/Footer' template. ",
"format": "block"
}