Jump to content

Template:Search link: Difference between revisions

From Fifth Empire Wiki
comments, spacing, functionality: use module:String to change any square brackets in "link=" labeled portion so it can label regex searches with the actual query
put the nowiki's back so leading * and # are escaped from wiki markup
Line 54: Line 54:
     -->|{{#invoke:String|replace
     -->|{{#invoke:String|replace
         |{{#if:
         |{{#if:
         {{{2|{{{link|}}}}}}
         {{{2|{{{link|}}}}}}<!-- If a label is given, -->
           |{{{2|{{{link|}}}}}}
           |<nowiki />{{{2|{{{link|}}}}}}<!-- protect it from a leading * or # -->
           |{{{1|{{{text|}}}}}}<!--
           |<nowiki />{{{1|{{{text|}}}}}}<!-- by using <nowiki />  (Help:wikitext)
       -->}}<!--
       -->}}<!--
     -->|[|&#91;}}<!-- ] with its html symbol
     -->|[|&#91;}}<!-- ] with its html symbol

Revision as of 11:42, 12 July 2015