Difference between revisions of "Template:Infobox character/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m
m
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Usage ==
 
== Usage ==
  
This template can be used to create an infobox for a fictional character of any type. The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
+
This template is used to create an infobox for a fictional character of any type. The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
{{Infobox character
+
{{infobox character
| name             = ''name''
+
|name= ''full name''
| series          = '''series'''
+
|color= ''name color''
| image           = Example-serious.jpg
+
|image=
| image_upright    = ''image_upright''
+
|nickname= ''nickname''
| alt              = ''alt''
+
|alias= ''alias''
| caption          = ''caption''
+
|gender= ''gender''
| first            = ''first''
+
|hair= ''hair color''
| last            = ''last''
+
|eyes= ''eyes color''
| cause            = ''cause''
+
|relatives= ''family or ex’s''
| creator          = ''creator''
+
|occupation= ''occupation''
| portrayer        = ''portrayer''
+
|morning= ''morning schedule''
| voice            = ''voice''
+
|afternoon= ''afternoon schedule''
| lbl1            = ''lbl1''
+
|evening= ''evening schedule''
| data1            = ''data1''
 
| lbl2            = ''lbl2''
 
| data2            = ''data2''
 
| lbl3            = ''lbl3''
 
| data3            = ''data3''
 
| fullname        = ''fullname''
 
| birthname        = ''birthname''
 
| nickname         = ''nickname''
 
| alias           = ''alias''
 
| species          = ''species''
 
| gender           = ''gender''
 
| occupation      = ''occupation''
 
| affiliation      = ''affiliation''
 
| title            = ''title''
 
| family          = ''family''
 
| spouse          = ''spouse''
 
| significantother = ''significantother''
 
| children        = ''children''
 
| relatives        = ''relatives''
 
| religion        = ''religion''
 
| nationality      = ''nationality''
 
| lbl21            = ''lbl21''
 
| data21          = ''data21''
 
| lbl22            = ''lbl22''
 
| data22          = ''data22''
 
| lbl23            = ''lbl23''
 
| data23          = ''data23''
 
| extra-hdr        = ''extra-hdr''
 
| lbl31            = ''lbl31''
 
| data31          = ''data31''
 
| lbl32            = ''lbl32''
 
| data32          = ''data32''
 
| lbl33            = ''lbl33''
 
| data33          = ''data33''
 
 
}}
 
}}
<pre style="overflow:auto">{{Infobox character
+
<pre style="overflow:auto">{{infobox character
| colour          = <!-- headers background colour; the foreground colour is automatically computed -->
+
|name=
| name             =  
+
|color=
| series          = <!-- use without the italic on the outside -->
+
|image=  
| image           =
+
|nickname=
| image_upright    =
+
|alias=
| alt              =
+
|gender=
| caption          =
+
|hair=
| first            =
+
|eyes=
| last            =
+
|relatives=
| creator          =
+
|occupation=
| portrayer        =
+
|morning=
| voice            =
+
|afternoon=
| lbl1            =
+
|evening=
| data1            =
+
}}</pre>{{clear}}
| lbl2            =
 
| data2            =
 
| lbl3            =
 
| data3            =
 
| info-hdr        =
 
| noinfo          =
 
| fullname        =  
 
| nickname         =  
 
| alias           =  
 
| species          = <!-- for non-humans only -->
 
| gender           = <!-- if not obvious -->
 
| occupation      =  
 
| affiliation      =
 
| title            =
 
| family          =
 
| spouse          =
 
| significantother =
 
| children        =  
 
| relatives       =  
 
| religion        =
 
| nationality      =
 
| lbl21            =
 
| data21          =
 
| lbl22            =  
 
| data22          =  
 
| lbl23            =  
 
| data23          =
 
| extra-hdr        =
 
| lbl31            =
 
| data31          =
 
| lbl32            =
 
| data32          =
 
| lbl33            =
 
| data33          =
 
}}</pre>
 
  
== Parameters ==
+
== Optional Parameters ==
  
