DC Database:Character Template/Lua/Documentation

```

```

                            Anything else overrides the automation.
                            Anything else overrides the automation.

```

{{DC Database:Character Template

}}
```

## Category Magic

**This template automatically categorizes articles that use it. The following is a list of categories handled:**

```
* Always:
** Category:Characters

* If Defined:
** Category:{{{Gender}}} Characters
** Category:{{{Identity}}} Identity
** Category:{{{Alignment}}} Characters
** Category:{{{Eyes}}} Eyes
** Category:{{{Hair}}} Hair
** Category:{{{UnusualSkinColour}}} Skin
** Category:{{{UnusualFeatures}}} (see below for a full list)
** Category:{{{Origin}}} (see below for a full list)
** Category:{{{Occupation}}} (see below for a full list)
** Category:{{{Citizenship}}}
** Category:{{{MaritalStatus}}} Characters (Single; Married; Separated; Remarried - separate by semicolons)
** Category:{{{Universe}}} Characters (two can be put in 'Universe', separated by semicolons)
** Category:{{{Universe2}}} Characters
** Category:{{{AlienRace}}}

* If Not Defined:
** Category:Image Needed         (if {{{Image}}} is undefined)
** Category:Copy Edit            (if {{{HistoryText}}} is undefined)
** Category:Wikify               (if {{{HistoryText}}} does not contain a '[')

* If Doesn't Exist:
** Category:Appearances Page Needed (if {{PAGENAME}}/Appearances nonexistent)
** Category:Appearances Category Needed  (if {{Category:{{PAGENAME}}/Appearances nonexistent)
** Category:Gallery Page Needed     (if {{PAGENAME}}/Gallery nonexistent)
** Category:Quotes Page Needed      (if {{PAGENAME}}/Quotes nonexistent)

* Special Cases:
** Category:Bald Characters      (if {{{Hair}}} is Bald)
** Category:No Hair              (if {{{Hair}}} is No Hair;No hair;None)
** Category:Deceased Characters  (if {{{PlaceOfDeath}}} or {{{Death}}} is defined)
*** Category:Living Characters   (if {{{PlaceOfDeath}}} and {{{Death}}} are both undefined)

```

#### Unusual Features

```
-->{{#if: {{{UnusualFeatures|}}} |<!--
-->{{#if: {{#pos: {{{UnusualFeatures}}} |horn}} | [[Category:Horns]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | fur }} | [[Category:Fur]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |fang}} | [[Category:Fangs]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | tail }} | [[Category:Tail]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |wings }} | [[Category:Wings]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | claws }} | [[Category:Claws]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |tattoo}} | [[Category:Tattoos]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |pincer}} | [[Category:Pincers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |scale}} | [[Category:Scaly Skin]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | one arm }} | [[Category:One Arm]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |arms}} | [[Category:Multiple Arms]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |tentacle}} | [[Category:Tentacles]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | feathers }} | [[Category:Feathers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | heads }} | [[Category:Multiple Heads]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} |pointed ear}} | [[Category:Pointed Ears]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | hooves }}{{#pos: {{lc:{{{UnusualFeatures}}}}} | hoof }} | [[Category:Hooves]] }}<!--
-->{{#if: {{#pos: {{lc:{{{UnusualFeatures}}}}} | rock }}{{#pos: {{lc:{{{UnusualFeatures}}}}} | rock body }} | [[Category:Rock Body]] }}<!--
-->}}

```

#### Occupation

```
-->{{#if: {{{Occupation|}}} |<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |spy}} | [[Category:Spies]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |god}} | [[Category:Gods]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |urse}} | [[Category:Nurses]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |ninja}} | [[Category:Ninjas]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |pilot}} | [[Category:Pilots]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |boxer}} | [[Category:Boxers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |thief}} | [[Category:Thieves]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |dancer}} | [[Category:Dancers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |pirate}} | [[Category:Pirates]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |leader}} | [[Category:Leaders]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |zombie}} | [[Category:Zombies]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |chemist}} | [[Category:Chemists]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |student}} | [[Category:Students]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |teacher}} | [[Category:Teachers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |reporter}} | [[Category:Reporters]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |inventor}} | [[Category:Inventors]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |criminal}} | [[Category:Criminals]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |engineer}} | [[Category:Engineers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |assassin}} | [[Category:Assassins]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |crimelord}} | [[Category:Crimelords]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |vigilante}} | [[Category:Vigilantes]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |terrorist}} | [[Category:Terrorists]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |conqueror}} | [[Category:Conquerors]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |scientist}} | [[Category:Scientists]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |detective}} | [[Category:Detectives]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |king}} | [[Category:Kings (Royalty)]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |mercenary}} | [[Category:Mercenaries]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |adventurer}} | [[Category:Adventurers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |politician}} | [[Category:Politicians]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |body guard}} | [[Category:Body Guards]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |queen}} | [[Category:Queens (Royalty)]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |retired}} | [[Category:Retired Characters]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |prime minister}} | [[Category:Prime Ministers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |government agent}} | [[Category:Government Agents]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |intelligence agent}} | [[Category:Intelligence Agents]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |private investigator}} | [[Category:Private Investigators]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |cop}}{{#pos: {{lc:{{{Occupation}}}}} |police}} | [[Category:Police Officers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |sorcerer}}{{#pos: {{{Occupation}}} |sorceress}} | [[Category:Sorcerers]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |doctor}}{{#pos: {{lc:{{{Occupation}}}}} |surgeon}} | [[Category:Doctors]] }}<!--
-->{{#if: {{#pos: {{lc:{{{Occupation}}}}} |lawyer}}{{#pos: {{lc:{{{Occupation}}}}} |attorney}} | [[Category:Lawyers]] }}<!--
-->}}

```

## Note

```
* TODO: Handle: JLA members (dynamic team memberships)

```