Template:Template usage: Difference between revisions
Appearance
naming the test link is no longer an option |
limit fixed width fonts to only the critical parts of the regex |
||
| 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 = | | name = {{{name|{{#invoke:String|replace | ||
|{{#invoke:String|replace | |{{#invoke:String|replace | ||
|hastemplate:"{{{1|{{{template|Val}}}}}}"<!-- | |hastemplate:"{{{1|{{{template|Val}}}}}}"<!-- | ||
| Line 68: | Line 68: | ||
|{{lc:{{{1|{{{template|val}}}}}}}}|1|1}}]{{#invoke:String|sub | |{{lc:{{{1|{{{template|val}}}}}}}}|1|1}}]{{#invoke:String|sub | ||
|{{{1|{{{template|val}}}}}}|2}}\{{!}}<!-- | |{{{1|{{{template|val}}}}}}|2}}\{{!}}<!-- | ||
-->[^}]*<!-- | --><kbd>[^}]*<!-- | ||
-->{{{pattern}}}/<!-- Namespace numbers need upkeep | -->{{{pattern}}}/</kbd><!-- Namespace numbers need upkeep | ||
--> prefix:{{#switch:{{{prefix}}} | --> prefix:{{#switch:{{{prefix}}} | ||
|#default = {{{prefix}}} | |#default = {{{prefix}}} | ||
| Line 95: | Line 95: | ||
|118 = {{ns:118}}: | |118 = {{ns:118}}: | ||
|119 = {{ns:119}}: | |119 = {{ns:119}}: | ||
}}|[|[}}|]|]}}}}} | }}|[|[}}|]|]}}}}}<!-- end {{replace}} {{{name}}} --> | ||
}}<!-- End of plainlinks #1, true true | }}<!-- End of plainlinks #1, true true | ||
| Line 156: | Line 156: | ||
}} | }} | ||
| name = | | name = | ||
{{{name|{{#invoke:String|replace | |||
|{{#invoke:String|replace | |{{#invoke:String|replace | ||
|hastemplate:"{{{1|{{{template|Val}}}}}}"<!-- | |hastemplate:"{{{1|{{{template|Val}}}}}}"<!-- | ||
| Line 184: | Line 184: | ||
|118 = {{ns:118}}: | |118 = {{ns:118}}: | ||
|119 = {{ns:119}}: | |119 = {{ns:119}}: | ||
}}|[|[}}|]|]}}}}} | }}|[|[}}|]|]}}}}}<!-- end {{replace}} {{{name}}} --> | ||
}} <!-- end plainlinks #3 | }} <!-- end plainlinks #3 | ||
-->| <!-- PREFIX now false, PATTERN still false --> | -->| <!-- PREFIX now false, PATTERN still false --> | ||
| Line 195: | Line 195: | ||
}} | }} | ||
}} | }} | ||
| name = | | name = {{{name|{{#invoke:String|replace | ||
|{{#invoke:String|replace | |{{#invoke:String|replace | ||
|hastemplate:"{{{1|{{{template|Val}}}}}}"|[|[}}|]|]}}}}} | |hastemplate:"{{{1|{{{template|Val}}}}}}"|[|[}}|]|]}}}}} | ||
}} <!-- 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 19:23, 30 June 2015
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]