Template:Character: Difference between revisions
Appearance
Mr.Dungeon (talk | contribs) No edit summary |
Mr.Dungeon (talk | contribs) No edit summary |
||
| (22 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
{{#cargo_declare:_table=Characters | {{#cargo_declare:_table=Characters | ||
|name=String | |name=String | ||
|campaign=String | |||
|species=String | |species=String | ||
| | |class=String | ||
| | |subclass=String | ||
| | |gender=String | ||
| | |titles=String | ||
| | |aliases=String | ||
}} | }} | ||
== 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 == | |||
{| 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 == | == Usage == | ||
<pre> | <pre> | ||
| Line 61: | Line 44: | ||
|name= | |name= | ||
|image= | |image= | ||
|campaign= | |||
|species= | |species= | ||
| | |gender= | ||
|class= | |||
|subclass= | |||
|titles= | |titles= | ||
|aliases= | |aliases= | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly> | |||
{{#cargo_store:_table=Characters | |||
|name={{{name|{{PAGENAME}}}}} | |||
|campaign={{{campaign|}}} | |||
|species={{{species|}}} | |||
|class={{{class|}}} | |||
|subclass={{{subclass|}}} | |||
|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]]}} | |||
{{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]] | |||
</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=
}}