Difference between revisions of "Template:Infobox character"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
{| | <div style="float:{{{align|right}}}; width=33%; display:table"> | ||
{| 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> | |||
|- | |- | ||
{{#if:{{{image<includeonly> | ! 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: {{{alias|}}}| | ||
}} | ! nowrap="nowrap" style="padding:3px" {{!}} Alias | ||
{{#if:{{{gender<includeonly>|</includeonly>}}} | | {{!}}style="padding:3px" {{!}}{{{alias|}}} | ||
{{ | {{!}}-|}} | ||
{{!}}{{{ | ! nowrap="nowrap" style="padding:3px" |Gender | ||
{{!}}- | | 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}}}} | ||
}} | |- | ||
{{#if:{{{ | ! nowrap="nowrap" style="padding:3px" |Age | ||
{{ | | style="padding:3px" |{{#if:{{{age|}}}|{{{age}}}|Unknown}} | ||
{{!}}{{{actor}}} | |- | ||
{{!}}- | {{#if: {{{occupation|}}}| | ||
}} | ! nowrap="nowrap" style="padding:3px" {{!}} Occupation | ||
{{#if:{{{ | {{!}} style="padding:3px" {{!}}{{{occupation|}}} | ||
{{ | {{!}}-|}} | ||
{{!}}{{{ | ! nowrap="nowrap" style="padding:3px" |Status | ||
{{!}}- | |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}}}} | ||
}} | |- | ||
|}<noinclude> | {{#if: {{{actor|}}}| | ||
! nowrap="nowrap" style="padding:3px" {{!}} Actor | |||
{{!}}style="padding:3px" {{!}}{{{actor|}}} | |||
{{!}}-|}} | |||
!style="padding:3px" |{{#if:{{{last|}}}|First appearance|Only appearance}} | |||
| style="padding:3px" |{{#if:{{{first|}}}|{{{first}}}|Unknown}} | |||
|- | |||
{{#if: {{{last|}}}| | |||
! style="padding:3px" {{!}} Last appearance | |||
{{!}}style="padding:3px" {{!}}{{{last|}}} | |||
{{!}}-|}} | |||
|}</div><noinclude><span style="margin:-10px 0 0 0; font-size:xx-small; clear:right; float:right;">[[Template:InfoCharacter|[view]]] • [[Template talk:InfoCharacter|[talk]]]</span> | |||
This is a template made specifically for fictional characters from the [[Diary of a Wimpy Kid series]]. | |||
To use the template, copy and paste the following into the top of a character page. | |||
<pre> | <pre> | ||
{{ | {{InfoCharacter | ||
|image= | |image= | ||
|name= | |||
|alias= | |||
|gender= | |||
|age= | |age= | ||
| | |occupation= | ||
|status= | |||
|actor= | |actor= | ||
| | |first= | ||
|last= | |||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates]]</noinclude> | <!--{{#if: {{{map|}}}| | ||
{{!}} '''{{{map}}}''' | |||
{{!}}{{{info|Unknown}}} | |||
{{!}}-|}}--> | |||
[[Category:Infobox templates|{{PAGENAME}}]] | |||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | |||
<includeonly>{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:Characters]]}}</includeonly> |
Revision as of 01:32, 2 April 2022
This is a template made specifically for fictional characters from the Diary of a Wimpy Kid series.
To use the template, copy and paste the following into the top of a character page.
{{InfoCharacter |image= |name= |alias= |gender= |age= |occupation= |status= |actor= |first= |last= }}