Template:Infobox polyhedron/doc

来自testwiki
imported>A25698752024年4月30日 (二) 14:09的版本 歐拉示性數
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

Template:Template doc page viewed directly Template:Tracks Wikidata

使用方法

{{Infobox polyhedron
| name          = 
| image file    = 圖片的名稱file name
| caption       = 圖片的說明
| type          = 形狀的種類
| faces         = 面的數量
| edges         = 邊的數量
| vertices      = 頂點的數量
| variable      = 面數、邊數或頂點數中的變量
| variable_dest = 變量的說明
| Face_List     = 面的種類
| vertex_config = 有哪些面在頂點周圍
| schläfli      = 施萊夫利符號
| wythoff       = 威佐夫記號
| coxeter       = 考克斯特記號
| symmetry      = 對稱群
| surface_area  = 表面積公式
| volume        = 體積公式
| angle         = 二面角
| dual          = 這個形狀對應的對偶形狀
| properties    = 這個形狀的特性
| vertex_figure = 頂點圖的file name
| net           = 展開圖的file name
}}

歐拉示性數

歐拉示性數可以自動計算。要使用此功能,需要在Template:0|faces=Template:0輸入面數、Template:0|edges=Template:0輸入邊數、Template:0|vertices =Template:0輸入頂點數來完成。請注意使用此功能時,請將三個參數都輸入數值,否則可能會出現錯誤。目前這類條目會被分入Category:欧拉示性数填写不完整的形状条目中。

