Template:Char: Difference between revisions
From Pradeshverse Wiki
No edit summary |
Allow category override for deity pages while retaining Characters as the default Tag: Reverted |
||
| Line 36: | Line 36: | ||
{{#if:{{{friends|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Friends:</div><div style="color: #1a2a3a; width: 60%;">{{{friends}}}</div></div>}} | {{#if:{{{friends|}}}|<div style="display: flex; padding: 4px 0;"><div style="font-weight: bold; color: #6E540C; width: 40%; flex-shrink: 0;">Friends:</div><div style="color: #1a2a3a; width: 60%;">{{{friends}}}</div></div>}} | ||
</div><includeonly>[[Category:Characters]]</includeonly><noinclude> | </div><includeonly>[[Category:{{{category|Characters}}}]]</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Copy and paste the template code below onto any character page. Fill out the parameters following the vertical pipes (`|`). Leaving a field blank will hide the row automatically to keep the layout crisp. | Copy and paste the template code below onto any character page. Fill out the parameters following the vertical pipes (`|`). Leaving a field blank will hide the row automatically to keep the layout crisp. | ||
Use <code>category = Gods</code> on deity pages to categorize them under Gods instead of Characters. The default remains Characters. | |||
=== Blank Template Example === | === Blank Template Example === | ||
Revision as of 14:23, 17 October 2026
Usage
Copy and paste the template code below onto any character page. Fill out the parameters following the vertical pipes (`|`). Leaving a field blank will hide the row automatically to keep the layout crisp.
Use category = Gods on deity pages to categorize them under Gods instead of Characters. The default remains Characters.
Blank Template Example
{{Char
| CharacterName =
| image1 =
| caption-image1 =
| full_name =
| affiliation =
| clan =
| magic =
| status =
| occupation =
| height =
| eye_color =
| hair_color =
| weight =
| build =
| significant_other =
| children =
| Father =
| mother =
| other_family =
| friends =
}}
