Difference between revisions of "Template:Infobox character"

From Diary of a Wimpy Kid Wiki
Jump to navigation Jump to search
m
m
Tag: Manual revert
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:{{{align|right}}}; width=33%; display:table">
{| class="infobox bordered" style="float:right; width:264px; font-size:90%; text-align:left;" cellpadding="3"
{| class="infobox" style="background:#f4f3f4; width:314px; max-width:314px; text-align: left; line-height: 1.5em; font-size: 89%; overflow-wrap: break-word" {{#ifeq:{{{align|right}}}|right|infobox}}
|-  
<div style="position:fixed;left:40px; top:-20px; overflow:visible;">[[file:Rick Roll April Fools.gif|200px]]</div>
! colspan="2" style="font-size:110%; text-align:center; background-color:#EEE; color:#000;" | ''{{{title|{{PAGENAME}}}}}''
|-
! colspan="2" style="font-size:140%; padding:.4em .4em .5em" align="center" |'''{{{title|{{PAGENAME}}}}}'''
|-
| colspan="2" align="center" |{{#if:{{{image|}}}|{{{image}}}|{{#ifeq:{{NAMESPACENUMBER}}| 0 |[[File:Unseen Person.png|300x400px]]<includeonly>[[Category:Unseen characters]]</includeonly>|[[File:Unseen Person.png|300x400px]]}}}}
|-
! nowrap="nowrap" style="padding:3px" |Name
| style="padding:3px" |{{#if:{{{name|}}}|{{{name}}}|{{#ifeq: {{NAMESPACENUMBER}} | 0 |Unknown<includeonly>[[Category:Unnamed characters]]</includeonly>|Unknown}}}}
|-
|-
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-align:center;background-color:#FFF;" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
{{!}}-
}}
{{#if:{{{name<includeonly>|</includeonly>}}} |
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Name'''
{{!}}{{{name}}}
{{!}}-
}}
{{#if: {{{alias|}}}|
{{#if: {{{alias|}}}|
! nowrap="nowrap" style="padding:3px" {{!}} Alias
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Alias'''
{{!}}style="padding:3px" {{!}}{{{alias|}}}
{{!}} style="padding:3px" {{!}}{{{alias|}}}
{{!}}-|}}
{{!}}-|}}
! nowrap="nowrap" style="padding:3px" |Gender
{{#if:{{{gender<includeonly>|</includeonly>}}} |
| style="padding:3px" |{{#if:{{{gender|}}}|{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#switch:{{{gender|}}}|Male=Male<includeonly>[[Category:Male characters]]</includeonly>|Female=Female<includeonly>[[Category:Female characters]]</includeonly>|{{{gender}}}}}|{{{gender}}}}}|{{#ifeq: {{NAMESPACENUMBER}} | 0 | Unknown<includeonly>[[Category:Characters with unknown genders]]</includeonly>|Unknown}}}}
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Gender'''
|-
{{!}}{{{gender}}}
! nowrap="nowrap" style="padding:3px" |Age
{{!}}-
| style="padding:3px" |{{#if:{{{age|}}}|{{{age}}}|Unknown}}
}}
|-
{{#if:{{{age<includeonly>|</includeonly>}}} |
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Age'''
{{!}}{{{age}}}
{{!}}-
}}
{{#if: {{{occupation|}}}|
{{#if: {{{occupation|}}}|
! nowrap="nowrap" style="padding:3px" {{!}} Occupation
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Occupation'''
{{!}} style="padding:3px" {{!}}{{{occupation|}}}
{{!}} style="padding:3px" {{!}}{{{occupation|}}}
{{!}}-|}}
{{!}}-|}}
! nowrap="nowrap" style="padding:3px" |Status
{{#if:{{{status<includeonly>|</includeonly>}}} |
|style="padding:3px" |{{#if:{{{status|}}}|{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#switch:{{{status|}}}|Deceased=Deceased<includeonly>[[Category:Deceased characters]]</includeonly>|Alive (imaginary)=Alive (imaginary)<includeonly>[[Category:Imaginary characters]]</includeonly>|Deceased (imaginary)=Deceased (imaginary)<includeonly>[[Category:Imaginary characters]][[Category:Deceased characters]]</includeonly>|Unknown (imaginary)=Unknown (imaginary)<includeonly>[[Category:Imaginary characters]][[Category:Status unknown]]</includeonly>|{{{status}}}}}|{{{status}}}}}|{{#ifeq: {{NAMESPACENUMBER}} | 0 | Unknown<includeonly>[[Category:Status unknown]]</includeonly>|Unknown}}}}
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Status'''
|-
{{!}}{{{status}}}
{{!}}-
}}
{{#if: {{{actor|}}}|
{{#if: {{{actor|}}}|
! nowrap="nowrap" style="padding:3px" {{!}} Actor
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Actor'''
{{!}}style="padding:3px" {{!}}{{{actor|}}}
{{!}} style="padding:3px" {{!}}{{{actor|}}}
{{!}}-|}}
{{#if: {{{first|}}}|
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''First appearance'''
{{!}} style="padding:3px" {{!}}{{{first|}}}
{{!}}-|}}
{{#if: {{{only|}}}|
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Only appearance'''
{{!}} style="padding:3px" {{!}}{{{only|}}}
{{!}}-|}}
{{!}}-|}}
!style="padding:3px" |{{#if:{{{last|}}}|First appearance|Only appearance}}
| style="padding:3px" |{{#if:{{{first|}}}|{{{first}}}|Unknown}}
|-
{{#if: {{{last|}}}|
{{#if: {{{last|}}}|
! style="padding:3px" {{!}} Last appearance
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Last appearance'''
{{!}}style="padding:3px" {{!}}{{{last|}}}
{{!}} style="padding:3px" {{!}}{{{last|}}}
{{!}}-|}}
{{!}}-|}}
|}</div><noinclude><span style="margin:-10px 0 0 0; font-size:xx-small; clear:right; float:right;">[[Template:InfoCharacter|[view]]] &bull; [[Template talk:InfoCharacter|[talk]]]</span>
|}</div><noinclude><span style="margin:-10px 0 0 0; font-size:xx-small; clear:right; float:right;">[[Template:{{PAGENAME}}|[view]]] &bull; [[Template talk:{{PAGENAME}}|[talk]]]</span>
This is a template made specifically for fictional characters from the [[Diary of a Wimpy Kid series]].
{{clear}}
 
==Info==
This is a template made specifically for fictional characters from the [[Diary of a Wimpy Kid (series)|Diary of a Wimpy Kid series]].


==Skeleton==
To use the template, copy and paste the following into the top of a character page.
To use the template, copy and paste the following into the top of a character page.
<pre>
<pre>
{{InfoCharacter
{{infobox character
|image=
|image=
|caption=
|name=
|name=
|alias=
|alias=
Line 53: Line 71:
|actor=
|actor=
|first=
|first=
|only=
|last=
|last=
}}
}}
Line 60: Line 79:
{{!}}{{{info|Unknown}}}
{{!}}{{{info|Unknown}}}
{{!}}-|}}-->
{{!}}-|}}-->
[[Category:Infobox templates|{{PAGENAME}}]]
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>
<includeonly>{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:Characters]]}}</includeonly>

Latest revision as of 04:30, 15 July 2022

Infobox character
{{{image}}}
Name {{{name}}}
Gender {{{gender}}}
Age {{{age}}}
Status {{{status}}}

[view][talk]

Info

This is a template made specifically for fictional characters from the Diary of a Wimpy Kid series.

Skeleton

To use the template, copy and paste the following into the top of a character page.

{{infobox character
|image=
|caption=
|name=
|alias=
|gender=
|age=
|occupation=
|status=
|actor=
|first=
|only=
|last=
}}