Difference between revisions of "Template:Infobox character"

From Diary of a Wimpy Kid Wiki
Jump to navigation Jump to search
(removing duplicate parameter. this ok scrooge?)
m
Tag: Manual revert
 
(36 intermediate revisions by 2 users 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="wikitable {{#ifeq:{{{align|right}}}|right|infobox}}" style="text-align:center;"
|-
|+ '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
! colspan="2" style="font-size:110%; text-align:center; background-color:#EEE; color:#000;" | ''{{{title|{{PAGENAME}}}}}''
| colspan="2" align="center" | {{#if:{{{image|}}}|{{{image}}}}}
|-
|-
! nowrap="nowrap" | Age
{{#if:{{{image<includeonly>|</includeonly>}}} |
| {{#if:{{{age|}}}|{{{age}}}|Unknown}}
{{!}} colspan="2" style="text-align:center;background-color:#FFF;" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
|-
{{!}}-
! nowrap="nowrap" | Gender
}}
| {{#if:{{{gender|}}}|{{{gender}}}|Unknown}}
{{#if:{{{name<includeonly>|</includeonly>}}} |
|-
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Name'''
! nowrap="nowrap" | Actor
{{!}}{{{name}}}
| {{#if:{{{actor|}}}|{{{actor}}}|Unknown}}
{{!}}-
|-
}}
! nowrap="nowrap" | Film Appearance?
{{#if: {{{alias|}}}|
| {{#if:{{{film appearance|}}}|{{{film appearance}}}|Unknown}}
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Alias'''
|-
{{!}} style="padding:3px" {{!}}{{{alias|}}}
! nowrap="nowrap" | Online Appearance?
{{!}}-|}}
| {{#if:{{{online appearance|}}}|{{{online appearance}}}|Unknown}}
{{#if:{{{gender<includeonly>|</includeonly>}}} |
|-
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Gender'''
! nowrap="nowrap" | Book Appearance?
{{!}}{{{gender}}}
| {{#if:{{{book appearance|}}}|{{{book appearance}}}|Unknown}}
{{!}}-
|-
}}
{{#if:{{{map|}}}|{{!}}-
{{#if:{{{age<includeonly>|</includeonly>}}} |
{{!}} colspan="2" {{!}} {{{map}}}}}
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Age'''
|}
{{!}}{{{age}}}
<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>
{{!}}-
}}
{{#if: {{{occupation|}}}|
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Occupation'''
{{!}} style="padding:3px" {{!}}{{{occupation|}}}
{{!}}-|}}
{{#if:{{{status<includeonly>|</includeonly>}}} |
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Status'''
{{!}}{{{status}}}
{{!}}-
}}
{{#if: {{{actor|}}}|
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''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|}}}
{{!}}-|}}
{{#if: {{{last|}}}|
{{!}} style="background-color:#EEE; color:#000;" {{!}}'''Last appearance'''
{{!}} style="padding:3px" {{!}}{{{last|}}}
{{!}}-|}}
|}</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>
{{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]].


<noinclude>Test text, should appear beside infobox.</noinclude>
==Skeleton==
<noinclude>
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=
|alias=
|gender=
|age=
|age=
|gender=
|occupation=
|status=
|actor=
|actor=
|film appearance=
|first=
|online appearance=
|only=
|book appearance=
|last=
}}
}}
</pre>
</pre>
</noinclude>
<!--{{#if: {{{map|}}}|
{{!}} '''{{{map}}}'''
{{!}}{{{info|Unknown}}}
{{!}}-|}}-->
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

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=
}}