All parameters are optional.
+
; {{para|name}} : Character full name (with title) to display in header.
 
+
; {{para|color}} : Color in which the character name appears in in‐game dialogues.
{| class="wikitable"
+
; {{para|image}} : Image of the character in his/her usual clothing. “File:” prefix is not required. i.e. use {{para|image|<var><nowiki>Example.png</nowiki></var>}}
|-
+
; {{para|gender}} : Character gender; either male, female, or X.
! Parameter !! Notes
+
; {{para|hair color}} : The character hair color.
|-
+
; {{para|eye color}} : The character eye color.
| name ||  Character name to display in top header (default = PAGENAME)
+
; {{para|alias}} : Any aliases used by the character (not implemented).
|-
+
; {{para|nickname}} : Any nicknames used by the character (not implemented).
| series  ||  Name of the television series or other fictional world or story in which character appears
+
; {{para|relatives}} : Family or ex‐boyfriend/ex‐girlfriend prior to any route.
|-
+
; {{para|occupations}} : Job or position assumed by the character (not implemented).
| multiple || Set to yes if the infobox describes more than one character
+
; {{para|morning schedule}} : Where to find the character in the morning.
|-
+
; {{para|afternoon schedule}} : Where to find the character in the morning.
| image ||  Image of the character. "File:" and wikilinking is not required. i.e. use {{para|image|<var><nowiki>Example.png</nowiki></var>}}
+
; {{para|evening schedule}} : Where to find the character in the evening.
|-
 
| image_upright || The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used.
 
|-
 
| alt || [[Wikipedia:Alternative text for images|Alt text]]
 
|-
 
| caption  ||  Caption to display below image
 
|-
 
| first  ||  First appearance of the character
 
|-
 
| last  ||  Last appearance of the character
 
|-
 
| creator  ||  Name of the person who invented the character
 
|-
 
| portrayer  ||  Name of the person(s) who portrayed the character
 
|-
 
| voice  ||  Name of the person(s) who voiced the character
 
|-
 
| info-hdr  ||  Text for display in second header (default = Information)
 
|-
 
| alias ||  Any aliases used by the character
 
|-
 
| relationships || Any significant relationships that are essential to understanding the character
 
|-
 
| extra-hdr  ||  Text for display in third header (default = No third header)
 
|-
 
| lbl#  ||  Label to display in left column where "#" is 1-5, 21-25, or 31-35 for custom fields under the 1st, 2nd, or 3rd headers respectively
 
|-
 
| data#  ||  Text to display in the right column corresponding to the appropriate "lbl#"
 
|-
 
| tbl-class  ||  Overall class for the table (default = infobox)
 
|-
 
| tbl-style  ||  Overall styles for the table (default = width: 20em; text-align: left; font-size: 90%)
 
|-
 
| lbl-style  ||  Style to apply to all cells in the left column
 
|-
 
| data-style  ||  Style to apply to all cells in the right column
 
|-
 
| noinfo  ||  disable the first "information" header
 
|-
 
| colour  ||  Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines.
 
|}
 
  
 
== Example ==
 
== Example ==
  
