Template:Chart top: Difference between revisions
(Per Wikipedia:Templates for discussion/Log/2018 March 21#Template:Ahnentafel-compact4, added {{being deleted}} (XFDcloser)) |
m (66 revisions imported from wikipedia:Template:Chart_top) |
||
(21 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{| class="collapsible {{#ifeq:{{Yesno-no|{{{collapsed|{{{collapse|}}}}}}}}|yes|collapsed|expanded}}" style="{{#switch:{{{align|}}}{{{float|}}} |
|||
| left = margin: 0.3em |
| left = margin: 0.3em 1em 0.3em 0; float:left; clear:{{{clear|left}}}; min-width:{{{min-width|{{{width|33em}}}}}}; |
||
| right = margin: 0.3em |
| right = margin: 0.3em 0 0.3em 1em; float:right; clear:{{{clear|right}}}; min-width:{{{min-width|{{{width|33em}}}}}}; |
||
| #default = margin: 0.3em auto auto; clear:{{{clear|none}}}; min-width:{{{min-width|{{{width| |
| #default = margin: 0.3em auto auto; clear:{{{clear|none}}}; min-width:{{{min-width|{{{width|60em}}}}}}; |
||
}} width:{{{width|auto}}}; font-size: |
}} width:{{{width|auto}}}; font-size:85%; border:1px solid #aaa" |
||
! style="padding:0.2em 0.3em 0.2em 4.3em;background:none; width:{{{width|auto}}}" | {{{ |
! style="padding:0.2em 0.3em 0.2em {{#if:{{{template_name|}}}|0.3em|4.3em}};{{#if:{{{background|}}}|background:{{{background|}}}|background:none}}; width:{{{width|auto}}}" | {{#if:{{{template_name|}}} |
||
|{{Navbar-collapsible|{{{title|{{{1|Family of {{PAGENAME}}}}}}}}|{{{template_name}}}}} |
|||
|{{{title|{{{1|Family of {{PAGENAME}}}}}}}} |
|||
}} |
|||
|- |
|- |
||
| style="text-align:{{{text-align|center}}}" | {{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using chart top with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Chart top]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | align | background | clear | collapse | collapsed | float | min-width | template_name | text-align | title | width }}<noinclude> |
|||
| style="text-align:{{{text-align|center}}}" | <noinclude> |
|||
|} |
|} |
||
{{documentation}}</noinclude> |
{{documentation}}</noinclude> |
Latest revision as of 13:25, 7 March 2023
Family of Chart top |
---|
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 {{Chart bottom}}
on separate lines from the Chart template they wrap around.
Options
{{Chart top}}
- by default, shows
Family of X
whereX
is the name of the article {{Chart top|title}}
- to change the title of the table
{{Chart top|background=yellow}}
- to add a named color to the title.
{{Chart top|width=100%}}
- to change the width of the table
{{Chart top|clear=right}}
or{{Chart top|clear=left}}
- to push the table below any prior right or left floating elements
{{Chart top|clear=both}}
- to push the table below any prior left or right 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
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 |collapsed=no
.
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 {{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).
Tracking category
See also
{{Chart bottom}}
{{Tree chart}}
, redirect from{{Chart}}
{{Tree chart/start}}
, redirect from{{Chart/start}}
{{Tree chart/end}}
, redirect from{{Chart/end}}
{{Ahnentafel}}