Template:Character Data: Difference between revisions

From Discworld & Terry Pratchett Wiki
Jump to navigation Jump to search
m (1 revision: Discworld import 2)
 
m (Reverted edits by U mad bro (talk) to last revision by XtinaS)
Tag: Rollback
 
(15 intermediate revisions by 4 users not shown)
Line 4: Line 4:
| colspan="2" style="text-align: center; font-size: larger; font-weight: bold; color: #FFFFFF; background-color: #8B8B7A" | '''{{{title|{{PAGENAME}}}}}'''
| 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}}"
|- class="{{if|test={{{photo|}}}|else=hiddenStructure}}"
| colspan="2" style="padding: 1em 0; text-align: center;" | [[Image:{{{photo}}}|thumb|center|200px|{{{1}}}]]
| 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}}"
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{name|}}}|else=hiddenStructure}}"
| '''Name'''  
| '''Name'''  
Line 46: Line 46:
| '''[[Bibliography|Cameos]]'''
| '''[[Bibliography|Cameos]]'''
| {{{cameos}}}
| {{{cameos}}}
|}</includeonly><noinclude>
|}
</includeonly><noinclude>
'''Example Code'''
'''Example Code'''
----
----
Line 83: Line 84:
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.
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:Templates|Character Data]]
[[Category:Infobox templates|{{PAGENAME}}]]
</noinclude>
</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.