Jump to content

Template:Template usage: Difference between revisions

From Fifth Empire Wiki
No edit summary
No edit summary
Line 57: Line 57:
       }}
       }}
     }}<!-- saw end urlencode -->
     }}<!-- saw end urlencode -->
     }}<!-- end fullurl   
     }}<!-- end fullurl  of plainlinks #1, but name it now
     For show, appearance of link looks just like the query: -->
     For show, appearance of link looks just like the query: -->


     | name = {{{name|hastemplate:"{{{template|Val}}}"<!--
     | name = {{{name|{{#invoke:String|replace
    |hastemplate:"{{{template|Val}}}"<!--
     --> insource:/\{<!--
     --> insource:/\{<!--
     -->{{#invoke:String|sub
     -->{{#invoke:String|sub
Line 93: Line 94:
         |118 = {{ns:118}}:
         |118 = {{ns:118}}:
         |119 = {{ns:119}}:
         |119 = {{ns:119}}:
       }}}}}<!-- three extra brackets due to {{{name}}} -->
       }}|]|&#93;}}}}}<!-- three extra brackets due to {{{name}}} -->
     }}<!-- End of plainlinks #1, true true
     }}<!-- End of plainlinks #1, true true


Line 112: Line 113:
           }}
           }}
         }}
         }}
       | name = {{{name|Test regexp. Locate {{{template|Val}}}}}}
       | name = {{{name|{{#invoke:String|replace
      |Test regexp. Locate {{{template|Val}}}|]|&#93;}}}}}
     }}<!-- end plainlinks #2 -->
     }}<!-- end plainlinks #2 -->
   }}<!-- end first nested #if:prefix  -->
   }}<!-- end first nested #if:prefix  -->
Line 154: Line 156:
         }}
         }}
       | name =  
       | name =  
       {{{name|hastemplate:"{{{template|Val}}}"<!--
       {{{name|{{#invoke:String|replace
      |hastemplate:"{{{template|Val}}}"<!--
       --> prefix:{{#switch:{{{prefix}}}
       --> prefix:{{#switch:{{{prefix}}}
       |#default = {{{prefix}}}
       |#default = {{{prefix}}}
Line 180: Line 183:
       |118 = {{ns:118}}:
       |118 = {{ns:118}}:
       |119 = {{ns:119}}:
       |119 = {{ns:119}}:
       }}}}}<!-- three extra brackets due to {{{name}}} -->
       }}|]|&#93;}}}}}<!-- three extra brackets due to {{{name}}} -->
     }} <!-- end plainlinks #3
     }} <!-- end plainlinks #3
   -->| <!-- PREFIX now false, PATTERN still false -->
   -->| <!-- PREFIX now false, PATTERN still false -->
Line 191: Line 194:
           }}
           }}
         }}
         }}
       | name = {{{name|hastemplate:"{{{template|Val}}}"}}}
       | name = {{{name|{{#invoke:String|replace
      |hastemplate:"{{{template|Val}}}"|]|&#93;}}}}}
     }} <!-- end plainlinks #4 -->
     }} <!-- end plainlinks #4 -->
   }} <!-- end of second nested #if:prefix -->
   }} <!-- end of second nested #if:prefix -->
}}</onlyinclude><!-- end of first, opening #if:pattern -->
}}</onlyinclude><!-- end of first, opening #if:pattern -->
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 21:14, 29 June 2015

hastemplate:"Val"