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
Jump to navigation
Jump to search
Content deleted Content added
imported>MiamiVolts add result replace |
imported>MiamiVolts mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#replace: {{#replace: {{#if: {{{result|}}} | {{#if: {{{search|}}} | {{#ifeq: {{#pos: {{{search}}}|→}}||<!-- no rarr match-->{{#replace: {{{result}}}}|{{{search}}}|}} |<!--At least 1 rarr match--> |
{{#replace: {{#replace: {{#if: {{{result|}}} | {{#if: {{{search|}}} | {{#ifeq: {{#pos: {{{search}}}|→}}||<!-- no rarr match-->{{#replace: {{{result}}}}|{{{search}}}|}} |<!--At least 1 rarr match-->{{DPLSearch|result={{#replace: {{{result}}}|{{#explode: {{{search}}}|→|0}}|}}|search={{#sub: {{{search}}}|{{#pos: {{{search}}}|→}}<!--close searchsub-->}}<!--close recursive call-->}}<!--close explode-->}}<!--closebracket 1 rarr match recursion call-->}}<!--closebracket ifeq-->}}<!--closebracket ifsearch-->}}<!--closebracket ifresult-->}}|<p>|<!--closebracket 2nd replace-->}}|<span></span>|<!--closebracket 1st replace-->}} |
||
<noinclude> |
<noinclude> |
||
== Usage == |
== Usage == |
||
Revision as of 00:03, 20 December 2007
|
|}}||}}
Usage
Recursive 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>}}