若面數、邊數或頂點數為變數,請將之以多項式表示。會自動輸出於<math></math>中。若希望乘號被省略,請使用Template:0Template:0作為乘號;若希望分數顯示為ab,請使用div(a,b)來表示(詳細使用方法可參考Template:計算結果/doc#語法以及Template:複變運算/doc#語法)。同時僅要在參數Template:0|variable=Template:0中輸入表達式中的變數即可;若變數有多個,可使用Template:0|variable2=Template:0Template:0|variable3=Template:0來輸入;同時可以輸入Template:0|variable_dest=Template:0來讓模板自動生成變數說明。

維基數據

本模板會自動根據該頁的維基數據項目自動地填入部分的欄位。如某欄位已有輸入資料,則會以輸入到模板參數的資料優先。

如同一個條目介紹了多個多面體因而有多個資訊框時,可以在參數Template:Para中輸入對應的維基數據項目來讓模板填入的資料是匹配的。如該多面體沒有維基數據項目,請在參數Template:Para填入NoEntity

範例

Template:Infobox polyhedron

{{Infobox polyhedron
| name          = 角錐台
| image         = [[File:Pentagonal frustum.svg|110px]][[Image:Usech kvadrat piramid.png|110px]]
| type          = [[擬柱體]]
| caption       = 範例: 五角錐台與四角錐台
| Face_List     = n個[[梯形]]<br/>2個[[多邊形|n邊形]]
| faces         = n
| edges         = 3⋅n
| vertices      = 2⋅n
| variable      = n
| variable_dest = 底面邊數
| symmetry      = C<sub>''n''v</sub>, [1,''n''], (*''nn'')
| dual          = [[雙錐體]]
| properties    = 凸
}}

模板數據

Template:TemplateDataHeader <templatedata> { "params": { "name": { "label": "名稱", "type": "string" }, "polyhedron": { "label": "多面體名稱", "type": "string" }, "WikidataID": { "label": "維基數據項目", "type": "string" }, "Custom image": { "aliases": [ "image" ], "label": "自定義圖片", "type": "content" }, "Image_File": { "aliases": [ "image file", "imagename" ], "label": "圖片名稱", "type": "wiki-file-name" }, "rotating": { "label": "旋轉模型圖片名稱", "type": "wiki-file-name" }, "rinfo": { "label": "旋轉模型資訊", "type": "string" }, "caption": { "label": "圖片說明", "type": "content" }, "Polyhedron_Type": { "aliases": [ "Polyhedron_type", "type" ], "label": "多面體類型", "type": "content" }, "construct": { "label": "多面體構造方式", "type": "content" }, "Dual": { "aliases": [ "dual" ], "label": "對偶多面體", "type": "content" }, "Petrie dual": { "label": "皮特里對偶", "type": "content" }, "original": { "label": "原像", "type": "content" }, "other_name": { "label": "別名", "type": "content" }, "Index_references": { "label": "參考索引", "type": "content" }, "Bowers_acronym": { "label": "鮑爾斯縮寫", "type": "content" }, "identifier_other": { "label": "其他表示法相關資訊", "type": "content" }, "lang_name": { "label": "其他語言名稱", "type": "string" }, "en_name": { "label": "英語名稱", "type": "string" }, "Index_references_ref": { "label": "參考索引參考文獻", "type": "content" }, "Coxeter_diagram": { "aliases": [ "coxeter", "Coxeter", "Cox" ], "label": "考克斯特-迪肯符號", "type": "content" }, "Duval": { "label": "杜瓦表示法", "type": "string" }, "Schlafli": { "aliases": [ "schläfli", "Schläfli" ], "label": "施萊夫利符號", "type": "content" }, "Wythoff": { "aliases": [ "wythoff", "Wythoff_Symbol" ], "label": "威佐夫符號", "type": "content" }, "Conway": { "label": "康威多面體表示法", "type": "content" }, "formula_other": { "label": "其他數學式相關資訊" }, "Cell_Count": { "aliases": [ "Cell", "Cell_count", "cells" ], "label": "胞的數量", "type": "string" }, "FaceT": { "label": "面數欄位顯示文字", "type": "content" }, "Face_Count": { "aliases": [ "Face_count", "Face", "faces" ], "label": "面的數量", "type": "string" }, "EdgeT": { "label": "邊數欄位顯示文字", "type": "content" }, "Edge_Count": { "aliases": [ "Edge", "Edge_count", "edges" ], "label": "邊的數量", "type": "string" }, "VerticeT": { "label": "頂點數欄位顯示文字", "type": "content" }, "Vertex_Count": { "aliases": [ "vertices", "Vertex_count", "Vertice" ], "label": "頂點的數量", "type": "string" }, "Euler": { "aliases": [ "EulerText", "euler", "Euler_characteristic" ], "label": "歐拉特徵數", "type": "content" }, "Euler2": { "label": "自訂歐拉特徵數顯示", "type": "content" }, "Genu": { "label": "虧格", "type": "content" }, "Dihedral_angle": { "aliases": [ "angle" ], "label": "二面角", "type": "content" }, "surface_area": { "label": "表面積", "type": "content" }, "volume": { "label": "體積", "type": "content" }, "property_other": { "label": "其他性質相關資訊", "type": "content" }, "Compound_Count": { "aliases": [ "Compound_count", "compounds" ], "label": "元件結合方式數量", "type": "string" }, "variable": { "label": "變數名稱", "description": "面數、邊數或頂點數參數中的變數名稱", "type": "string" }, "base": { "label": "底面", "type": "content" }, "Petrie": { "label": "皮特里多邊形", "type": "content" }, "van_Oss": { "aliases": [ "van Oss", "van_oss", "van oss" ], "label": "梵奧斯截面", "type": "content" }, "face_other": { "label": "其他特殊面相關資訊", "type": "content" }, "Vertice_configuration": { "aliases": [ "vertex_config" ], "label": "頂點佈局", "type": "content" }, "Vertex_type": { "aliases": [ "Vertices_by_type", "Vertex_List" ], "label": "頂點的種類", "type": "content" }, "Face_type": { "aliases": [ "Face_List" ], "label": "面的種類", "type": "content" }, "Cell_type": { "aliases": [ "Cell_List" ], "label": "胞的種類", "type": "content" }, "Face_configuration": { "label": "面的佈局", "type": "content" }, "Cell_configuration": { "label": "胞的佈局", "type": "content" }, "Compound_type": { "label": "元件結合的幾何體種類", "type": "content" }, "Configuration_matrix": { "label": "佈局矩陣", "type": "content" }, "Edge_type": { "aliases": [ "Edge_List" ], "label": "邊的種類" }, "combine method": { "label": "元件結合方式", "type": "content" }, "Configuration_other": { "label": "其他組成與佈局相關資訊", "type": "content" }, "combine method label": { "label": "元件結合方式文字", "description": "對應元件結合方式數量", "type": "content" }, "Symmetry_group": { "aliases": [ "Symmetry_Group", "Symmetry Group", "symmetry" ], "label": "空間對稱群", "type": "content" }, "Rotation_group": { "aliases": [ "Rotation Group", "rotation_group", "rotsymmetry" ], "label": "旋轉對稱群", "type": "content" }, "Shephard_group": { "label": "謝潑德群", "type": "content" }, "symmetry_other": { "label": "其他對稱群相關資訊", "type": "content" }, "Subgroup": { "label": "子群", "type": "content" }, "Properties": { "aliases": [ "properties", "Property_List" ], "label": "特性", "type": "content" }, "elseimage": { "label": "其他圖像" }, "3d_image": { "label": "立體圖", "type": "wiki-file-name" }, "3d_image_info": { "label": "立體圖說明", "type": "string" }, "vfigimage": { "aliases": [ "vertex_figure" ], "label": "頂點圖圖片", "type": "wiki-file-name" }, "dual_image": { "label": "對偶圖像", "type": "wiki-file-name" }, "net_image": { "aliases": [ "Net_Image_File", "net" ], "label": "展開圖", "type": "wiki-file-name" }, "Truncation": { "label": "相關截角多面體", "type": "content" }, "Rectification": { "label": "相關截半多面體", "type": "content" }, "Kleetope": { "label": "相關克利多面體", "type": "content" }, "Kleetope sides": { "label": "相關克利多面體邊數", "type": "number" }, "Kleetope comment": { "label": "相關克利多面體標題說明", "type": "string" }, "variable_dest": { "label": "變數意義", "type": "content" }, "vertex figure type": { "aliases": [ "Vertice_type", "vertex_figure_type" ], "label": "頂點圖", "type": "content" } }, "description": "多面體的Infobox", "paramOrder": [ "name", "polyhedron", "en_name", "lang_name", "other_name", "WikidataID", "Custom image", "Image_File", "rotating", "rinfo", "caption", "Polyhedron_Type", "construct", "Dual", "Petrie dual", "original", "Index_references", "Bowers_acronym", "identifier_other", "Index_references_ref", "Coxeter_diagram", "Duval", "Schlafli", "Wythoff", "Conway", "formula_other", "Cell_Count", "FaceT", "Face_Count", "EdgeT", "Edge_Count", "VerticeT", "Vertex_Count", "variable", "variable_dest", "Euler", "Euler2", "Genu", "Dihedral_angle", "surface_area", "volume", "property_other", "base", "Petrie", "van_Oss", "face_other", "combine method label", "Compound_Count", "Compound_type", "combine method", "Cell_type", "Cell_configuration", "Face_type", "Face_configuration", "Edge_type", "Vertex_type", "Vertice_configuration", "vertex figure type", "Configuration_matrix", "Configuration_other", "Symmetry_group", "Subgroup", "Shephard_group", "Rotation_group", "symmetry_other", "Properties", "elseimage", "3d_image", "3d_image_info", "vfigimage", "dual_image", "net_image", "Truncation", "Rectification", "Kleetope", "Kleetope sides", "Kleetope comment" ], "format": "block" } </templatedata> Template:Clear

編輯說明

本模板採用不定數量的Template:ParaTemplate:Para參數,因此模板主內容位於Template:Tl,本頁僅負責調用。 Template:幾何體訊息模板