Template:Infobox character: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(add links)
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 9: Line 9:
     <group>
     <group>
         <header>Bio</header>
         <header>Bio</header>
         <data source="species"><label>Species</label><default>Human</default></data>
         <data source="type"><label>Type</label><format>[[{{{type}}}]]</format></data>
         <data source="real_name"><label>Real name</label></data>
         <data source="real_name"><label>Real name</label></data>
<data source="gender"><label>Gender</label></data>
<data source="gender"><label>Gender</label></data>
Line 15: Line 15:
         <data source="occupation"><label>Occupation</label></data>
         <data source="occupation"><label>Occupation</label></data>
         <data source="residence"><label>Residence</label><format>[[{{{residence}}}]]</format></data>
         <data source="residence"><label>Residence</label><format>[[{{{residence}}}]]</format></data>
        <data source="friendship"><label>Friendship</label></data>
         <data source="dateable"><label>Dateable</label></data>
         <data source="dateable"><label>Dateable</label></data>
     </group>
     </group>
Line 21: Line 22:
             <data source="spouse">
             <data source="spouse">
                 <label>Spouse</label>
                 <label>Spouse</label>
                 <format>[[{{{spouse}}}]]{{#if:{{{spouse_note|}}}|<nowiki> </nowiki>({{{spouse_note}}})}}</format>
                 <format><!--
                -->{{#ifeq:{{{spouse}}}|Unnamed|Unnamed|{{Exists|{{{spouse|}}}|[[{{{spouse|}}}]]|{{{spouse|}}}}}}}<!--
-->{{#if:{{{spouse_note|}}}|<nowiki> </nowiki>({{{spouse_note}}})}}<!--
                -->{{#if:{{{spouse_ref|}}}|{{{spouse_ref|}}}}}<!--
                --></format>
             </data>
             </data>
             <data source="father">
             <data source="father">
                 <label>Spouse</label>
                 <label>Father</label>
                 <format>[[{{{father}}}]]{{#if:{{{father_note|}}}|<nowiki> </nowiki>({{{father_note}}})}}</format>
                 <format><!--
                -->{{#ifeq:{{{father}}}|Unnamed|Unnamed|{{Exists|{{{father|}}}|[[{{{father|}}}]]|{{{father|}}}}}}}<!--
-->{{#if:{{{father_note|}}}|<nowiki> </nowiki>({{{father_note}}})}}<!--
                -->{{#if:{{{father_ref|}}}|{{{father_ref|}}}}}<!--
                --></format>
             </data>
             </data>
             <data source="mother">
             <data source="mother">
                 <label>Spouse</label>
                 <label>Mother</label>
                 <format>[[{{{mother}}}]]{{#if:{{{mother_note|}}}|<nowiki> </nowiki>({{{mother_note}}})}}</format>
                 <format><!--
                -->{{#ifeq:{{{mother}}}|Unnamed|Unnamed|{{Exists|{{{mother|}}}|[[{{{mother|}}}]]|{{{mother|}}}}}}}<!--
-->{{#if:{{{mother_note|}}}|<nowiki> </nowiki>({{{mother_note}}})}}<!--
                -->{{#if:{{{mother_ref|}}}|{{{mother_ref|}}}}}<!--
                --></format>
             </data>
             </data>
             <data source="sibling">
             <data source="sibling">
                <label>Sibling{{#if:{{{sibling2|}}}|s}}</label>
<label>Sibling{{#if:{{{sibling2|}}}|s}}</label>
                <format><!--
<format><!--
                -->[[{{{sibling}}}]]{{#if:{{{sibling_note|}}}|<nowiki> </nowiki>({{{sibling_note}}})}}<!--
-->{{#ifeq:{{{sibling}}}|Unnamed|Unnamed|{{Exists|{{{sibling|}}}|[[{{{sibling|}}}]]|{{{sibling|}}}}}}}<!--
                -->{{#if:[[{{{sibling2|}}}]]|<br />{{{sibling2}}}{{#if:{{{sibling_note2|}}}|<nowiki> </nowiki>({{{sibling_note2}}})}}}}<!--
-->{{#if:{{{sibling_note|}}}|<nowiki> </nowiki>({{{sibling_note}}})}}<!--
                -->{{#if:[[{{{sibling3|}}}]]|<br />{{{sibling3}}}{{#if:{{{sibling_note3|}}}|<nowiki> </nowiki>({{{sibling_note3}}})}}}}<!--
-->{{#if:{{{sibling_ref|}}}|{{{sibling_ref|}}}}}<!--
                -->{{#if:[[{{{sibling4|}}}]]|<br />{{{sibling4}}}{{#if:{{{sibling_note4|}}}|<nowiki> </nowiki>({{{sibling_note4}}})}}}}<!--
-->{{#if:{{{sibling2|}}}|<br /><!--
            --></format>
-->{{#ifeq:{{{sibling2}}}|Unnamed|Unnamed|{{Exists|{{{sibling2|}}}|[[{{{sibling2|}}}]]|{{{sibling2|}}}}}}}<!--
            </data>
-->{{#if:{{{sibling_note2|}}}|<nowiki> </nowiki>({{{sibling_note2}}})}}<!--
-->{{#if:{{{sibling_ref2|}}}|{{{sibling_ref2|}}}}}<!--
-->}}<!--
-->{{#if:{{{sibling3|}}}|<br /><!--
-->{{#ifeq:{{{sibling3}}}|Unnamed|Unnamed|{{Exists|{{{sibling3|}}}|[[{{{sibling3|}}}]]|{{{sibling3|}}}}}}}<!--
-->{{#if:{{{sibling_note3|}}}|<nowiki> </nowiki>({{{sibling_note3}}})}}<!--
-->{{#if:{{{sibling_ref3|}}}|{{{sibling_ref3|}}}}}<!--
-->}}<!--
-->{{#if:{{{sibling4|}}}|<br /><!--
-->{{#ifeq:{{{sibling4}}}|Unnamed|Unnamed|{{Exists|{{{sibling4|}}}|[[{{{sibling4|}}}]]|{{{sibling4|}}}}}}}<!--
-->{{#if:{{{sibling_note4|}}}|<nowiki> </nowiki>({{{sibling_note4}}})}}<!--
-->{{#if:{{{sibling_ref4|}}}|{{{sibling_ref4|}}}}}<!--
-->}}<!--
-->{{#if:{{{sibling5|}}}|<br /><!--
-->{{#ifeq:{{{sibling5}}}|Unnamed|Unnamed|{{Exists|{{{sibling5|}}}|[[{{{sibling5|}}}]]|{{{sibling5|}}}}}}}<!--
-->{{#if:{{{sibling_note5|}}}|<nowiki> </nowiki>({{{sibling_note5}}})}}<!--
-->{{#if:{{{sibling_ref5|}}}|{{{sibling_ref5|}}}}}<!--
-->}}<!--
--></format>
</data>
             <data source="child">
             <data source="child">
                 <label>Child{{#if:{{{child2|}}}|ren}}</label>
                 <label>Child{{#if:{{{child2|}}}|ren}}</label>
                 <format><!--
                 <format><!--
                 -->[[{{{child}}}]]{{#if:{{{child_note|}}}|<nowiki> </nowiki>({{{child_note}}})}}<!--
                 -->{{#ifeq:{{{child}}}|Unnamed|Unnamed|{{Exists|{{{child|}}}|[[{{{child|}}}]]|{{{child|}}}}}}}<!--
                 -->[[{{#if:{{{child2|}}}]]|<br />{{{child2}}}{{#if:{{{child_note2|}}}|<nowiki> </nowiki>({{{child_note2}}})}}}}<!--
                -->{{#if:{{{child_note|}}}|<nowiki> </nowiki>({{{child_note}}})}}<!--
                 -->[[{{#if:{{{child3|}}}]]|<br />{{{child3}}}{{#if:{{{child_note3|}}}|<nowiki> </nowiki>({{{child_note3}}})}}}}<!--
                 -->{{#if:{{{child_ref|}}}|{{{child_ref|}}}}}<!--
                 -->[[{{#if:{{{child4|}}}]]|<br />{{{child4}}}{{#if:{{{child_note4|}}}|<nowiki> </nowiki>({{{child_note4}}})}}}}<!--
                -->{{#if:{{{child2|}}}|<br /><!--
            --></format>
                    -->{{#ifeq:{{{child2}}}|Unnamed|Unnamed|{{Exists|{{{child2|}}}|[[{{{child2|}}}]]|{{{child2|}}}}}}}<!--
                    -->{{#if:{{{child_note2|}}}|<nowiki> </nowiki>({{{child_note2}}})}}<!--
                    -->{{#if:{{{child_ref2|}}}|{{{child_ref2|}}}}}<!--
                 -->}}<!--
                -->{{#if:{{{child3|}}}|<br /><!--
                    -->{{#ifeq:{{{child3}}}|Unnamed|Unnamed|{{Exists|{{{child3|}}}|[[{{{child3|}}}]]|{{{child3|}}}}}}}<!--
                    -->{{#if:{{{child_note3|}}}|<nowiki> </nowiki>({{{child_note3}}})}}<!--
                    -->{{#if:{{{child_ref3|}}}|{{{child_ref3|}}}}}<!--
                -->}}<!--
                 -->{{#if:{{{child4|}}}|<br /><!--
                    -->{{#ifeq:{{{child4}}}|Unnamed|Unnamed|{{Exists|{{{child4|}}}|[[{{{child4|}}}]]|{{{child4|}}}}}}}<!--
                    -->{{#if:{{{child_note4|}}}|<nowiki> </nowiki>({{{child_note4}}})}}<!--
                    -->{{#if:{{{child_ref4|}}}|{{{child_ref4|}}}}}<!--
                -->}}<!--
                -->{{#if:{{{child5|}}}|<br /><!--
                    -->{{#ifeq:{{{child5}}}|Unnamed|Unnamed|{{Exists|{{{child5|}}}|[[{{{child5|}}}]]|{{{child5|}}}}}}}<!--
                    -->{{#if:{{{child_note5|}}}|<nowiki> </nowiki>({{{child_note5}}})}}<!--
                    -->{{#if:{{{child_ref5|}}}|{{{child_ref5|}}}}}<!--
                -->}}<!--
                --></format>
             </data>
             </data>
             <data source="relative">
             <data source="relative">
                <label>Relative{{#if:{{{relative2|}}}|s}}</label>
<label>Relative{{#if:{{{relative2|}}}|s}}</label>
                <format><!--
<format><!--
                -->[[{{{relative}}}]]{{#if:{{{relative_note|}}}|<nowiki> </nowiki>({{{relative_note}}})}}<!--
-->{{#ifeq:{{{relative}}}|Unnamed|Unnamed|{{Exists|{{{relative|}}}|[[{{{relative|}}}]]|{{{relative|}}}}}}}<!--
                -->{{#if:[[{{{relative2|}}}]]|<br />{{{relative2}}}{{#if:{{{relative_note2|}}}|<nowiki> </nowiki>({{{relative_note2}}})}}}}<!--
-->{{#if:{{{relative_note|}}}|<nowiki> </nowiki>({{{relative_note}}})}}<!--
                -->{{#if:[[{{{relative3|}}}]]|<br />{{{relative3}}}{{#if:{{{relative_note3|}}}|<nowiki> </nowiki>({{{relative_note3}}})}}}}<!--
-->{{#if:{{{relative_ref|}}}|{{{relative_ref|}}}}}<!--
                -->{{#if:[[{{{relative4|}}}]]|<br />{{{relative4}}}{{#if:{{{relative_note4|}}}|<nowiki> </nowiki>({{{relative_note4}}})}}}}<!--
-->{{#if:{{{relative2|}}}|<br /><!--
                -->{{#if:[[{{{relative5|}}}]]|<br />{{{relative5}}}{{#if:{{{relative_note5|}}}|<nowiki> </nowiki>({{{relative_note5}}})}}}}<!--
-->{{#ifeq:{{{relative2}}}|Unnamed|Unnamed|{{Exists|{{{relative2|}}}|[[{{{relative2|}}}]]|{{{relative2|}}}}}}}<!--
            --></format>
-->{{#if:{{{relative_note2|}}}|<nowiki> </nowiki>({{{relative_note2}}})}}<!--
            </data>
-->{{#if:{{{relative_ref2|}}}|{{{relative_ref2|}}}}}<!--
-->}}<!--
-->{{#if:{{{relative3|}}}|<br /><!--
-->{{#ifeq:{{{relative3}}}|Unnamed|Unnamed|{{Exists|{{{relative3|}}}|[[{{{relative3|}}}]]|{{{relative3|}}}}}}}<!--
-->{{#if:{{{relative_note3|}}}|<nowiki> </nowiki>({{{relative_note3}}})}}<!--
-->{{#if:{{{relative_ref3|}}}|{{{relative_ref3|}}}}}<!--
-->}}<!--
-->{{#if:{{{relative4|}}}|<br /><!--
-->{{#ifeq:{{{relative4}}}|Unnamed|Unnamed|{{Exists|{{{relative4|}}}|[[{{{relative4|}}}]]|{{{relative4|}}}}}}}<!--
-->{{#if:{{{relative_note4|}}}|<nowiki> </nowiki>({{{relative_note4}}})}}<!--
-->{{#if:{{{relative_ref4|}}}|{{{relative_ref4|}}}}}<!--
-->}}<!--
-->{{#if:{{{relative5|}}}|<br /><!--
-->{{#ifeq:{{{relative5}}}|Unnamed|Unnamed|{{Exists|{{{relative5|}}}|[[{{{relative5|}}}]]|{{{relative5|}}}}}}}<!--
-->{{#if:{{{relative_note5|}}}|<nowiki> </nowiki>({{{relative_note5}}})}}<!--
-->{{#if:{{{relative_ref5|}}}|{{{relative_ref5|}}}}}<!--
-->}}<!--
--></format>
</data>
     </group>
     </group>
</infobox><!--
</infobox><!--
Line 64: Line 133:
--><!--{{DISPLAYTITLE:{{#if:{{{name|}}}|{{{name|}}}|{{#replace:{{PAGENAME}}|(character)|}}}}|noreplace}}--><!--
--><!--{{DISPLAYTITLE:{{#if:{{{name|}}}|{{{name|}}}|{{#replace:{{PAGENAME}}|(character)|}}}}|noreplace}}--><!--
-->[[Category:Characters]]<!--
-->[[Category:Characters]]<!--
-->{{#if:{{{residency|}}}|[[Category:Lives at {{{residency}}}]]}}<!--
-->{{#if:{{{residence|}}}|[[Category:Lives at {{{residence}}}]]}}<!--
-->{{#if:{{{romance|}}}|[[Category:Marriage candidates]]}}<!--
-->{{#ifeq:{{{friendship|}}}|Yes|[[Category:Characters with friendship]]|[[Category:Characters without friendship]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{lc:{{{type|}}}}} characters]]}}<!--
-->{{#ifeq:{{{dateable|}}}|Yes|[[Category:Dateable characters]]}}<!--
-->{{#if:{{{gender|}}}|[[Category:{{lc:{{{gender|}}}}} characters]]|[[Category:Unknown gender characters]]}}<!--
-->{{#if:{{{gender|}}}|[[Category:{{{gender}}} characters]]|[[Category:Unknown gender characters]]}}<!--
-->{{#if:{{{species|}}}|[[Category:{{lc:{{{species|}}}}}]]|[[Category:Human]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}} characters]]}}<!--
-->}}
-->}}
</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
</includeonly><noinclude>{{Documentation|type=Infobox}}<noinclude>

Latest revision as of 09:03, 26 January 2024

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Adds an infobox for characters.

Syntax

{{Infobox character
|image         = filename or gallery
|name          = name of the character
|real_name     = full name of character, if different from displayed name
|type          = Human, Giant, Merfolk, etc
|birthday      = season and day
|gender        = charcter's gender if known
|occupation    = job status or hobby
|dateable      = yes or no, an be dated by player
|spouse        = name of spouse, if married
|spouse_note   = additional note about spouse
|father        = name of father, if known
|father_note   = additional note about father
|mother        = name of mother, if known
|mother_note   = additional note about mother
|child         = name of child, if any
|child_note    = note about child
|child2        = name of second child, if any (up to 4 children)
|child_note2   = note about second child
|sibling       = name of sibling, if any (up to 4 siblings)
|sibling_note  = note about sibling
|relative      = name of relative, if any/known (up to 5 relatives)
|relative_note = note about relative (such as relationship)
|residence     = place of living
}}

Examples

{{Infobox character
|type           = Townie
|image          = Rafael portrait.png
|name           = Rafael
|real_name      = Rafael Sanchez
|birthday       = [[Fall]] 4
|gender         = Male
|occupation     = Blacksmith
|dateable       = Yes
|sibling        = Pablo
|sibling_note   = older brother
|relative       = Antonio
|relative_note  = cousin
|relative2      = Valentina
|relative_note2 = niece
|residence      = Blacksmith
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
typetype

no description

Unknownoptional
residenceresidence

no description

Unknownoptional
spousespouse

no description

Unknownoptional
spouse_notespouse_note

no description

Unknownoptional
spouse_refspouse_ref

no description

Unknownoptional
fatherfather

no description

Unknownoptional
father_notefather_note

no description

Unknownoptional
father_reffather_ref

no description

Unknownoptional
mothermother

no description

Unknownoptional
mother_notemother_note

no description

Unknownoptional
mother_refmother_ref

no description

Unknownoptional
sibling2sibling2

no description

Unknownoptional
siblingsibling

no description

Unknownoptional
sibling_notesibling_note

no description

Unknownoptional
sibling_refsibling_ref

no description

Unknownoptional
sibling_note2sibling_note2

no description

Unknownoptional
sibling_ref2sibling_ref2

no description

Unknownoptional
sibling3sibling3

no description

Unknownoptional
sibling_note3sibling_note3

no description

Unknownoptional
sibling_ref3sibling_ref3

no description

Unknownoptional
sibling4sibling4

no description

Unknownoptional
sibling_note4sibling_note4

no description

Unknownoptional
sibling_ref4sibling_ref4

no description

Unknownoptional
sibling5sibling5

no description

Unknownoptional
sibling_note5sibling_note5

no description

Unknownoptional
sibling_ref5sibling_ref5

no description

Unknownoptional
child2child2

no description

Unknownoptional
childchild

no description

Unknownoptional
child_notechild_note

no description

Unknownoptional
child_refchild_ref

no description

Unknownoptional
child_note2child_note2

no description

Unknownoptional
child_ref2child_ref2

no description

Unknownoptional
child3child3

no description

Unknownoptional
child_note3child_note3

no description

Unknownoptional
child_ref3child_ref3

no description

Unknownoptional
child4child4

no description

Unknownoptional
child_note4child_note4

no description

Unknownoptional
child_ref4child_ref4

no description

Unknownoptional
child5child5

no description

Unknownoptional
child_note5child_note5

no description

Unknownoptional
child_ref5child_ref5

no description

Unknownoptional
relative2relative2

no description

Unknownoptional
relativerelative

no description

Unknownoptional
relative_noterelative_note

no description

Unknownoptional
relative_refrelative_ref

no description

Unknownoptional
relative_note2relative_note2

no description

Unknownoptional
relative_ref2relative_ref2

no description

Unknownoptional
relative3relative3

no description

Unknownoptional
relative_note3relative_note3

no description

Unknownoptional
relative_ref3relative_ref3

no description

Unknownoptional
relative4relative4

no description

Unknownoptional
relative_note4relative_note4

no description

Unknownoptional
relative_ref4relative_ref4

no description

Unknownoptional
relative5relative5

no description

Unknownoptional
relative_note5relative_note5

no description

Unknownoptional
relative_ref5relative_ref5

no description

Unknownoptional
friendshipfriendship

no description

Unknownoptional
dateabledateable

no description

Unknownoptional
gendergender

no description

Unknownoptional