Narutopedia
Register
No edit summary
(Replaced content with "{{Sandbox}}<!-- DO NOT remove this -->")
Line 1: Line 1:
  +
{{Sandbox}}<!-- DO NOT remove this -->
<!--
 
-->{{#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 11:57, 10 June 2013

Edit this page

This "sandbox" page is to allow you to carry out experiments. Please feel free to try your skills at formatting here. If you want to learn more about how to edit a wiki, please read this help page or the tutorial at Wikipedia.

To edit, click here or "Edit this page" at the top of the page, make your changes in the dialog box, and click the "Publish" button when you are finished. Please do not add material that is any way offensive, that is copyrighted, or that is at all libelous.

If you are looking for information about rules and policies, see Rules.


Content added here will not stay permanently; this page is cleared regularly. (Click here to reset the sandbox.)

Testing Area