Difference between revisions of "Template:Birth, death and age templates"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(margin/col1width (content1))
imported>Sardanaphalus
(added "Start/end dates" (related templates) section)
Line 71: Line 71:
 
       | {{tlb|age as of date}} | Current age (in years) from a known age at a specified date.
 
       | {{tlb|age as of date}} | Current age (in years) from a known age at a specified date.
 
   }} }}
 
   }} }}
 +
 +
<!----------------------------------------------------------------------------->
 +
 +
| abbr3 = dates
 +
| section3 = Start{{\}}end dates
 +
| content3 =
 +
  {{Aligned table
 +
  |style=margin:0 auto;line-height:1.35em;text-align:left;
 +
  |col1style=font-size:110%;white-space:nowrap;padding-right:1.0em;
 +
  |row1style=line-height:1.6em;font-weight:bold;border-bottom:1px solid #aaa;
 +
  | Template&nbsp;                        | {{resize|110%|Description{{\}}use&nbsp;}}
 +
  | {{tlb|start date}} / {{tlb|end date}} |
 +
  | {{tlb|start-date}} / {{tlb|end-date}} |
 +
  | {{tlb|start date and age}}            |
 +
  | {{tlb|start date and years ago}}      |
 +
  | {{tlb|end date and age}}              |
 +
  }}
  
 
<!----------------------------------------------------------------------------->
 
<!----------------------------------------------------------------------------->
Line 83: Line 100:
 
{{Documentation
 
{{Documentation
 
  | content =
 
  | content =
{{Collapsible sections option |list={{hlist|BDA|age}}}}
+
{{Collapsible sections option |list={{hlist|BDA|age|dates}}}}
 
{{Collapsible option |default=expanded}}
 
{{Collapsible option |default=expanded}}
  

Revision as of 11:53, 31 December 2014

Template documentation
How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
    • BDA
    • age
    • dates

Initial visibility: currently defaults to expanded

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Birth, death and age templates|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Birth, death and age templates|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Birth, death and age templates|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to expanded.