Difference between revisions of "Template:Infobox graph"

From blackwiki
Jump to navigation Jump to search
imported>Chris-martin
(Creating a new infobox)
 
imported>Bryan Derksen
(infoboxing)
Line 1: Line 1:
<includeonly><table class="wikitable" align="right" style="margin-left: 10px; width: 250px;"><!--
+
<includeonly>{{Infobox
 +
|name={{subst:PAGENAME}}
 +
|title={{{name}}}
 +
|image={{{image|}}}
 +
|caption={{{image_caption|}}}
  
--><tr><td colspan="2" bgcolor="#dddddd" style="font-weight: bold; text-align: center;">{{{name}}}</td></tr><!--
+
|label1=Named after
 +
|data1={{{namesake|}}}
 +
|label2=[[Vertex (graph theory)|Vertices]]
 +
|data2={{{vertices|}}}
 +
|label3=[[Edge (graph theory)|Edges]]
 +
|data3={{{edges|}}}
 +
|label4=[[Distance (graph theory)|Radius]]
 +
|data4={{{radius|}}}
 +
|label5=[[Distance (graph theory)|Diameter]]
 +
|data5={{{diameter|}}}
 +
|label6=[[Girth]]
 +
|data6={{{girth|}}}
 +
|label7=[[Chromatic number]]
 +
|data7={{{chromatic_number|}}}
 +
|label8=[[Chromatic index]]
 +
|data8={{{chromatic_index}}}
 +
|label9=Properties
 +
|data9={{{properties|}}}
 +
}}</includeonly><noinclude>
  
-->{{#if:{{{image|}}}|<tr><td colspan=2 style="text-align: center; padding-bottom: 10px;">{{{image}}}
+
{{documentation}}</noinclude>
{{#if: {{{image_caption|}}}|<br> {{{image_caption}}} }}</td></tr>}}<!--
 
 
 
-->{{#if:{{{namesake|}}}|<tr><td bgcolor="#eeeeee">Named after</td><td>{{{namesake}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{vertices|}}}|<tr><td bgcolor="#eeeeee">[[Vertex (graph theory)|Vertices]]</td><td>{{{vertices}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{edges|}}}|<tr><td bgcolor="#eeeeee">[[Edge (graph theory)|Edges]]</td><td>{{{edges}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{radius|}}}|<tr><td bgcolor="#eeeeee">[[Distance (graph theory)|Radius]]</td><td>{{{radius}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{diameter|}}}|<tr><td bgcolor="#eeeeee">[[Distance (graph theory)|Diameter]]</td><td>{{{diameter}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{girth|}}}|<tr><td bgcolor="#eeeeee">[[Girth]]</td><td>{{{girth}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{chromatic_number|}}}|<tr><td bgcolor="#eeeeee">[[Chromatic number]]</td><td>{{{chromatic_number}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{chromatic_index|}}}|<tr><td bgcolor="#eeeeee">[[Chromatic index]]</td><td>{{{chromatic_index}}}</td></tr>}}<!--
 
 
 
-->{{#if:{{{properties|}}}|<tr><td bgcolor="#eeeeee">Properties</td><td>{{{properties}}}</td></tr>}}<!--
 
 
 
--></table></includeonly><noinclude>{{/doc}}</noinclude>
 

Revision as of 05:26, 31 January 2008


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

Lua error in Module:Navbar at line 62: Invalid title {{subst:PAGENAME}}.[[Category:Infobox templates|Template:Remove first word]]

{{infobox graph
 | name     = 
 | image    = 
 | image_caption = 
 | namesake = 
 | vertices = n
 | edges    = n(n+1)/2
 | radius   = 
 | diameter = 1
 | girth    = 
 | automorphisms =
 | chromatic_number = 
 | chromatic_index  = 
 | genus = 
 | book thickness =
 | queue number =
 | spectrum =
 | properties = 
 | notation =
}}
  • Any of the fields can be safely left blank.
    • You may include an image with no caption, but a caption will not be shown if there is no image.
  • Wiki links [[]] are fine in any of the fields.