Template:Chart top/doc: Difference between revisions

→‎See also: Add tracking
(Demoted sections)
 
imported>Plastikspork
(→‎See also: Add tracking)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
This was created to allow for the width of ancestry boxes to adapt if there is a tall thumbnail to the right. Put it and {{Tlx|Chart bottom}} on separate lines from the Chart template they wrap around.
This was created to allow for the width of ancestry boxes to adapt if there is a tall thumbnail to the right. Put it and {{Tlx|Chart bottom}} on separate lines from the Chart template they wrap around.


=== Options ===
== Options ==
; {{Tlx|Chart top}}
; {{Tlx|Chart top}}
: by default, shows <code>Family of X</code> where <code>X</code> is the name of the article
: by default, shows <code>Family of X</code> where <code>X</code> is the name of the article
Line 11: Line 11:
; {{Template link expanded|Chart top|2=background=''yellow''}}
; {{Template link expanded|Chart top|2=background=''yellow''}}
: to add a named color to the title.
: to add a named color to the title.
:: Use "nowiki" tags around hexcolors: <code>background=<nowiki><</nowiki>nowiki>#ccddff</nowiki></code>
; {{Tlx|Chart top|2=width=''100%''}}
; {{Tlx|Chart top|2=width=''100%''}}
: to change the width of the table
: to change the width of the table
Line 20: Line 19:
:: note: width=100% typically will (in most cases) force the table to use the full page width, and push the table below floating elements)
:: note: width=100% typically will (in most cases) force the table to use the full page width, and push the table below floating elements)


=== Show/hide ===
== Show/hide ==
This template will show a collapsed (fully-closed) version of the enclosed Chart when first seen on the page, with a "(show)" option for the reader. To show the reader on first sight an uncollapsed Chart, with a title bar with a "(hide)" option, add <code>|collapsed=no</code>.
This template will show a collapsed (fully-closed) version of the enclosed Chart when first seen on the page, with a "(show)" option for the reader. To show the reader on first sight an uncollapsed Chart, with a title bar with a "(hide)" option, add <code>|collapsed=no</code>.


=== Size warning ===
== Size warning ==
Remember "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections.", per [[MOS:ACCESS#Font size]] and [[MOS:SMALLFONT]]. Use of the {{Tlx|Small}} template within a chart that uses this template produces a font size 75% of the page default, well below the 85% minimum specified in the linked guidelines.
Remember "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections.", per [[MOS:ACCESS#Font size]] and [[MOS:SMALLFONT]]. Use of the {{Tlx|Small}} template within a chart that uses this template produces a font size 75% of the page default, well below the 85% minimum specified in the linked guidelines.


Per [[Wikipedia:Village pump (technical)/Archive 159#Infobox font size]], common text within an infobox is 88% of page default. Therefore use of this template in an infobox yields 74.8% of page default (0.88 * 0.85).
Per [[Wikipedia:Village pump (technical)/Archive 159#Infobox font size]], common text within an infobox is 88% of page default. Therefore use of this template in an infobox yields 74.8% of page default (0.88 * 0.85).


=== See also ===
== Tracking category ==
* {{clc|Pages using chart top with unknown parameters}}
 
== See also ==
* {{Tlx|Chart bottom}}
* {{Tlx|Chart bottom}}
* {{Tlx|Tree chart}}, redirect from {{Tlx|Chart}}
* {{Tlx|Tree chart}}, redirect from {{Tlx|Chart}}
Anonymous user