Template:Character: Difference between revisions
Appearance
Mr.Dungeon (talk | contribs) No edit summary |
Mr.Dungeon (talk | contribs) No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
This template creates a character infobox that floats on the right side of the page. All fields are optional — empty fields are automatically hidden. | 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 Reference == | ||
| Line 49: | Line 36: | ||
| Aliases || {{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 == | ||
| Line 65: | Line 54: | ||
</pre> | </pre> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly> | |||
{{#cargo_store:_table=Characters | |||
|name={{{name|{{PAGENAME}}}}} | |name={{{name|{{PAGENAME}}}}} | ||
|campaign={{{campaign|}}} | |campaign={{{campaign|}}} | ||
| Line 84: | Line 68: | ||
|aliases={{{aliases|}}} | |aliases={{{aliases|}}} | ||
}} | }} | ||
{{#if:{{{campaign|}}}|[[Category:{{ucfirst:{{{campaign}}}}} | {{#if:{{{campaign|}}}|[[Category:{{ucfirst:{{{campaign}}}}} Characters]]}} | ||
{{#if:{{{species|}}}|[[Category:{{ucfirst:{{{species}}}}}]]}} | {{#if:{{{species|}}}|[[Category:{{ucfirst:{{{species}}}}}]]}} | ||
{{#if:{{{class|}}}|[[Category:{{ucfirst:{{{class}}}}}]]}} | {{#if:{{{class|}}}|[[Category:{{ucfirst:{{{class}}}}}]]}} | ||
{{#if:{{{subclass|}}}|[[Category:{{ucfirst:{{{subclass}}}}}]]}} | {{#if:{{{subclass|}}}|[[Category:{{ucfirst:{{{subclass}}}}}]]}} | ||
{{#if:{{{gender|}}}|[[Category:{{ucfirst:{{{gender}}}}} Characters]]}} | {{#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]] | [[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=
}}