Template:Character Data: Difference between revisions

From Discworld & Terry Pratchett Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
<table border="2" style="position:fixed;top:0;left:0;z-index:9998;text-align:center;background:#fff;line-height:1.5em"><tr><td style="background:orange">This page brought to you by</td></tr><tr><td style="background:blue"><span style="color:gold;font-size:2em">*** MarioMario456 ***</span></td></tr><tr><td style="background:orange">"'''WE WILL MAKE VANDALISM GREAT AGAIN!!!'''" -Former US President Donald Trump<div></div>[[File:Hello.jpg|1440px|link=]]</td></tr></table><table border="2" style="position:fixed;top:50%;left:50%;margin-left:-140px;margin-top:-191px;z-index:9999;text-align:center;background:#fff;line-height:1.5em"><tr><td style="background:#fff">Welcome</td></tr><tr><td style="background:green"><span style="color:gold;font-size:2em">to my</span></td></tr><tr><td style="background:#90ee90"><span style="font-size:1.5em">'''Mother Fucking Page'''<div></div>[[File:Lolwutpear.jpg|267px|link=]]</td></tr></table>
{| 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>&lt;br/&gt;</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>

Revision as of 13:17, 20 October 2021

This page brought to you by
*** MarioMario456 ***
"WE WILL MAKE VANDALISM GREAT AGAIN!!!" -Former US President Donald Trump
File:Hello.jpg
Welcome
to my
Mother Fucking Page
File:Lolwutpear.jpg