Template:Infobox character/doc: Difference between revisions

From GTA Portugal Wiki
(Created page with "==Output example (single image/appearance)== {{Infobox character |name = Page name / Full name |image = Unknown.png |caption = Character image caption |games = Game titles |aka = Aliases |status = Alive/Deceased/Determinant/Incarcerated/Unknown |gender = PC |height = If known |dob = DOB if known |pob = POB if known |dod = DOD if known |home = Location |nationa...")
 
No edit summary
 
Line 1: Line 1:
<includeonly>
{{#if: {{{deimage|}}}|<infobox layout="tabular" theme="gta-with-subtitle">
<data><label>Type</label><default>CHARACTER</default></data>
<title source="name"><default>{{PAGENAME}}</default></title>
<panel>
<section>
<label>Definitive Edition</label>
<image source="deimage"><caption><default>{{{decaption}}}</default></caption></image>
</section>
<section>
<label>Original</label>
<image source="ogimage"><caption><default>{{{ogcaption}}}</default></caption></image>
</section>
</panel>
<group>
<header>Biographical information</header>
<data source="name"><label>Full name</label></data>
<data source="aka"><label>Also known as</label></data>
<data source="nationality"><label>{{H:title|A group of people who share a common ethnic identity, language, culture, descent, history, and so forth.|Nationality}}</label></data>
<data source="status"><label>Status</label></data>
<data source="dob"><label>Date of birth</label></data>
<data source="pob"><label>Place of birth</label></data>
<data source="dod"><label>Date of death</label></data>
<data source="home"><label>Home</label></data>
<data source="family"><label>Family</label></data>
<data source="affiliations"><label>Main affiliation</label></data>
<data source="weapons"><label>Weapons</label></data>
<data source="vehicles"><label>Vehicle(s)</label></data>
<data source="businesses"><label>Businesses</label></data>
<data source="cellphone"><label>Phone Number</label></data>
<data source="email"><label>Email address</label></data>
<data source="bleeter"><label>[[File:Bleeter-GTAV-Icon.png|thumb|40px|left|link=Bleeter]]</label></data>
<data source="lifeinvader"><label>[[File:Lifeinvader-GTAV-icon.png|40px|left|link=Lifeinvader]]</label></data></group>
<group><header>Physical description</header>
<data><label>Gender</label><default>{{#switch:{{{gender}}}|M=Male|F=Female|PC=Player's Choice|{{{gender}}}}}</default></data>
<data source="height"><label>Height</label></data> </group>
<group><header>Game information</header>
<data source="games"><label>Appears in</label></data>
<data source="voice"><label>Voiced by</label></data>
<data source="motion capture"><label>Motion Capture by</label></data></group>
</infobox>
|<infobox layout="tabular" theme="gta-with-subtitle">
<data><label>Type</label><default>CHARACTER</default></data>
<title source="name"><default>{{PAGENAME}}</default></title>
<image source="image"><caption><default>{{{caption}}}</default></caption></image>
<group>
<header>Biographical information</header>
<data source="name"><label>Full name</label></data>
<data source="aka"><label>Also known as</label></data>
<data source="nationality"><label>{{H:title|A group of people who share a common ethnic identity, language, culture, descent, history, and so forth.|Nationality}}</label></data>
<data source="status"><label>Status</label></data>
<data source="dob"><label>Date of birth</label></data>
<data source="pob"><label>Place of birth</label></data>
<data source="dod"><label>Date of death</label></data>
<data source="home"><label>Home</label></data>
<data source="family"><label>Family</label></data>
<data source="affiliations"><label>Main affiliation</label></data>
<data source="weapons"><label>Weapons</label></data>
<data source="vehicles"><label>Vehicle(s)</label></data>
<data source="businesses"><label>Businesses</label></data>
<data source="cellphone"><label>Phone Number</label></data>
<data source="email"><label>Email address</label></data>
<data source="bleeter"><label>[[File:Bleeter-GTAV-Icon.png|thumb|40px|left|link=Bleeter]]</label></data>
<data source="lifeinvader"><label>[[File:Lifeinvader-GTAV-icon.png|40px|left|link=Lifeinvader]]</label></data></group>
<group><header>Physical description</header>
<data><label>Gender</label><default>{{#switch:{{{gender}}}|M=Male|F=Female|PC=Player's Choice|{{{gender}}}}}</default></data>
<data source="height"><label>Height</label></data> </group>
<group><header>Game information</header>
<data source="games"><label>Appears in</label></data>
<data source="voice"><label>Voiced by</label></data>
<data source="motion capture"><label>Motion Capture by</label></data></group>
</infobox>
}}
</includeonly><noinclude>
{{Documentation}}
[[Category:Infobox templates|Character]]
</noinclude>
==Output example (single image/appearance)==
==Output example (single image/appearance)==
{{Infobox character
{{Infobox character
Line 33: Line 113:
</pre>
</pre>
{{clr}}
{{clr}}
==Output example (multiple game appearances)==
{{Infobox character
|name          = Page name / Full name
|image          = <gallery>
Unknown.png|Date
UnseenCharacter.jpg|Date
</gallery>
|caption        = Character image caption
|games          = Game titles
|aka            = Aliases
|status        = Alive/Deceased/Determinant/Incarcerated/Unknown
|gender        = PC
|height        = If known
|dob            = DOB if known
|pob            = POB if known
|dod            = DOD if known
|home          = Location
|nationality    = Determinant
|family        = Families names
|affiliations  = Asccociated characters or organisations
|vehicles      = Known vehicles owned or used
|weapons        = Known weapons used
|businesses    = Businesses owned or operated
|voice          = Voice actor
|motion capture = Motion capture artist
|cellphone      = Character's in-game phone number
|email          = Character's email adress
|bleeter        = Bleeter.biz ID
|lifeinvader    = Lifeinvader page
}}
;Notes:
Uses <nowiki><gallery></gallery></nowiki> '''image''' parameter
<pre>
|image = <gallery>
Unknown.png|Date
UnseenCharacter.jpg|Date
</gallery>
</pre>
No |caption parameter required (individual captions assigned within gallery)
{{clr}}
==Output example (With Definitive Edition/Original Version tabs)==
{{Infobox character
|name          = Page name / Full name
|deimage          = Unknown.png
|decaption        = DE Character image caption
|ogimage          = UnseenCharacter.jpg
|ogcaption        = OG Character image caption
|games          = Game titles
|aka            = Aliases
|status        = Alive/Deceased/Determinant/Incarcerated/Unknown
|gender        = PC
|height        = If known
|dob            = DOB if known
|pob            = POB if known
|dod            = DOD if known
|home          = Location
|nationality    = Determinant
|family        = Families names
|affiliations  = Asccociated characters or organisations
|vehicles      = Known vehicles owned or used
|weapons        = Known weapons used
|businesses    = Businesses owned or operated
|voice          = Voice actor
|motion capture = Motion capture artist
|cellphone      = Character's in-game phone number
|email          = Character's email adress
|bleeter        = Bleeter.biz ID
|lifeinvader    = Lifeinvader page
}}
;Notes:
Uses single '''deimage''' and '''ogimage''' parameters
<pre>
|deimage          = Unknown.png
|decaption        = Character image caption
|ogimage          = UnseenCharacter.jpg
|ogcaption        = Character image caption
</pre>
Can also be used with <nowiki><gallery></gallery></nowiki> as deimage and ogimage.
<noinclude>
[[Category:Template documentation]]
</noinclude>

Latest revision as of 20:22, 9 March 2024

Lua error: Internal error: The interpreter exited with status 126.


Output example (single image/appearance)

Notes

Uses single image parameter

|image          = Unknown.png
|caption        = Character image caption

Output example (multiple game appearances)

Notes

Uses <gallery></gallery> image parameter

|image = <gallery>
Unknown.png|Date
UnseenCharacter.jpg|Date
</gallery>

No |caption parameter required (individual captions assigned within gallery)

Output example (With Definitive Edition/Original Version tabs)

Notes

Uses single deimage and ogimage parameters

	|deimage          = Unknown.png
	|decaption        = Character image caption
	|ogimage          = UnseenCharacter.jpg
	|ogcaption        = Character image caption

Can also be used with <gallery></gallery> as deimage and ogimage.