Jump to content

Template:Template usage: Difference between revisions

From Fifth Empire Wiki
fix the ] problem in the search link name
fixed width search link font
Line 60: Line 60:
     For show, appearance of link looks just like the query: -->
     For show, appearance of link looks just like the query: -->


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


Line 113: Line 113:
           }}
           }}
         }}
         }}
       | name = <code>{{{name|{{#invoke:String|replace
       | name = {{{name|{{#invoke:String|replace
       |Test regexp. Locate {{{template|Val}}}|]|&#93;}}}}}</code>
       |Test regexp. Locate {{{template|Val}}}|]|&#93;}}}}}
     }}<!-- end plainlinks #2 -->
     }}<!-- end plainlinks #2 -->
   }}<!-- end first nested #if:prefix  -->
   }}<!-- end first nested #if:prefix  -->
Line 156: Line 156:
         }}
         }}
       | name =  
       | name =  
       <code>{{{name|{{#invoke:String|replace
       <kbd>{{{name|{{#invoke:String|replace
       |hastemplate:"{{{template|Val}}}"<!--
       |hastemplate:"{{{template|Val}}}"<!--
       --> prefix:{{#switch:{{{prefix}}}
       --> prefix:{{#switch:{{{prefix}}}
Line 183: Line 183:
       |118 = {{ns:118}}:
       |118 = {{ns:118}}:
       |119 = {{ns:119}}:
       |119 = {{ns:119}}:
       }}|]|&#93;}}}}}</code><!-- three extra brackets due to {{{name}}} -->
       }}|]|&#93;}}}}}</kbd><!-- end {{replace}} {{{name}}} -->
     }} <!-- end plainlinks #3
     }} <!-- end plainlinks #3
   -->| <!-- PREFIX now false, PATTERN still false -->
   -->| <!-- PREFIX now false, PATTERN still false -->
Line 194: Line 194:
           }}
           }}
         }}
         }}
       | name = <code>{{{name|{{#invoke:String|replace
       | name = <kbd>{{{name|{{#invoke:String|replace
       |hastemplate:"{{{template|Val}}}"|]|&#93;}}}}}</code>
       |hastemplate:"{{{template|Val}}}"|]|&#93;}}}}}</kbd>
     }} <!-- 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:39, 29 June 2015

hastemplate:"Val"