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?)
(redesigned. previous one was terrible)
Line 1: Line 1:
<div style="float:{{{align|right}}}; width:33%; display:table;">
{| class="infobox bordered vevent" style="float: right; width: 300px; 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" align="center" | {{#if:{{{image|}}}|{{{image}}}}}
|-
|-
! nowrap="nowrap" | Age
! colspan="2" style="font-size:110%; text-align:center; background-color:#eee;" class="summary" | {{{title|{{PAGENAME}}}}}
| {{#if:{{{age|}}}|{{{age}}}|Unknown}}
|-
|-
! nowrap="nowrap" | Gender
{{#if:{{{image<includeonly>|</includeonly>}}} |
| {{#if:{{{gender|}}}|{{{gender}}}|Unknown}}
{{!}} colspan="2" style="text-align:center;padding-bottom:.5em;" {{!}}{{{image}}}
|-
{{!}}-
! nowrap="nowrap" | Actor
}}
| {{#if:{{{actor|}}}|{{{actor}}}|Unknown}}
{{#if:{{{age<includeonly>|</includeonly>}}} |
|-
{{!}} style="background:#EEEEEE"{{!}}'''Age'''
! nowrap="nowrap" | Film Appearance?
{{!}}{{{age}}}
| {{#if:{{{film appearance|}}}|{{{film appearance}}}|Unknown}}
{{!}}-
|-
}}
! nowrap="nowrap" | Online Appearance?
{{#if:{{{gender<includeonly>|</includeonly>}}} |
| {{#if:{{{online appearance|}}}|{{{online appearance}}}|Unknown}}
{{!}} style="background:#EEEEEE;"{{!}}'''Gender'''
|-
{{!}}{{{gender}}}
! nowrap="nowrap" | Book Appearance?
{{!}}-
| {{#if:{{{book appearance|}}}|{{{book appearance}}}|Unknown}}
}}
|-
{{#if:{{{actor<includeonly>|</includeonly>}}} |
{{#if:{{{map|}}}|{{!}}-
{{!}} style="background:#EEEEEE;"{{!}}'''Actor'''
{{!}} colspan="2" {{!}} {{{map}}}}}
{{!}}{{{actor}}}
|}
{{!}}-
<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:{{{appearances<includeonly>|</includeonly>}}} |
<noinclude>Test text, should appear beside infobox.</noinclude>
{{!}} style="background:#EEEEEE;"{{!}}'''Appearances'''
<noinclude>
{{!}}{{{appearances}}}
{{!}}-
}}
|}<noinclude>
==Layout==
<pre>
<pre>
{{InfoCharacter
{{InfoCharacter
Line 35: Line 35:
|gender=
|gender=
|actor=
|actor=
|film appearance=
|appearances=
|online appearance=
|book appearance=
}}
}}
</pre>
</pre>
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 00:16, 10 August 2019

Infobox character
{{{image}}}
Age {{{age}}}
Gender {{{gender}}}
Actor {{{actor}}}
Appearances {{{appearances}}}

Layout

{{InfoCharacter
|image=
|age=
|gender=
|actor=
|appearances=
}}