Jump to content

Template:Search link: Difference between revisions

From Fifth Empire Wiki
add a tracking category for namespace parameters
Per talk page
Line 1: Line 1:
{{#if:{{{1|}}}
<span class="plainlinks">[{{fullurl:Special:Search|search={{
| <!-- if the first parameter exists, do work -->
  <span class="plainlinks">[{{fullurl:Special:Search|search={{
     urlencode:{{{1|}}}}}{{
     urlencode:{{{1|}}}}}{{
     #if:{{{ns|}}}  <!-- ns = all / ns0=1&ns5=1 -->
     #if:{{{ns|}}}  <!-- ns = all / ns0=1&ns5=1 -->
Line 47: Line 45:
     #if:{{{20|}}}| &{{lc:{{{20|}}}}}=1  
     #if:{{{20|}}}| &{{lc:{{{20|}}}}}=1  
     }}&fulltext=Search
     }}&fulltext=Search
   }} {{#if:{{{2|}}}|<nowiki />{{{2|}}}|<nowiki />{{{1|}}}}}]</span>
   }} {{#if:{{{2|}}}|<nowiki />{{{2|}}}|<nowiki />{{{1|}}}}}]</span>{{main other
| <!-- if the first parameter does not exist, show syntax -->
|<br clear=all />{{Warning|{{tl|Search link}} should not be used in [[WP:WIAA|articles]] as links to "search result pages" are among the [[WP:LINKSTOAVOID|links normally to be avoided]].}}
  <code><nowiki>{{search link|search string|link text}}</nowiki></code>
}}{{#if:{{NAMESPACE}}|{{ns:0}}|
  {{-}}
  {{Warning|{{tl|Search link}} should not be used in [[WP:WIAA|articles]] as links to "search result pages" are among the [[WP:LINKSTOAVOID|links normally to be avoided]].}}
}}{{#if: {{{ns|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}{{{12|}}}{{{13|}}}{{{14|}}}{{{15|}}}{{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}{{{20|}}}
}}{{#if: {{{ns|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}{{{12|}}}{{{13|}}}{{{14|}}}{{{15|}}}{{{16|}}}{{{17|}}}{{{18|}}}{{{19|}}}{{{20|}}}
  | [[Category:Search link templates with namespace parameters]]
  | [[Category:Search link templates with namespace parameters]]
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 02:45, 8 December 2014