Difference between revisions of "Template:Character"
(Let's try setting up the Cargo Characters table..) |
Tag: Rollback |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | + | <infobox layout="stacked"> | |
− | + | <title source="title"> | |
− | + | <default>'''{{PAGENAME}}'''</default> | |
− | + | </title> | |
− | + | <image source="image"> | |
− | + | <caption source="caption"/> | |
− | + | </image> | |
− | + | <group> | |
− | + | <header>Biographical Information</header> | |
− | + | <data source="fullname"> | |
− | + | <label>Full name</label> | |
− | + | <default>Unknown</default> | |
− | + | </data> | |
− | + | <data source="alias"> | |
− | + | <label>Alias(es)</label> | |
− | + | <default>None</default> | |
− | + | </data> | |
− | + | <data source="age"> | |
− | + | <label>Age</label> | |
− | + | <default>Unknown</default> | |
− | + | </data> | |
− | + | <data source="gender"> | |
− | + | <label>Gender</label> | |
− | + | <default>Unknown</default> | |
− | + | </data> | |
− | + | <data source="status"> | |
− | + | <label>Status</label> | |
− | + | <default>Unknown</default> | |
− | + | </data> | |
+ | <data source="family"> | ||
+ | <label>Family Members</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | </group> | ||
+ | <group> | ||
+ | <header>Appearance</header> | ||
+ | <data source="species"> | ||
+ | <label>Species</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | <data source="ethnicity"> | ||
+ | <label>Ethnicity</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | <data source="eyecolor"> | ||
+ | <label>Eye color</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | <data source="haircolor"> | ||
+ | <label>Hair color</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | <data source="skincolor"> | ||
+ | <label>Skin color</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | </group> | ||
+ | <group> | ||
+ | <header>Personal Information</header> | ||
+ | <data source="occupation"> | ||
+ | <label>Occupation</label> | ||
+ | <default>None</default> | ||
+ | </data> | ||
+ | <data source="field"> | ||
+ | <label>Field of Study</label> | ||
+ | <default>None</default> | ||
+ | </data> | ||
+ | <data source="rank"> | ||
+ | <label>Rank</label> | ||
+ | <default>Unknown</default> | ||
+ | </data> | ||
+ | </group> | ||
+ | </infobox> | ||
+ | |||
[[Category:Characters]] | [[Category:Characters]] | ||
+ | |||
+ | {{#switch: {{lc:{{{gender}}}}} | ||
+ | | female = [[Category:Gender:_Female]][[Character gender::Female| ]] | ||
+ | | male = [[Category:Gender:_Male]][[Character gender::Male| ]] | ||
+ | | unknown = [[Category:Gender:_Unknown]][[Character gender::Unknown| ]] | ||
+ | | #default = [[Category:Characters with an undefined gender]][[Character gender::Unknown| ]] | ||
+ | }} | ||
+ | |||
+ | {{#switch: {{lc:{{{type}}}}} | ||
+ | | background = [[Category:Background characters]][[Character type::Background| ]] | ||
+ | | major = [[Category:Major Characters]][[Character type::Major| ]] | ||
+ | | #default = [[Category:Minor Characters]][[Character type::Minor| ]] | ||
+ | }} | ||
+ | |||
+ | {{#switch: {{lc:{{{status}}}}} | ||
+ | | alive = [[Category:Status:_Alive]][[Character status::Alive| ]] | ||
+ | | deceased = [[Category:Status:_Deceased]][[Character status::Deceased| ]] | ||
+ | | unknown = [[Category:Status:_Unknown]][[Character status::Unknown| ]] | ||
+ | | #default = [[Category:Status:_Unknown]][[Character status::Unknown| ]] | ||
+ | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | |||
{{/doc}} | {{/doc}} | ||
+ | {{TemplateData|<templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "age": { | ||
+ | "label": "Age", | ||
+ | "description": "The character's age, preferably in years.", | ||
+ | "example": "18", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "alias": { | ||
+ | "label": "Alias(es)", | ||
+ | "description": "Alternate names for a character.", | ||
+ | "example": "Kvothe Kingkiller, Maedre, Kvothe the Bloodless", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "ethnicity": { | ||
+ | "label": "Ethnicity", | ||
+ | "description": "The character's ethnicity.", | ||
+ | "example": "Edema Ruh", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | |||
+ | "eyecolor": { | ||
+ | "label": "Eye color", | ||
+ | "description": "Character's eye color", | ||
+ | "example": "Green", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "family": { | ||
+ | "label": "Family Members", | ||
+ | "description": "Known members of someone's family.", | ||
+ | "example": "Arliden, Laurian", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "field": { | ||
+ | "label": "Field of Study", | ||
+ | "description": "What a character is studying, either independently or at The University", | ||
+ | "example": "Chemistry, Naming, Sympathy", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "fullname": { | ||
+ | "label": "Full name", | ||
+ | "description": "Full name of the character", | ||
+ | "example": "Kvothe, son of Arliden", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "gender": { | ||
+ | "label": "Gender", | ||
+ | "description": "Character's gender", | ||
+ | "example": "Male", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "haircolor": { | ||
+ | "label": "Hair color", | ||
+ | "description": "Character's hair color", | ||
+ | "example": "Red", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "image": { | ||
+ | "label": "Character image", | ||
+ | "description": "File link to the character image", | ||
+ | "example": "[[File:MainPage-Kvothe.jpg]]", | ||
+ | "type": "wiki-file-name" | ||
+ | }, | ||
+ | "occupation": { | ||
+ | "label": "Occupation", | ||
+ | "description": "What the character does for a living, a job.", | ||
+ | "example": "Student", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "rank": { | ||
+ | "label": "Rank", | ||
+ | "description": "What rank a character is", | ||
+ | "example": "Re'lar, King, Maer", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "skincolor": { | ||
+ | "label": "Skin Color", | ||
+ | "description": "What color a character's skin is", | ||
+ | "example": "Pale", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "species": { | ||
+ | "label": "Species", | ||
+ | "description": "What species a character is.", | ||
+ | "example": "Human", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "status": { | ||
+ | "label": "Status", | ||
+ | "description": "Character's status", | ||
+ | "example": "Alive", | ||
+ | "required": true, | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "type": { | ||
+ | "label": "Type", | ||
+ | "description": "Type of character: Major/Minor", | ||
+ | "example": "Major", | ||
+ | "type": "string" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Creates an infobox for Character pages", | ||
+ | "format": "block" | ||
+ | } | ||
+ | </templatedata>}} | ||
</noinclude> | </noinclude> |
Latest revision as of 02:47, 27 December 2019
Data
Show/hide template's data | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. Creates an infobox for Character pages
|