Difference between revisions of "Template:Infobox polyhedron"

From blackwiki
Jump to navigation Jump to search
imported>Tomruen
imported>Tomruen
Line 3: Line 3:
 
| above      = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
 
| above      = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
 
| abovestyle = background:#e7dcc3
 
| abovestyle = background:#e7dcc3
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Image_File|}}}}}}|size=frameless|upright=1.27|alt={{{alt|}}}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Image_File|}}}}}}|size=frameless|upright=1.0|alt={{{alt|}}}}}
 
| caption    = {{{caption|}}}
 
| caption    = {{{caption|}}}
 
| headerstyle = background:#e7dcc3
 
| headerstyle = background:#e7dcc3
Line 39: Line 39:
 
| data16    = {{{properties|{{{Property_List|}}}}}}
 
| data16    = {{{properties|{{{Property_List|}}}}}}
 
| header17  = {{#if:{{{vertex_figure|{{{VertexImage_File|}}}}}}|[[Vertex figure]]}}
 
| header17  = {{#if:{{{vertex_figure|{{{VertexImage_File|}}}}}}|[[Vertex figure]]}}
| data18    = {{#invoke:InfoboxImage|InfoboxImage|image={{{vertex_figure|{{{VertexImage_File|}}}}}}|size=frameless|upright=1.1|alt={{{vertex_figure_alt|}}}}}
+
| data18    = {{#invoke:InfoboxImage|InfoboxImage|image={{{vertex_figure|{{{VertexImage_File|}}}}}}|size=frameless|upright=0.8|alt={{{vertex_figure_alt|}}}}}
 
| header19  = {{#if:{{{net|{{{Net_Image_File|}}}}}}|[[Net (polyhedron)|Net]]}}
 
| header19  = {{#if:{{{net|{{{Net_Image_File|}}}}}}|[[Net (polyhedron)|Net]]}}
 
| data20    = {{#invoke:InfoboxImage|InfoboxImage|image={{{net|{{{Net_Image_File|}}}}}}|size=frameless|upright=1.27|alt={{{net_alt|}}}}}
 
| data20    = {{#invoke:InfoboxImage|InfoboxImage|image={{{net|{{{Net_Image_File|}}}}}}|size=frameless|upright=1.27|alt={{{net_alt|}}}}}

Revision as of 04:08, 12 June 2015

[[Category:Infobox templates|Template:Remove first word]]

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