Template:Character Data: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
Tag: Rollback |
||
Line 1: | Line 1: | ||
< | <includeonly> | ||
{| class="toccolours" style="float: right; margin: 0 0 1em 1em; width: 22em; font-size: 90%; clear:right;" cellpadding="2" cellspacing="0" | |||
|- | |||
| colspan="2" style="text-align: center; font-size: larger; font-weight: bold; color: #FFFFFF; background-color: #8B8B7A" | '''{{{title|{{PAGENAME}}}}}''' | |||
|- class="{{if|test={{{photo|}}}|else=hiddenStructure}}" | |||
| colspan="2" style="padding: 1em 0; text-align: center;" | [[Image:{{{photo}}}|thumb|center|240px|{{{1}}}]] | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{name|}}}|else=hiddenStructure}}" | |||
| '''Name''' | |||
| {{{name}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{race|}}}|else=hiddenStructure}}" | |||
| '''Race''' | |||
| {{{race}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{age|}}}|else=hiddenStructure}}" | |||
| '''Age''' | |||
| {{{age}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{occupation|}}}|else=hiddenStructure}}" | |||
|'''Occupation''' | |||
| {{{occupation}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{appearance|}}}|else=hiddenStructure}}" | |||
| '''Physical appearance''' | |||
| {{{appearance}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{residence|}}}|else=hiddenStructure}}" | |||
| '''Residence''' | |||
| {{{residence}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{death|}}}|else=hiddenStructure}}" | |||
| '''Death''' | |||
| {{{death}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{parents|}}}|else=hiddenStructure}}" | |||
| '''Parents''' | |||
| {{{parents}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{relatives|}}}|else=hiddenStructure}}" | |||
| '''Relatives''' | |||
| {{{relatives}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{children|}}}|else=hiddenStructure}}" | |||
| '''Children''' | |||
| {{{children}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{marital status|}}}|else=hiddenStructure}}" | |||
|style="white-space: nowrap;"|'''Marital Status''' | |||
| {{{marital status}}} | |||
|- | |||
| colspan="2" style="font-weight: bold; text-align: center; background-color: #BDBDAC" | Appearances | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{books|}}}|else=hiddenStructure}}" | |||
| '''[[Bibliography|Books]]''' | |||
| {{{books}}} | |||
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{cameos|}}}|else=hiddenStructure}}" | |||
| '''[[Bibliography|Cameos]]''' | |||
| {{{cameos}}} | |||
|} | |||
</includeonly><noinclude> | |||
'''Example Code''' | |||
---- | |||
<pre> | |||
{{Character Data | |||
|title= | |||
|photo= | |||
|name= | |||
|race= | |||
|age= | |||
|occupation= | |||
|appearance= | |||
|residence= | |||
|death= | |||
|parents= | |||
|relatives= | |||
|children= | |||
|marital status= | |||
|books= | |||
|cameos= | |||
}} | |||
</pre> | |||
'''Usage''' | |||
The "<tt>title</tt>" option should be for displaying the same text as the article's title; "<tt>name</tt>" should list the full name of the character. | |||
The "<tt>books</tt>" option is meant to contain ''only the books the character features in''. Only use series if the character features in ''all'' books in that series. For other appearances and mentions use "cameos". | |||
When listing more than one book, use the <tt><br/></tt> tag to display the items as a vertical list. | |||
The "<tt>photo</tt>" option is to be used in the following way: just add the file name of the uploaded picture, a pipe (|) and the picture caption. For example: '''Teatime.jpg|Mr Teatime'''. The rest is done automagically. | |||
[[Category:Infobox templates|{{PAGENAME}}]] | |||
</noinclude> |
Latest revision as of 15:50, 20 October 2021
Example Code
{{Character Data |title= |photo= |name= |race= |age= |occupation= |appearance= |residence= |death= |parents= |relatives= |children= |marital status= |books= |cameos= }}
Usage
The "title" option should be for displaying the same text as the article's title; "name" should list the full name of the character.
The "books" option is meant to contain only the books the character features in. Only use series if the character features in all books in that series. For other appearances and mentions use "cameos".
When listing more than one book, use the <br/> tag to display the items as a vertical list.
The "photo" option is to be used in the following way: just add the file name of the uploaded picture, a pipe (|) and the picture caption. For example: Teatime.jpg|Mr Teatime. The rest is done automagically.