FANDOM


(converting to new infobox markup; more info at Help:PortableInfoboxes)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px;"
+
<infobox layout="tabular">
|-
+
<title source="name"><default>{{PAGENAME}}</default></title>
! class="bg2" colspan="2" style="background-color:#920D0F; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
+
<image source="image"><default>File:Placeholder item.png</default><caption source="caption"><default> </default></image>
|- style="text-align:center;"
+
<data source="game"><label>game</label></data>
| colspan="2" style="padding:0.5em;" | [[{{{image|Image:Badbessieposter.jpg}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
+
<data source="titles"><label>Titles</label></data>
|-
+
<data source="gender"><label>Gender</label></data>
! class="bg2" colspan="2" style="background-color:#920D0F; color:#ffffff;" | Vital statistics
+
<data source="age"><label>Age</label></data>
|-
+
<data source="affiliation"><label>Affiliation</label></data>
| '''Game'''
+
<data source="role"><label>Role</label></data>
| {{{game}}}
+
<data source="weapons"><label>Weapons</label></data>
|-
+
<data source="location"><label>Location</label></data>
|-
+
</infobox>
| style="width:30%;" | '''Titles'''
+
<noinclude><br style="clear:both;" />
| style="width:70%;" | {{{titles}}}
 
|-
 
| '''Gender'''
 
| {{{gender}}}
 
|-
 
{{ #if:{{{age|}}} |
 
{{!}} <div style="color:white">'''Age'''</div>
 
{{!}} <div style="color:white">{{{age|}}}</div>
 
}}
 
|-
 
| '''Affiliation'''
 
| {{{affiliation}}}
 
|-
 
| '''Role'''
 
| {{{role}}}
 
|-
 
{{ #if:{{{weapons|}}} |
 
{{!}} <div style="color:white">'''Weapons'''</div>
 
{{!}} <div style="color:white">{{{weapons|}}}</div>
 
}}
 
|-
 
| '''Location'''
 
| {{{location}}}
 
|}<noinclude><br style="clear:both;" />
 
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 22:43, June 25, 2015

There is a problem with parsing the infobox

  • 0
  • 1
    <title source="name"><default>{{PAGENAME}}</default></title>
  • 2
    <image source="image"><default>File:Placeholder item.png</default><caption source="caption"><default> </default></image>

    Opening and ending tag mismatch

  • 3
    <data source="game"><label>game</label></data>
  • 4
    <data source="titles"><label>Titles</label></data>
  • 5
    <data source="gender"><label>Gender</label></data>
  • 6
    <data source="age"><label>Age</label></data>
  • 7
    <data source="affiliation"><label>Affiliation</label></data>
  • 8
    <data source="role"><label>Role</label></data>
  • 9
    <data source="weapons"><label>Weapons</label></data>
  • 10
    <data source="location"><label>Location</label></data>
  • 11

    Opening and ending tag mismatch

    Premature end of tag


[edit · purge]
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
This template is used to create a character infobox.
Syntax
Type {{infobox character|<...>}} somewhere, with parameters as shown below.
Sample output
{{infobox character
| name       = Bob [defaults to pagename]
| image      = Image:Example.jpg
| imagewidth = [defaults to 250]
| caption    = Bob the Flower
| titles      = The Flower
| gender     = Male
| affiliation = Flora
| age        = 2
| location   = The Garden
| weapons    = Leaves
| role       = Flower
| game       = ''[[Red Dead Redemption]]''
}}

Results in...


Documentation transcluded from Template:Infobox character/doc.
Community content is available under CC-BY-SA unless otherwise noted.