Wikia

Narutopedia

Changes: Narutopedia:Sandbox

Edit this page

Back to page

Line 1: Line 1:
[[User tech::Hashirama Senju; Manga]] [[User tech::Yamato; null]] [[User tech::Madara Uchiha; Manga]]
+
<!--
  +
-->{{#if:information~aa|<!--
  +
-->{{#vardefine:varDataLine|information~aa}}<!--
  +
-->{{#if:|<!--
  +
-->{{#vardefine:varRegexLine|{{#var:varDataLine}}}}<!--
  +
-->{{#vardefine:varRegexIndex|0}}<!--
  +
-->{{#arraymap:{{{RegexPrepend}}}|\n|__$SIP_RegexPrepend$__|<!--
  +
-->{{#vardefine:varRegex|{{#regex:{{#var:varRegexLine}}|%^({{#explode:{{{RegexPrepend}}}|<nowiki/>
  +
<nowiki/>|{{#var:varRegexIndex}}}})%}}}}<!--
  +
-->{{#if:{{#var:varRegex}}|<!--
  +
-->{{#vardefine:varRegexTemplate|{{#explode:|<nowiki/>
  +
<nowiki/>|{{#var:varRegexIndex}}}}}}<!--
  +
-->{{#if:{{#var:varRegexTemplate}}<!--
  +
-->|{{Template:{{#var:varRegexTemplate}}|{{#var:varRegex}}}}<!--
  +
-->|{{#var:varRegex}}<!--
  +
-->}}<!--
  +
-->{{#vardefine:varRegexLine|{{#sub:{{#var:varRegexLine}}|{{#len:{{#var:varRegex}}}}}}}}<!--
  +
--><nowiki> </nowiki><!--
  +
-->}}<!--
  +
-->{{#vardefine:varRegexIndex|{{#expr:{{#var:varRegexIndex}}+1}}}}<!--
  +
-->|}}<!--
  +
-->}}<!--
  +
-->{{#if:(~[a-zA-Z]{0,2}<!--
  +
-->|{{#vardefine:varDataLineClean|{{#regex:{{#var:varDataLine}}|%(^{{#arraymap:|\n|_var_|(_var_)?|}}){{!}}({{#arraymap:~[a-zA-Z]{0,2}|\n|_var_|(_var_)?|}}$)%| }}}}<!--
  +
-->|{{#vardefine:varDataLineClean|{{#var:varDataLine}}}}<!--
  +
-->}}<!--
  +
-->{{#switch:{{lc:{{#explode:default|:|0}}}}
  +
|form
  +
|wikipedia
  +
|default={{#vardefine:varDataItem|{{#regex:{{#var:varDataLineClean}}|%^\[\[(?P<PageName>[^\[\]<>{}\{{!}}\r\n]+)(?P<DisplayName>\{{!}}((?!\[\[{{!}}\]\])[^\r\n\{{!}}])+)?\]\]$%|$1$2}}}}
  +
|{{#vardefine:varDataItem|{{#var:varDataLineClean}}}}
  +
}}<!--
  +
-->{{#vardefine:varDataItemValue|{{#explode:{{#var:varDataItem}}|{{!}}|0}}}}<!--
  +
-->{{#if:{{#if:<!--
  +
-->|{{#regex:{{#var:varDataItemValue}}|%^({{{RegexLineCondition}}})$%}}<!--
  +
-->|Display<!--
  +
-->}}<!--
  +
-->|{{#if:{{#explode:{{#var:varDataItem}}|{{!}}|1}}<!--
  +
-->|{{#vardefine:varDataItemDisplayName|{{#explode:{{#var:varDataItem}}|{{!}}|1}}}}<!--
  +
-->|{{#vardefine:varDataItemDisplayName|{{#var:varDataItemValue}}}}<!--
  +
-->}}<!--
  +
-->{{#if:<!--
  +
-->|{{Template:{{{PrependTemplate}}}<!--
  +
-->|{{#var:varDataItemValue}}<!--
  +
-->|<!--
  +
-->}}<!--
  +
--><nowiki> </nowiki><!--
  +
-->|<!--
  +
-->}}<!--
  +
-->{{#switch:{{lc:{{#explode:default|:|0}}}}
  +
|semantic unit=[[{{{SemanticPropertyName}}}::{{#regex:{{#var:varDataItemValue}}|%{{{SemanticPropertyUnit}}}$%|$1}} {{{SemanticPropertyUnit}}}]]
  +
|form
  +
|wikipedia
  +
|default={{#ifexpr:{{#ask:[[:{{#explode:{{#var:varDataItemValue}}|#}}]][[Modification date::+]]|format=count}}>0<!--
  +
-->|[[{{#var:varDataItemValue}}|{{#var:varDataItemDisplayName}}]]<!--
  +
-->|{{#switch:{{lc:{{#explode:default|:|0}}}}
  +
|form={{#formlink:form={{#explode:{{{linkOptions}}}|:|1}}
  +
|link text={{#var:varDataItemDisplayName}}
  +
|target={{#explode:{{#var:varDataItemValue}}|#}}
  +
|tooltip=Click here to create this page.
  +
}}
  +
|wikipedia=[[wikipedia:{{#var:varDataItemValue}}|{{#var:varDataItemDisplayName}}]]
  +
|default={{#var:varDataItemDisplayName}}<!--
  +
-->}}<!--
  +
-->}}
  +
|template={{Template:{{#explode:{{{linkOptions}}}|:|1}}|{{#var:varDataItemValue}}}}
  +
|none={{#var:varDataItemDisplayName}}
  +
|hide=<nowiki></nowiki>
  +
}}<!--
  +
-->{{#if:<!--
  +
-->|<nowiki> </nowiki><!--
  +
-->{{Template:{{{AppendTemplate}}}<!--
  +
-->|{{#var:varDataItemValue}}<!--
  +
-->|<!--
  +
-->}}<!--
  +
-->|<!--
  +
-->}}<!--
  +
-->{{#if:|<!--
  +
-->{{#ifeq:{{lc:}}|semantic unit||<!--
  +
-->{{#set:{{{SemanticPropertyName}}}={{#var:varDataItemValue}}}}<!--
  +
-->}}<!--
  +
-->{{#ifeq:false|true|<!--
  +
-->{{#vardefine:SimilarPropertyCount|{{#ask:[[{{{SemanticPropertyName}}}::{{#var:varDataItemValue}}]]|format=count}}}}<!--
  +
-->{{#ifexpr:{{#var:SimilarPropertyCount}}>1<!--
  +
-->|<nowiki> </nowiki><span title="Search the other {{#expr:{{#var:SimilarPropertyCount}}-1}} pages containing the property &quot;{{{SemanticPropertyName}}}&quot; with the value &quot;{{#var:varDataItemValue}}&quot;">[{{SERVER}}/wiki/{{#special:SearchByProperty}}?property={{urlencode:{{{SemanticPropertyName}}}|WIKI}}&value={{urlencode:{{#var:varDataItemValue}}}} {{SERVER}}/extensions/SemanticMediaWiki/skins/images/searchgray_iconsmall.png]</span><!--
  +
-->}}<!--
  +
-->}}<!--
  +
-->}}<!--
  +
-->|<!--
  +
-->{{#info:The input &quot;{{#replace:{{#var:varDataItem}}|=|&#61;}}&quot; does not meet the Regular expression condition: ({{{RegexLineCondition}}}).|warning}}<!--
  +
-->{{#if:<!--
  +
-->|{{#set:Has improper value for={{{SemanticPropertyName}}}}}<!--
  +
-->|{{#set:Has improper value for=SemanticInputParser}}<!--
  +
-->}}<!--
  +
-->}}<!--
  +
-->{{#if:~[a-zA-Z]{0,2}|<!--
  +
-->{{#vardefine:varRegexLine|{{#var:varDataLine}}}}<!--
  +
-->{{#vardefine:varRegexIndex|0}}<!--
  +
-->{{#arraymap:~[a-zA-Z]{0,2}|\n|__$SIP_RegexAppend$__|<!-- arraymap parses | so, need to calculate below, but use for number of loops required
  +
-->{{#vardefine:varRegex|{{#regex:{{#var:varRegexLine}}|%({{#explode:~[a-zA-Z]{0,2}|<nowiki/>
  +
<nowiki/>|{{#var:varRegexIndex}}}})$%}}}}<!--
  +
-->{{#if:{{#var:varRegex}}|<!--
  +
--><nowiki> </nowiki><!--
  +
-->{{#vardefine:varRegexTemplate|{{#explode:ExtraInfo|<nowiki/>
  +
<nowiki/>|{{#var:varRegexIndex}}}}}}<!--
  +
-->{{#if:{{#var:varRegexTemplate}}<!--
  +
-->|{{Template:{{#var:varRegexTemplate}}|{{#var:varRegex}}}}<!--
  +
-->|{{#var:varRegex}}<!--
  +
-->}}<!--
  +
-->{{#vardefine:varRegexLine|{{#sub:{{#var:varRegexLine}}|0|-{{#len:{{#var:varRegex}}}}}}}}<!--
  +
  +
-->}}<!--
  +
-->{{#vardefine:varRegexIndex|{{#expr:{{#var:varRegexIndex}}+1}}}}<!--
  +
-->|}}<!--
  +
-->}}<!--
  +
-->}}

Revision as of 21:54, June 9, 2013

information (aa)

Around Wikia's network

Random Wiki