Template:Character: Difference between revisions
Appearance
Mr.Dungeon (talk | contribs) No edit summary |
Mr.Dungeon (talk | contribs) No edit summary |
||
| (12 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
|class=String | |class=String | ||
|subclass=String | |subclass=String | ||
|gender=String | |gender=String | ||
| | |titles=String | ||
| | |aliases=String | ||
}} | }} | ||
== About == | == About == | ||
This template creates a character infobox that floats on the right side of the page. | This template creates a character infobox that floats on the right side of the page. All fields are optional — empty fields are automatically hidden. | ||
All fields are optional — empty fields are automatically hidden. | |||
It also supports automatic categorization and linking for certain fields. | |||
== Field Reference == | |||
{| class="wikitable" style="width:100%;" | |||
! Field !! Auto-Links? !! Auto-Categorizes? | |||
|- | |||
| Name || {{No}} || {{No}} | |||
|- | |||
| Campaign || {{Yes}} || {{Yes}} | |||
|- | |||
| Species || {{Yes}} || {{Yes}} | |||
|- | |||
| Class || {{Yes}} || {{Yes}} | |||
|- | |||
| Subclass || {{Yes}} || {{Yes}} | |||
|- | |||
| Gender || {{Yes}} || {{Yes}} | |||
|- | |||
| Titles || {{No}} || {{No}} | |||
|- | |||
| Aliases || {{No}} || {{No}} | |||
|} | |||
Additionally, the character template adds the Character category and a dynamic campaign dependent character category. IE Allesian Archives Character if that is filled in for campaign. I may also add an important connections tag, unless I can find a better way to fast track important links. Same with Age but like better. | |||
== Usage == | |||
<pre> | |||
{{Character | |||
|name= | |||
|image= | |||
|campaign= | |||
|species= | |||
|gender= | |||
|class= | |||
|subclass= | |||
|titles= | |||
|aliases= | |||
}} | |||
</pre> | |||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#cargo_store:_table=Characters | {{#cargo_store:_table=Characters | ||
| Line 76: | Line 64: | ||
|class={{{class|}}} | |class={{{class|}}} | ||
|subclass={{{subclass|}}} | |subclass={{{subclass|}}} | ||
|gender={{{gender|}}} | |gender={{{gender|}}} | ||
| | |titles={{{titles|}}} | ||
| | |aliases={{{aliases|}}} | ||
}} | }} | ||
{{#if:{{{campaign|}}}|[[Category:{{ucfirst:{{{campaign}}}}} Characters]]}} | |||
{{#if:{{{species|}}}|[[Category:{{ucfirst:{{{species}}}}}]]}} | |||
{{#if:{{{class|}}}|[[Category:{{ucfirst:{{{class}}}}}]]}} | |||
{{#if:{{{subclass|}}}|[[Category:{{ucfirst:{{{subclass}}}}}]]}} | |||
{{#if:{{{gender|}}}|[[Category:{{ucfirst:{{{gender}}}}} Characters]]}} | |||
{{#if:{{{ | {{Infobox|title={{{name|{{PAGENAME}}}}}|1= | ||
{{#if:{{{image|}}}|{{RowImage|{{{image}}}}}}} | |||
{{# | {{#if:{{{campaign|}}}|{{RowKV|Campaign|[[{{{campaign}}}]]}}}} | ||
| | {{#if:{{{species|}}}|{{RowKV|Species|[[{{{species}}}]]}}}} | ||
| | {{#if:{{{gender|}}}|{{RowKV|Gender|[[{{{gender}}}]]}}}} | ||
| | {{#if:{{{class|}}}|{{RowKV|Class|[[{{{class}}}]]}}}} | ||
{{#if:{{{subclass|}}}|{{RowKV|Subclass|[[{{{subclass}}}]]}}}} | |||
{{#if:{{{titles|}}}|{{RowKV|Titles|{{{titles}}}}}}} | |||
{{#if:{{{aliases|}}}|{{RowKV|Aliases|{{{aliases}}}}}}} | |||
}} | }} | ||
[[Category:Characters]] | [[Category:Characters]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 03:22, 8 June 2026
This template defines the table "Characters". View table.
About
This template creates a character infobox that floats on the right side of the page. All fields are optional — empty fields are automatically hidden.
It also supports automatic categorization and linking for certain fields.
Field Reference
| Field | Auto-Links? | Auto-Categorizes? |
|---|---|---|
| Name | No | No |
| Campaign | Yes | Yes |
| Species | Yes | Yes |
| Class | Yes | Yes |
| Subclass | Yes | Yes |
| Gender | Yes | Yes |
| Titles | No | No |
| Aliases | No | No |
Additionally, the character template adds the Character category and a dynamic campaign dependent character category. IE Allesian Archives Character if that is filled in for campaign. I may also add an important connections tag, unless I can find a better way to fast track important links. Same with Age but like better.
Usage
{{Character
|name=
|image=
|campaign=
|species=
|gender=
|class=
|subclass=
|titles=
|aliases=
}}