Wikia

Narutopedia

Changes: Template:Infobox/Naruto/Character

View source

Back to page

(need change to regexappendtemplate)
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#set:Name={{PAGENAME}}}}<includeonly>{{{top|}}}</includeonly><!--
+
{{#switch:{{NAMESPACE}}
  +
|Infobox
  +
| ={{#set:Name={{PAGENAME}}}}<includeonly>{{{top|}}}</includeonly><!--
   
 
-->{{iBox/Start
 
-->{{iBox/Start
|{{#ifeq:{{{unnamed character|}}}|Yes|''{{#explode:{{PAGENAME}}|(}}''|{{#explode:{{PAGENAME}}|(}}}}
+
|{{#ifeq:{{{unnamed character|}}}|Yes|''{{#explode:{{PAGENAME}}|(}}''|{{#explode:{{PAGENAME}}|(}}}} [{{SERVER}}/wiki/{{#special:Browse}}/{{PAGENAMEE}} {{SERVER}}/extensions/SemanticMediaWiki/skins/images/browse_icon.png]
 
|editlink=Infobox
 
|editlink=Infobox
 
|ref={{Content only|{{{ref|}}}}}
 
|ref={{Content only|{{{ref|}}}}}
Line 48: Line 48:
 
|SearchByProperty=true
 
|SearchByProperty=true
 
|linkOptions=Wikipedia
 
|linkOptions=Wikipedia
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{japanese voice|}}}
 
|condition={{{japanese voice|}}}
Line 59: Line 61:
 
|SearchByProperty=true
 
|SearchByProperty=true
 
|linkOptions=Wikipedia
 
|linkOptions=Wikipedia
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{english voice|}}}
 
|condition={{{english voice|}}}
Line 90: Line 94:
 
|RegexLineCondition=(?i)(january{{!}}february{{!}}march{{!}}april{{!}}may{{!}}june{{!}}july{{!}}august{{!}}september{{!}}october{{!}}november{{!}}december)(?-i)\s+([3][0,1]{{!}}[0,1,2]\d{{!}}\d)
 
|RegexLineCondition=(?i)(january{{!}}february{{!}}march{{!}}april{{!}}may{{!}}june{{!}}july{{!}}august{{!}}september{{!}}october{{!}}november{{!}}december)(?-i)\s+([3][0,1]{{!}}[0,1,2]\d{{!}}\d)
 
|SemanticPropertyName=Birthdate
 
|SemanticPropertyName=Birthdate
  +
|SearchByProperty=true
 
|PrependText=Astrological Sign
 
|PrependText=Astrological Sign
 
|PrependTemplate=Infobox_icon
 
|PrependTemplate=Infobox_icon
Line 123: Line 128:
 
|LineDelim=\n
 
|LineDelim=\n
 
|SameLineDelim=-
 
|SameLineDelim=-
  +
|RegexLineCondition=(\d+)
 
|RegexPrepend=Part I{1,2}:\s
 
|RegexPrepend=Part I{1,2}:\s
  +
|RegexAppend=s?~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
|linkOptions=none
 
|linkOptions=none
 
}}
 
}}
Line 173: Line 181:
 
|SemanticPropertyName=Blood type
 
|SemanticPropertyName=Blood type
 
|linkOptions=none
 
|linkOptions=none
  +
|RegexAppend=~[^~\r\n]*
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{blood type|}}}
 
|condition={{{blood type|}}}
Line 184: Line 194:
 
|linkOptions=Template:Infobox/Naruto/Character/Kekkei_Genkai
 
|linkOptions=Template:Infobox/Naruto/Character/Kekkei_Genkai
 
|SemanticPropertyName=Kekkei Genkai
 
|SemanticPropertyName=Kekkei Genkai
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{Kekkei Genkai|}}}
 
|condition={{{Kekkei Genkai|}}}
Line 196: Line 208:
 
|PrependTemplate=Infobox_icon
 
|PrependTemplate=Infobox_icon
 
|SemanticPropertyName=Kekkei Genkai
 
|SemanticPropertyName=Kekkei Genkai
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{Kekkei Tota|}}}
 
