Difference between revisions of "Template:Bio header"
(Fix bug account being called by another template.) |
(Document parameter missed; fix bug; use template in documentation.) |
||
| Line 4: | Line 4: | ||
--> | --> | ||
{{!-}} | {{!-}} | ||
| − | !colspan="2"{{!}}<big>{{#if:{{{name|}}{{{name}}}|{{PAGENAME}}}}</big><!-- Have to test for null parameter, as a parameter value will /always/ be passed (by calling template) --> | + | !colspan="2"{{!}}<big>{{#if:{{{name|}}}{{{name}}}|{{PAGENAME}}}}</big><!-- Have to test for null parameter, as a parameter value will /always/ be passed (by calling template) --> |
<!-- | <!-- | ||
IMAGE | IMAGE | ||
| Line 33: | Line 33: | ||
{{Parm|yob|Year of birth|no|See note B}} | {{Parm|yob|Year of birth|no|See note B}} | ||
{{Parm|dob|Date and Month of birth|no|See note B}} | {{Parm|dob|Date and Month of birth|no|See note B}} | ||
| + | {{Parm|birthblace|Place of birth|no}} | ||
{{Parm|yod|Year of death|no|See note B}} | {{Parm|yod|Year of death|no|See note B}} | ||
{{Parm|dod|Date and month of death|no|See note B}} | {{Parm|dod|Date and month of death|no|See note B}} | ||
| Line 42: | Line 43: | ||
This template provides the common biographical portions of various biography templates, such as {{tl|PM}} and {{tl|Bio}}. It includes the table start code (<small>{{tt|<nowiki>{| class="wikitable" style="float:right; font-size:85%"</nowiki>|}}</small>) but not the table end code, which must be provided by the enclosing template. | This template provides the common biographical portions of various biography templates, such as {{tl|PM}} and {{tl|Bio}}. It includes the table start code (<small>{{tt|<nowiki>{| class="wikitable" style="float:right; font-size:85%"</nowiki>|}}</small>) but not the table end code, which must be provided by the enclosing template. | ||
| − | + | {{Raw parm doc}} | |
| − | |||
'''NOTE B:''' The date of birth/death rows will display if ''either'' the year or date is provided. The full date (day of month, month, and year) should be provided for the sake of accuracy. | '''NOTE B:''' The date of birth/death rows will display if ''either'' the year or date is provided. The full date (day of month, month, and year) should be provided for the sake of accuracy. | ||
</noinclude> | </noinclude> | ||
Revision as of 12:12, October 20, 2008
| Bio header |
|---|
| Template: Bio header | |
|---|---|
| Use on | Biography templates |
| Use for | Header of biography infobox |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | Name of person | no | Defaults to page name |
| image | Name of image | no | |
| ImageWidth | Width of image | no | Defaults to 200px |
| yob | Year of birth | no | See note B |
| dob | Date and Month of birth | no | See note B |
| birthblace | Place of birth | no | |
| yod | Year of death | no | See note B |
| dod | Date and month of death | no | See note B |
| husband | Name of husband | no | |
| husband-raw | Name of husband | no | See note A |
| wife | Name of wife | no | |
| wife-raw | Name of wife | no | See note A |
This template provides the common biographical portions of various biography templates, such as {{PM}} and {{Bio}}. It includes the table start code ({| class="wikitable" style="float:right; font-size:85%") but not the table end code, which must be provided by the enclosing template.
NOTE A: Parameters of the form xxxx-raw are alternatives to the non-raw form. These should be used instead of the non-raw form to (a) provide links where the article name is different to the displayed name, or (b) where a link is not wanted. For example, if the capital of a country is Washington, but the page name for that capital is Washington D.C., then you would type capital-raw=[[Washington D.C.|Washington]]. If, instead, the page name is simply Washington, then capital=Washington is all that is needed, and will automatically be linked. If both non-raw and raw forms are supplied, the non-raw form will be ignored.
NOTE B: The date of birth/death rows will display if either the year or date is provided. The full date (day of month, month, and year) should be provided for the sake of accuracy.