Template:Infobox icon

{{#if:{{{Icon Type|}}}|{{#ifexist:File:{{{{{Icon Type}}} icon/fname|{{{1|}}}}}|{{#ifeq:{{{{{Icon Type}}} icon/fname|{{{1|}}}}}|{{#replace:{{{Icon Type|}}}|Ninja clan|Clan}}-Noicon.svg||}}}}{{#switch:{{{Icon Type}}}|Kekkei Genkai={{#set:{{#switch:{{{Infobox Type|}}}|Character=Has|Uses}} kekkei genkai={{{1|}}}}}|Ninja loyalty={{#set:Loyalty={{#switch:{{ucfirst:{{lc:{{{1|}}}}}}} }}}}|Ninja clan={{#set:Clan={{ucfirst:{{{1|}}}}}}}}}|}}
 * Konohagakure=Leaf|Sunagakure=Sand|Kirigakure=Mist|Kumogakure=Cloud|Otogakure=Sound|Amegakure=Rain|Kusagakure=Grass|Takigakure=Waterfall|Iwagakure=Rock|Getsugakure=Moon|Yukigakure=Snow|Yugakure=Hot water|Hoshigakure=Star|Myōbokuzan=Toads|Takumi village=Artisan|{{{1|}}
 * Usage

This template is meant for use in infobox's.

Acceptable Entries for Icon Type:
 * Ninja clan
 * Ninja loyalty
 * Kekkei Genkai
 * Nature
 * Ninja rank