Difference between revisions of "Template:Infobox polyhedron"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (replace {{PAGENAME}} with {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title, using AWB)
imported>Zackmann08
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox
 
| bodyclass  =  
 
| bodyclass  =  
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
+
| above      = {{{name|{{PAGENAMEBASE}}}}}
 
| abovestyle = background:#e7dcc3
 
| abovestyle = background:#e7dcc3
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Image_File|}}}}}}|size=frameless|upright=1.0|alt={{{alt|}}}}}
 
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Image_File|}}}}}}|size=frameless|upright=1.0|alt={{{alt|}}}}}
Line 7: Line 7:
 
| headerstyle = background:#e7dcc3
 
| headerstyle = background:#e7dcc3
 
| label1    = Type
 
| label1    = Type
| data1      = {{{type|{{{Polyhedron_Type|}}}}}}
+
| data1      = {{{type|{{{Polyhedron_Type|{{{Type|}}}}}}}}}
 
| label2    = [[Face (geometry)|Faces]]
 
| label2    = [[Face (geometry)|Faces]]
 
| data2      = {{{faces|{{{Face_List|}}}}}}
 
| data2      = {{{faces|{{{Face_List|}}}}}}
Line 21: Line 21:
 
| data7      = {{{wythoff|{{{Wythoff_Symbol|}}}}}}
 
| data7      = {{{wythoff|{{{Wythoff_Symbol|}}}}}}
 
| label8    = [[Schläfli symbol]]
 
| label8    = [[Schläfli symbol]]
| data8      = {{{schläfli|}}}
+
| data8      = {{{schläfli|{{{Schläfli|}}}}}}
 
| label9    = [[Coxeter diagram]]
 
| label9    = [[Coxeter diagram]]
| data9      = {{{coxeter|}}}
+
| data9      = {{{coxeter|{{{Coxeter|{{{Cox|}}}}}}}}}
 
| label10    = [[List of spherical symmetry groups|Symmetry group]]
 
| label10    = [[List of spherical symmetry groups|Symmetry group]]
 
| data10    = {{{symmetry|{{{Symmetry_Group|}}}}}}
 
| data10    = {{{symmetry|{{{Symmetry_Group|}}}}}}
Line 36: Line 36:
 
| label15    = [[Dual polyhedron]]
 
| label15    = [[Dual polyhedron]]
 
| data15    = {{{dual|{{{Dual|}}}}}}
 
| data15    = {{{dual|{{{Dual|}}}}}}
| label16    = Properties
+
| label16 = [[Face configuration]]
| data16     = {{{properties|{{{Property_List|}}}}}}
+
| data16 = {{{Face_Type|}}}
| header17   = {{#if:{{{vertex_figure|{{{VertexImage_File|}}}}}}|[[Vertex figure]]}}
+
| label17   = Properties
| data18    = {{#invoke:InfoboxImage|InfoboxImage|image={{{vertex_figure|{{{VertexImage_File|}}}}}}|size=frameless|upright=0.8|alt={{{vertex_figure_alt|}}}}}
+
| data17     = {{{properties|{{{Property_List|}}}}}}
| header19   = {{#if:{{{net|{{{Net_Image_File|}}}}}}|[[Net (polyhedron)|Net]]}}
+
| header18   = {{#if:{{{vertex_figure|{{{VertexImage_File|}}}}}}|[[Vertex figure]]}}
| data20     = {{#invoke:InfoboxImage|InfoboxImage|image={{{net|{{{Net_Image_File|}}}}}}|size=frameless|upright=1.27|alt={{{net_alt|}}}}}
+
| data19    = {{#invoke:InfoboxImage|InfoboxImage|image={{{vertex_figure|{{{VertexImage_File|}}}}}}|size=frameless|upright=0.8|alt={{{vertex_figure_alt|}}}}}
}}<noinclude>
+
| header20   = {{#if:{{{net|{{{Net_Image_File|}}}}}}|[[Net (polyhedron)|Net]]}}
 +
| data21     = {{#invoke:InfoboxImage|InfoboxImage|image={{{net|{{{Net_Image_File|}}}}}}|size=frameless|upright=1.27|alt={{{net_alt|}}}}}
 +
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
 
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 23:46, 8 January 2017

Template documentation[view] [edit] [history] [purge]

Usage

{{Infobox polyhedron
| name          = 
| image         = only image file name
| caption       = image caption
| type          = general type of this shape
| euler         = Euler characteristic
| faces         = face count and types
| edges         = edge count
| vertices      = vertex count
| vertex_config = list faces around a vertex
| schläfli      = schläfli symbol
| wythoff       = wythoff symbol
| coxeter       = Coxeter-Dynkin diagram
| symmetry      = symmetry group
| surface_area  = some simple formula(e)
| volume        = some simple formula(e)
| angle         = dihedral angle
| dual          = dual polyhedron of this shape
| properties    =
| vertex_figure = only image file name
| net           = only image file name
}}


Legacy parameters

  • Image_File → image
  • Polyhedron_Type → type
  • Euler_characteristic → euler
  • Face_List → faces
  • Edge_Count → edges
  • Vertex_Count → vertices
  • Vertex_List → vertex_config
  • Wythoff_Symbol → wythoff
  • Symmetry_Group → symmetry
  • Dual → dual
  • Property_List → properties
  • VertexImage_File → vertex_figure
  • Net_Image_File → net

Examples

Set of pyramidal frustums
Pentagonal frustum.svgUsech kvadrat piramid.png
Examples: Pentagonal and square frustum
Facesn trapezoids, 2 n-gons
Edges3n
Vertices2n
Symmetry groupCnv, [1,n], (*nn)
Propertiesconvex
[[Category:Infobox templates|Template:Remove first word]]

The code below results in the infobox on the right:

{{Infobox polyhedron
| name          = Set of pyramidal frustums
| image         = [[File:Pentagonal frustum.svg|110px]][[Image:Usech kvadrat piramid.png|110px]]
| type          =
| caption       = Examples: Pentagonal and square frustum
| faces         = ''n'' [[trapezoid]]s, 2 [[polygon|''n''-gons]]
| edges         = 3''n''
| vertices      = 2''n''
| symmetry      = [[Symmetry group#Three dimensions|C<sub>''n''v</sub>]], [1,''n''], (*''nn'')
| dual          = 
| properties    = convex
}}

See also

Template:Polyhedron templates

eo:Ŝablono:Hiperpluredro mk:Шаблон:Инфокутија Полиедар sk:Šablóna:Infobox mnohosten zh:Template:Infobox polyhedron