This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:DPLSearch: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
modularize
imported>MiamiVolts
Update usage
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{result|}}} | {{#if:{{{search|}}} | {{DPLSearch/Replace|result={{{result}}}|search={{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{search}}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}}} | {{{result}}} }} }}
{{#if:{{{result|}}} | {{#if:{{{search|}}} | {{DPLSearch/Replace|result={{{result}}}|search=[[{{{who}}}]]→{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{search}}}|→[[{{{who}}}]]→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}|→→|→}}}} | {{{result}}} }} }}
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Recursive replace substitution call for DPL searches to nullify the inclusions of searchstring in resultstring (i.e. when <tt>include=</tt> and <tt>includematch</tt> are used for matching but you don't actually want any included text).
Multiple replace substitution call for DPL searches to nullify the inclusions of searchstring in resultstring (i.e. when <tt>include=</tt> and <tt>includematch</tt> are used for matching but you don't actually want any included text).
<pre>
<pre>
{{DPLSearch
{{DPLSearch|result=<resultstring>|search=<searchstring>}}
|result=<resultstring>
|search=<searchstring containing right arrows of entries to be eliminated>
|who=<reference to be linkified and eliminated last>
}}
</pre>
</pre>



Latest revision as of 22:11, 20 December 2007


Usage

Multiple replace substitution call for DPL searches to nullify the inclusions of searchstring in resultstring (i.e. when include= and includematch are used for matching but you don't actually want any included text).

{{DPLSearch
  |result=<resultstring>
  |search=<searchstring containing right arrows of entries to be eliminated>
  |who=<reference to be linkified and eliminated last>
}}