வார்ப்புரு:Comics infobox sec/genrecat
{{#if:{{{Adventure|}}}|
      {{#if:{{{MArts|}}}{{{Spy|}}}{{{Superhero|}}}{{{War|}}}{{{Bond|}}}||
        [[Category:Action-adventure comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{AltHistory|}}}|[[Category:Alternate history comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Anarch|}}}|[[Category:Anarchist comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Anthology|}}}|[[Category:Comics anthologies|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Autobio|}}}|[[Category:Autobiographical comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Biopunk|}}}|[[Category:Biopunk comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Christian|}}}|[[Category:Christian comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 
 --&gt;{{#if:{{{Adaptation|}}}|[[Category:Comics based on {{#switch:{{{Adaptation|}}}
                                                         |video game
                                                         |vg = video games
                                                         |novel = fiction
                                                         |film = films
                                                       }}{{!}}{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 
 --&gt;{{#if:{{{Furry|}}}{{{Anthro|}}}|[[Category:Comics featuring anthropomorphic characters|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 
 --&gt;{{#if:{{#ifeq:{{{Furry|none}}}|supress|1}}|[[Category:Comics featuring anthropomorphic characters|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 
 --&gt;{{#if:{{{Crime|}}}|
      {{#if:{{{Detective|}}}{{{Mystery|}}}||
        [[Category:Crime comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Crossover|}}}|[[Category:Crossover comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Chthulu|}}}|[[Category:Cthulhu Mythos comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Cyberpunk|}}}|
      {{#if:{{{Biopunk|}}}{{{Steampunk|}}}|
        |[[Category:Cyberpunk comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Erotic|}}}|[[Category:Erotic comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Fantasy|}}}|
      {{#if:{{{Historical|}}}|
        {{#if:{{{MArts|}}}|
          {{#if:{{{zh|}}}||
            [[Category:Fantasy comics|{{{sort|{{PAGENAME}}}}}]]
          }}|
          [[Category:Fantasy comics|{{{sort|{{PAGENAME}}}}}]]
        }}|
        [[Category:Fantasy comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{#ifeq:{{{Myth|none}}}|Greek|1}}{{#ifeq:{{{Myth|none}}}|Roman|1}}|[[Category:Greco-Roman mythology in comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Historical|}}}|
      {{#if:{{{Fantasy|}}}|
        {{#if:{{{MArts|}}}|
          {{#if:{{{zh|}}}||
            {{#if:{{{AltHistory|}}}||
              [[Category:Historical comics|{{{sort|{{PAGENAME}}}}}]]
            }}
          }}|
          {{#if:{{{AltHistory|}}}||
            [[Category:Historical comics|{{{sort|{{PAGENAME}}}}}]]
          }}
        }}|
        {{#if:{{{AltHistory|}}}||
          [[Category:Historical comics|{{{sort|{{PAGENAME}}}}}]]
        }}
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Horror|}}}|
      {{#if:{{{Vampire|}}}{{{Werewolf|}}}{{{Zombie|}}}{{{Chthulu|}}}||
        [[Category:Horror comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Humor|}}}|[[Category:Humor comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Bond|}}}|[[Category:James Bond comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{LoEG|}}}|
      {{#ifeq:{{{altcat|none}}}|The League of Extraordinary Gentlemen||
        [[Category:The League of Extraordinary Gentlemen|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Magic|}}}|[[Category:Magic in comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{MArts|}}}|
      {{#if:{{{Historical|}}}|
        {{#if:{{{Fantasy|}}}|
          {{#if:{{{zh|}}}||
            [[Category:Martial arts comics|{{{sort|{{PAGENAME}}}}}]]
          }}|
          [[Category:Martial arts comics|{{{sort|{{PAGENAME}}}}}]]
        }}|
        [[Category:Martial arts comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Detective|}}}{{{Mystery|}}}|[[Category:Mystery comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{SciFi|}}}|
      {{#if:{{{War|}}}|
        [[Category:Military science fiction comics|{{{sort|{{PAGENAME}}}}}]]
      }}|
      {{#if:{{{War|}}}|
        {{#if:{{{SciFi|}}}|
          [[Category:Military science fiction comics|{{{sort|{{PAGENAME}}}}}]]
        }}
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Myth|}}}|
      {{#ifeq:{{{Myth|none}}}|Norse||
        {{#ifeq:{{{Myth|none}}}|Greek||
          {{#ifeq:{{{Myth|none}}}|Roman||
            [[Category:Mythology in comics|{{{sort|{{PAGENAME}}}}}]]
          }}
        }}
      }}
    }}&lt;!--
 --&gt;{{#ifeq:{{{Myth|none}}}|Norse|[[Category:Norse mythology in comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Office|}}}|[[Category:Office comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{PostApoc|}}}|[[Category:Post-apocalyptic comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Romance|}}}|[[Category:Romance comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{SciFi|}}}|
      {{#if:{{{Biopunk|}}}{{{Cyberpunk|}}}{{{PostApoc|}}}{{{Steampunk|}}}{{{War|}}}{{{LoEG|}}}{{{WotW|}}}||
        [[Category:Science fiction comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Spy|}}}|
      {{#if:{{{Bond|}}}||
        [[Category:Spy comics|{{{sort |{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Steampunk|}}}|
      {{#if:{{{LoEG|}}}{{{WotW|}}}||
        [[Category:Steampunk comics|{{{sort |{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Superhero|}}}|[[Category:Superhero comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{TechnoThril|}}}|[[Category:Techno-thriller comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Vampire|}}}|[[Category:Vampires in comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{War|}}}|
      {{#if:{{{SciFi|}}}{{{WW1|}}}{{{WW2|}}}||
        [[Category:War comics|{{{sort|{{PAGENAME}}}}}]]
      }}
    }}&lt;!--
 --&gt;{{#if:{{{WotW|}}}|[[Category:War of the Worlds comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Werewolf|}}}|[[Category:Werewolves in comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Western|}}}|[[Category:Western (genre) comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{WW1|}}}|[[Category:World War I comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{WW2|}}}|[[Category:World War II comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 --&gt;{{#if:{{{Fantasy|}}}|
      {{#if:{{{Historical|}}}|
        {{#if:{{{MArts|}}}|
          {{#if:{{{zh|}}}|
            [[Category:Wuxia comics|{{{sort|{{PAGENAME}}}}}]]
          }}
        }}
      }}
    }}&lt;!--
 --&gt;{{#if:{{{Zombie|}}}|[[Category:Zombies in comics|{{{sort|{{PAGENAME}}}}}]]}}&lt;!--
 
 --&gt;{{#if:{{{Furry|}}}|[[Category:Comics genre cleanup]]}}&lt;noinclude&gt;
 Call structure:
 
 &lt;pre&gt;
 {{Comics infobox sec/genrecat
 |sort        = {{{sort|}}}/{{{sortkey|}}}/{{{sort_title|}}}
 |Adventure   = {{{Adventure|}}}
 |AltHistory  = {{{AltHistory|}}}
 |Anarch      = {{{Anarch|}}}
 |Anthology   = {{{Anthology|}}}
 |Autobio     = {{{Autobio|}}}
 |Biopunk     = {{{Biopunk|}}}
 |Bond        = {{{Bond|}}}
 |Christian   = {{{Christian|}}}
 |Chthulu     = {{{Chthulu|}}}
 |Crime       = {{{Crime|}}}
 |Crossover   = {{{Crossover|}}}
 |Cyberpunk   = {{{Cyberpunk|}}}
 |Detective   = {{{Detective|}}}
 |Erotic      = {{{Erotic|}}}
 |Fantasy     = {{{Fantasy|}}}
 |Furry       = {{{Furry|}}}
 |Historical  = {{{Historical|}}}
 |Horror      = {{{Horror|}}}
 |Humor       = {{{Humor|}}}
 |LoEG        = {{{LoEG|}}}
 |Magic       = {{{Magic|}}}
 |MArts       = {{{MArts|}}}
 |Mystery     = {{{Mystery|}}}
 |Myth        = {{{Myth|}}}
 |Office      = {{{Office|}}}
 |PostApoc    = {{{PostApoc|}}}
 |Romance     = {{{Romance|}}}
 |SciFi       = {{{SciFi|}}}
 |Spy         = {{{Spy|}}}
 |Steampunk   = {{{Steampunk|}}}
 |Superhero   = {{{Superhero|}}}
 |TechnoThril = {{{TechnoThril|}}}
 |Vampire     = {{{Vampire|}}}
 |War         = {{{War|}}}
 |WotW        = {{{WotW|}}}
 |Werewolf    = {{{Werewolf|}}}
 |Western     = {{{Western|}}}
 |WW1         = {{{WW1|}}}
 |WW2         = {{{WW2|}}}
 |zh          = {{{zh|}}}
 |Zombie      = {{{Zombie|}}}
 }}
 &lt;/pre&gt;