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
imported>MiamiVolts
mNo edit summary
imported>MiamiVolts
(Update usage)
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{result|}}} | {{#if: {{{search|}}} | {{#if: {{#len: {{#explode: {{{search}}}|\n|1}}}} | {{DPLSearch|result={{#replace: {{{result}}} | {{#explode: {{{search}}}|\n|0}} |}}|search={{#sub: {{{result}}} | {{#pos: {{{search}}}|\n}} }} }} | {{#replace: {{{result}}} | {{#explode: {{{search}}}|\n|0}} |}} | {{{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 ==
Simple 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|result=<resultstring>|search=<searchstring>}}
{{DPLSearch
  |result=<resultstring>
  |search=<searchstring containing right arrows of entries to be eliminated>
  |who=<reference to be linkified and eliminated last>
}}
</pre>
</pre>


{{Nousercat|DPL Templates}}
{{Nousercat|DPL Templates}}
</noinclude>
</noinclude>

Latest revision as of 17: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>
}}