User:Kalevala/sandbox1
This article is currently undergoing a major expansion or revamping by the author who placed this notice here. However, you are free to help in the construction of this page by improving it—use the talk page to do so. Please review the edit history if you would like to see whether the page is still being worked on. If the editor who placed this notice has not made any changes in a while, please contact the editor or, if they're inactive, remove this template. |
The Sub-Templates of the Chart Template[edit]
These sub-templates are paired to draw the lines of connection between boxes in a chart. Each member of the pair is responsible for drawing two adjacent cells within a drawing table. The sub-template ending in a 't' draws the top two cells within a row of the drawing table. The sub-template ending in a 'b' draws the bottom two cells in the row of the drawing table immediately below the top two. Here we see two templates working together to draw a single square chart element (the up-side down T-shape) in a simplified drawing table. The templates are {{ Chart/cell^t }} and {{ Chart/cell^b }}.
Draw T-Up | Left | Right | |
---|---|---|---|
Top | |||
Bottom |
Each of the small lines within a drawing is formed by coloring in borders of the four cells in the drawing table. A close look here reveals a small gap in the horizontal line as it is being formed by adjacent drawing table cells in the top row.
There are 58 possible lines of connection used in a chart. There are 11 solid, 11 dashed, 11 dotted, 10 mixed dashed, 10 mixed dotted, four arrows and 1 blank. They require 116 sub-templates. Each shape being formed by two sub-template calls each using a single common character in their sub-template name. The user of the Chart template enters that character for the shape just once. It is inserted as a value after the pipe '|' parameter token. The chart template syntax looks like this: {{ chart| | | |^ | | ... }}.
Further documentation of the chart template is here.