Elm Street Wiki
No edit summary
 
No edit summary
 
Line 1: Line 1:
  +
{| class="infobox" style="font-size:89%; width:300px;"
;Description
 
  +
|-
:This template is used to create a character infobox.
 
  +
! colspan="2" style="background-color:#000; color:#fff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
;Syntax
 
  +
|-
:Type <code>{{t|infobox character|...}}</code> somewhere, with parameters as shown below.
 
  +
! colspan="2" style="text-align:center;" |
;Sample output
 
  +
|-
main image name gender age appearances
 
  +
| colspan="2" style="padding:0.5em;" |<center> {{#if:{{{image|}}}|[[File:{{{image|}}}|{{{imagewidth|220}}}px]]}}<br/>''{{{caption|}}}''<br>{{#if: {{{other_image|}}}|[[File:{{{other_image|}}}|{{{imagewidth|220}}}px]]}}<br/>''{{#if: {{{2010_actor|}}}|{{{name|}}} as portrayed by {{{2010_actor|}}} in the [[A Nightmare on Elm Street (remake)|2010 remake]]}}''</center>
 
  +
|-
<pre>{{Infobox character
 
  +
! colspan="2" style="background-color:#000; color:#fff;" | Information
| name = Bob [defaults to pagename]
 
  +
|-
| image = Example.jpg
 
  +
| style="width:30%;" | {{#if: {{{name|}}}|'''Name'''}}
| imagewidth = 230 [defaults to 220]
 
  +
| style="width:70%;" | {{{name|...}}}
| caption = Bob the Flower
 
  +
|-
| 2010_image = Placeholder.jpg
 
  +
| {{#if: {{{gender|}}}|'''Gender'''}}
| 2010_actor = Mona lisa
 
| gender = Male
+
| {{{gender|}}}
  +
|-
| age = 25
 
  +
| {{#if: {{{age|}}}|'''Age'''}}
| appearances = [[A Nightmare on Elm Street]]<br>[[Freddy vs. Jason]]
 
  +
| {{{age|}}}
| portrayal = Bob
 
  +
|-
}}</pre>
 
  +
| {{#if: {{{portrayal|}}}|'''Portrayal'''}}
 
 
| {{{portrayal|}}}
Results in...
 
  +
|-
 
  +
| {{#if: {{{appearances|}}}|'''Appearances'''}}
{{Infobox character
 
  +
| {{{appearances|}}}
| name = Bob
 
  +
|}<noinclude><br style="clear:both;" />
| image = Example.jpg
 
  +
{{documentation}}</noinclude>
| imagewidth = 230
 
| caption = Bob the Flower
 
| 2010_image = Placeholder.jpg
 
| 2010_actor = Mona lisa
 
| gender = Male
 
| age = 25
 
| appearances = [[A Nightmare on Elm Street]]<br>[[Freddy vs. Jason]]
 
| portrayal = Bob
 
}}
 
 
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 

Revision as of 03:59, 29 September 2009

Infobox character

'

'
Information
...


Description
This template is used to create a character infobox.
Syntax
Type {{infobox character|<...>}} somewhere, with parameters as shown below.
Sample output

main image status name gender age appearances

{{Infobox character
| name          = Bob [defaults to pagename]
| image         = Example.jpg
| imagewidth    = 230 [defaults to 220]
| caption       = Bob the Flower
| other_image   = Placeholder person.png
| 2010_actor    = Mona lisa
| status        = Alive
| age           = 25
| appearances   = [[A Nightmare on Elm Street (1984 film)]]<br>[[Freddy vs. Jason (film)]]
| portrayal     = John Doe
| family        = John Q. Public (Father)<br> Jane Public (Mother)
| relationships = Jane Doe (Wife)
| occupation    = Steel worker
}}

Results in...

Bob
Example
Bob the Flower
Placeholder person
Bob as portrayed by Mona lisa in the 2010 remake
Information
Name Bob
Gender Male
Age 25
Portrayal John Doe
Appearances A Nightmare on Elm Street (1984 film)
Freddy vs. Jason (film)