|condition={{{Kekkei Tota|}}}
Line 201: Line 215:
   
 
-->{{iBox/Row
 
-->{{iBox/Row
|Jinchūriki
+
|Classification
|{{#arraymap:{{{classification}}}
+
|{{SemanticInputParser/Array
|,|!|<!--
+
|value={{#arraymap:{{{classification|}}}|,|!|{{#explode:!|~}}|,}}
-->{{#ifeq:{{lc:{{#explode:!|~}}}}|tailed beast|<!--
+
|SemanticPropertyName=Classification
-->{{#arraymap:{{#sub:!|12}}
+
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
|~|$|<!--
+
|RegexAppendTemplate=ExtraInfo
-->{{#ifexpr:{{#expr:{{#arraymap:{{#sub:!|12}}|~|_fakeDelim_|1|+}}}}>1|<nowiki/>
+
}}
<!-- -->*}}<!--
+
|condition={{{classification|}}}
-->[[$|{{#explode:$|(}}]]<!--
+
}}<!--
-->{{#ifexist:$'s Jinchūriki Forms|<nowiki> </nowiki>([[$'s Jinchūriki Forms|Forms]])}}<!--
 
-->{{#arraymap:{{MediaCleaner|{{#show:$|?Appears in}}}}
 
|,|_aM_|<!--
 
-->{{#switch:_aM_||{{MediaCleaner|{{{media}}}}}=
 
|<nowiki> </nowiki><sup>(_aM_ only)</sup>
 
}}<!--
 
-->|}}<!--
 
-->|}}<!--
 
-->}}<!--
 
-->|}}
 
|condition={{#arraymap:{{{classification}}}|,|!|{{#ifeq:{{lc:{{#explode:!|~}}}}|tailed beast|true|}}|}}
 
}}<!--
 
 
   
 
-->{{iBox/Row
 
-->{{iBox/Row
Line 220: Line 234:
 
-->}}<!--
 
-->}}<!--
 
-->|}}<!--
 
-->|}}<!--
-->{{#ifexist:{{PAGENAME}}'s Jinchūriki Forms|<nowiki> </nowiki>([[{{PAGENAME}}'s Jinchūriki Forms|Forms]])}}
+
--><nowiki> </nowiki>([[Jinchūriki Forms|Forms]])
 
|condition={{#arraymap:{{{classification}}}|,|!|{{#switch:{{#explode:!|~}}|Pseudo-Jinchūriki|Jinchūriki=true}}|}}
 
|condition={{#arraymap:{{{classification}}}|,|!|{{#switch:{{#explode:!|~}}|Pseudo-Jinchūriki|Jinchūriki=true}}|}}
 
}}<!--
 
}}<!--
   
 
-->{{iBox/Row
 
-->{{iBox/Row
|Classification
+
|Jinchūriki
|{{SemanticInputParser/Array
+
|{{SemanticInputParser/Array
|value={{#arraymap:{{{classification|}}}|,|!|{{#explode:!|~}}|,}}
+
|value={{#arraymap:{{{classification}}}|,|!|<!--
|SemanticPropertyName=Classification
+
-->{{#ifeq:{{lc:{{#explode:!|~}}}}|tailed beast|{{#arraymap:{{#sub:!|12}}|~|$|$}}}}<!--
  +
-->}}
  +
|AppendTemplate=Infobox/Naruto/Character/Jinchūriki
  +
|AppendText={{{media|}}}
 
}}
 
}}
|condition={{{classification|}}}
+
|condition={{#arraymap:{{{classification}}}|,|!|{{#ifeq:{{lc:{{#explode:!|~}}}}|tailed beast|true|}}|}}
}}<!--
+
}}<!--
   
 
-->{{iBox/Row
 
-->{{iBox/Row
Line 238: Line 252:
 
|value={{{occupations|}}}
 
|value={{{occupations|}}}
 
|linkOptions=none
 
|linkOptions=none
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{occupations|}}}
 
|condition={{{occupations|}}}
Line 249: Line 265:
 
|PrependText=Ninja loyalty
 
|PrependText=Ninja loyalty
 
|PrependTemplate=Infobox_icon
 
|PrependTemplate=Infobox_icon
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{affiliations|}}}
 
|condition={{{affiliations|}}}
Line 260: Line 278:
 
|PrependText=Team
 
|PrependText=Team
 
|PrependTemplate=Infobox_icon
 
|PrependTemplate=Infobox_icon
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{teams|}}}
 
|condition={{{teams|}}}
Line 268: Line 288:
 
|{{SemanticInputParser/Array
 
|{{SemanticInputParser/Array
 
|value={{{partners|}}}
 
|value={{{partners|}}}
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{partners|}}}
 
|condition={{{partners|}}}
Line 279: Line 301:
 
|PrependText=Ninja clan
 
|PrependText=Ninja clan
 
|PrependTemplate=Infobox_icon
 
|PrependTemplate=Infobox_icon
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{clan|}}}
 
|condition={{{clan|}}}
Line 286: Line 310:
 
-->{{iBox/Header
 
-->{{iBox/Header
 
|Rank
 
|Rank
|condition={{{rank-part1|}}}{{{rank-part2|}}}{{{ninja registration|}}}{{{academy age|}}}{{{chunin age|}}}<noinclude>.</noinclude>
+
|condition={{{rank-part1|}}}
  +
{{{rank-part2|}}}
  +
{{{ninja registration|}}}
  +
{{{academy age|}}}
  +
{{{chunin age|}}}<noinclude>.</noinclude>
 
}}<!--
 
}}<!--
   
Line 333: Line 357:
 
-->{{Content only|{{#arraymap:{{{parents|}}}|,|!|{{#set:Parent={{#explode:!|~}}}}|}}}}{{iBox/Box
 
-->{{Content only|{{#arraymap:{{{parents|}}}|,|!|{{#set:Parent={{#explode:!|~}}}}|}}}}{{iBox/Box
 
|Family
 
|Family
|{{#arraymap:{{FamilyTree/Query|{{#replace:{{BASEPAGENAME}}|&#39;|'}}|{{{parents|}}}}},{{{relationship|}}}
+
|{{#arraymap:{{FamilyTree/Query|{{#replace:{{PAGENAME}}|&#39;|'}}|{{{parents|}}}}},{{{relationship|}}}
 
|,|!|<nowiki/>
 
|,|!|<nowiki/>
 
<!-- -->*{{#ifeq:{{IsUnnamed|{{#explode:!|~}}}}|Yes|
 
<!-- -->*{{#ifeq:{{IsUnnamed|{{#explode:!|~}}}}|Yes|
Line 346: Line 370:
 
-->|}}<!--
 
-->|}}<!--
 
-->|}}
 
-->|}}
|condition={{#ifexpr:{{#ask:[[Concept:Characters]][[Parent::{{BASEPAGENAME}}]]|format=count}}>0|Display}}{{{parents|}}}{{{relationship|}}}
+
|condition={{#ifexpr:{{#ask:[[Concept:Characters]][[Parent::{{PAGENAME}}]]|format=count}}>0|Display}}{{{parents|}}}{{{relationship|}}}
 
}}<!--
 
}}<!--
   
Line 357: Line 381:
 
|PrependText=Nature
 
|PrependText=Nature
 
|PrependTemplate=Infobox_icon
 
|PrependTemplate=Infobox_icon
  +
|RegexAppend=~[^~\r\n]*(~[^~\r\n]*)?
  +
|RegexAppendTemplate=ExtraInfo
 
}}
 
}}
 
|condition={{{nature type|}}}
 
|condition={{{nature type|}}}
Line 369: Line 395:
   
   
-->{{#arraymap:Jutsu, Tools|,|§|{{iBox/Box
+
-->{{iBox/Box
|hide=always
+
|1=[http://naruto.wikia.com/index.php?title=Special:Ask&offset=0&limit=500&q={{urlencode:[[Concept:Jutsu]][[User tech::{{PAGENAME}}]]}}&po={{urlencode:?Appears in=Media
|{{#switch:§
+
?Jutsu classification=Classification
|Tools=[http://naruto.wikia.com/index.php?title=Special:Ask&offset=0&limit=500&q={{urlencode:[[Concept:Tools]][[User tech::{{BASEPAGENAME}}]]}}&p=format%3Dbroadtable Tools]|Jutsu=[http://naruto.wikia.com/index.php?title=Special:Ask&offset=0&limit=500&q=%5B%5BConcept%3AJutsu%5D%5D%5B%5BUser+tech%3A%3A{{urlencode:{{PAGENAME}}}}%5D%5D&po=%3FAppears+in%3DMedia%0D%0A%3FJutsu+classification%3DClassification%0D%0A%3FChakra+Nature%0D%0A%3FJutsu+class+type%3DClass%0D%0A%3FJutsu+range%3DRange%0D%0A Jutsu]}}
+
?Chakra Nature
|{{#ask:[[Concept:§]][[User tech::{{PAGENAME}}]]
+
?Jutsu class type=Class
|?User tech
+
?Jutsu range=Range}} Jutsu]
|?Appears in
+
|2={{#ask:[[Concept:{{#switch:{{{media|}}}|=|Movie|Game|Game, Movie=Jutsu/NonCanon|Jutsu/Canon}}]][[User tech::{{PAGENAME}}]]
|?Maintenance
+
|?User tech
|format=template
+
|?Appears in
|template=Infobox/Naruto/Character/JutsuList
+
|?Maintenance
|userparam={{PAGENAME}}; {{{media|}}}
+
|format=template
|mainlabel=main
+
|template=Infobox/Naruto/Character/JutsuList
|named args=yes
+
|userparam={{PAGENAME}}; {{{media|}}}
|link=none
+
|mainlabel=main
|limit=200
+
|named args=yes
|sep=<nowiki></nowiki>
+
|link=none
}}
+
|limit=200
|condition={{#ifexpr:{{#ask:[[Concept:§]][[User tech::{{PAGENAME}}]]|format=count}}>0|DisplayBox}}
+
|sep=<nowiki></nowiki>
}}
+
}}
|}}<!--
+
|condition={{#if:{{{media|}}}|{{#ifexpr:{{#ask:[[Concept:{{#switch:{{{media|}}}|=|Movie|Game|Game, Movie=Jutsu/NonCanon|Jutsu/Canon}}]][[User tech::{{PAGENAME}}]]|format=count}}>0|DisplayBox}}}}
  +
|hide=always<!--
  +
-->}}<!--
  +
  +
-->{{iBox/Box
  +
|1=[http://naruto.wikia.com/index.php?title=Special:Ask&offset=0&limit=500&q={{urlencode:[[Concept:Tools]][[User tech::{{PAGENAME}}]]}}&p=format%3Dbroadtable Tools]
  +
|2={{#ask:[[Concept:Tools]][[User tech::{{PAGENAME}}]]
  +
|?User tech
  +
|?Appears in
  +
|?Maintenance
  +
|format=template
  +
|template=Infobox/Naruto/Character/JutsuList
  +
|userparam={{PAGENAME}}; {{{media|}}}
  +
|mainlabel=main
  +
|named args=yes
  +
|link=none
  +
|limit=200
  +
|sep=<nowiki></nowiki>
  +
}}
  +
|condition={{#ifexpr:{{#ask:[[Concept:Tools]][[User tech::{{PAGENAME}}]]|format=count}}>0|DisplayBox}}
  +
|hide=always<!--
  +
-->}}<!--
  +
   
 
--><!--
 
--><!--
 
-->{{iBox/End}}<includeonly>{{Content only||<big>'''Return to [[{{PAGENAME}}]].'''</big>}}</includeonly><!--
 
-->{{iBox/End}}<includeonly>{{Content only||<big>'''Return to [[{{PAGENAME}}]].'''</big>}}</includeonly><!--
 
--><includeonly>{{#ifeq:{{NAMESPACE}}||{{#ifeq:{{{unnamed character|}}}|Yes|{{#set:Maintenance=Name}}}}[[Category:Characters|{{PAGENAME}}]]}}{{#ifeq:{{NAMESPACE}}|Infobox|[[Category:Character infoboxes|{{PAGENAME}}]]}}</includeonly><!--
 
--><includeonly>{{#ifeq:{{NAMESPACE}}||{{#ifeq:{{{unnamed character|}}}|Yes|{{#set:Maintenance=Name}}}}[[Category:Characters|{{PAGENAME}}]]}}{{#ifeq:{{NAMESPACE}}|Infobox|[[Category:Character infoboxes|{{PAGENAME}}]]}}</includeonly><!--
--><noinclude>
+
-->|#default=<div class="warningmessage"><strong>NOTE:</strong> This template is meant to be used only on articles.</div>}}<noinclude>
   
 
==To Do==
 
==To Do==

Latest revision as of 02:46, May 25, 2014

NOTE: This template is meant to be used only on articles.

To DoEdit

  • Update Documentation.


Around Wikia's network

Random Wiki