{{Infobox character
+
{|class=wikitable style="width:100%;"
| name        = Erick Karabell
+
! Markup
| series      = [[Criminal Minds]]
+
! Renders as
| image      =
+
|- style="vertical-align:top;"
| caption    =
+
| <pre style="overflow:auto">
| first      = April 18, 2004
+
{{infobox character
| last        = April 18, 2008
+
|name= Annie
| creator    = [[Agnes Nixon]]
+
|color= #FF9391
| portrayer  = Johnny Lioma
+
|image= Annie.png
| nickname    = Limmy
+
|gender= Female
| alias      = John Limmons
+
|hair= Titian hair
| gender     = Male
+
|eyes= Brown
| occupation  = Detective
+
|relatives= {{lightlink|Lucy}} (mother)<br>{{lightlink|Richard}} (father)
| title      = Head Detective
+
|morning= {{lightlink|School}} {{nowrap|(Mon–Fri)}}
| family      = Erick Karabell Sr (Father)<br />Lonna Marcus-Karabell (Mother)
+
|afternoon= {{lightlink|School}} {{nowrap|(Mon–Fri)}}
| spouse      = Lonni Karabell (Wife)
+
|evening=
| significantother =  
 
| children    = Erick Karabell III (Son)
 
| relatives  = Oliva Falconeri (Cousin)
 
| religion    = [[Christian]]
 
| nationality = [[United States|American]]
 
 
}}
 
}}
<pre style="overflow:auto">
+
</pre>
{{Infobox character
+
| {{infobox character
| name       = Erick Karabell
+
|name= Annie
| series      = [[Criminal Minds]]
+
|color= #FF9391
| image       =  
+
|image= Annie.png
| caption    =  
+
|gender= Female
| first      = April 18, 2004
+
|hair= Titian hair
| last        = April 18, 2008
+
|eyes= Brown
| creator    = [[Agnes Nixon]]
+
|relatives= {{lightlink|Lucy}} (mother)<br>{{lightlink|Richard}} (father)
| portrayer  = Johnny Lioma
+
|morning= {{lightlink|School}} {{nowrap|(Mon–Fri)}}
| nickname    = Limmy
+
|afternoon= {{lightlink|School}} {{nowrap|(Mon–Fri)}}
| alias      = John Limmons
+
|evening=
| species    =
 
| gender      = Male
 
| occupation  = Detective
 
| title      = Head Detective
 
| family      = Erick Karabell Sr (Father)<br />Lonna Marcus-Karabell (Mother)
 
| spouse      = Lonni Karabell (Wife)
 
| significantother =  
 
| children    = Erick Karabell III (Son)
 
| relatives  = Oliva Falconeri (Cousin)
 
| religion    = [[Christian]]
 
| nationality = [[United States|American]]
 
 
}}
 
}}
</pre>
+
|}
 +
 
 +
[[Category:Templates]]
 +
[[Category:Templates documentation]]

Latest revision as of 13:29, 24 August 2020

Usage

This template is used to create an infobox for a fictional character of any type. The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.

full name
Appearance
Gender gender
Hair color hair color
Eye color eyes color
Information
Relatives family or ex’s
Schedule
Morning morning schedule
Afternoon afternoon schedule
Evening evening schedule
{{infobox character
|name=
|color=
|image= 
|nickname=
|alias=
|gender=
|hair=
|eyes=
|relatives=
|occupation=
|morning=
|afternoon=
|evening=
}}

Optional Parameters

|name= 
Character full name (with title) to display in header.
|color= 
Color in which the character name appears in in‐game dialogues.
|image= 
Image of the character in his/her usual clothing. “File:” prefix is not required. i.e. use |image=Example.png
|gender= 
Character gender; either male, female, or X.
|hair color= 
The character hair color.
|eye color= 
The character eye color.
|alias= 
Any aliases used by the character (not implemented).
|nickname= 
Any nicknames used by the character (not implemented).
|relatives= 
Family or ex‐boyfriend/ex‐girlfriend prior to any route.
|occupations= 
Job or position assumed by the character (not implemented).
|morning schedule= 
Where to find the character in the morning.
|afternoon schedule= 
Where to find the character in the morning.
|evening schedule= 
Where to find the character in the evening.

Example

Markup Renders as
{{infobox character
|name= Annie
|color= #FF9391
|image= Annie.png
|gender= Female
|hair= Titian hair
|eyes= Brown
|relatives= {{lightlink|Lucy}} (mother)<br>{{lightlink|Richard}} (father)
|morning= {{lightlink|School}} {{nowrap|(Mon–Fri)}}
|afternoon= {{lightlink|School}} {{nowrap|(Mon–Fri)}}
|evening=
}}
Annie
"Infobox character/doc illustration"
Appearance
Gender Female
Hair color Titian hair
Eye color Brown
Information
Relatives Lucy (mother)
Richard (father)
Schedule
Morning School (Mon–Fri)
Afternoon School (Mon–Fri)