Template:Search link: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Daniel Mietchen
(brought over from http://en.wikipedia.org/w/index.php?title=Template:Search_link&oldid=286926116)
 
imported>Daniel Mietchen
(line break)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}
| <!-- if the first parameter exists, do work -->
| <!-- if the first parameter exists, do work -->
   <span class="plainlinks">[{{fullurl:Special:Search|search={{
   <span class="plainlinks">[{{fullurl:Special:Search|search={{
Line 50: Line 50:
| <!-- if the first parameter does not exist, show syntax -->
| <!-- if the first parameter does not exist, show syntax -->
   <code><nowiki>{{search link|search string|link text}}</nowiki></code>
   <code><nowiki>{{search link|search string|link text}}</nowiki></code>
}}{{#if:{{NAMESPACE}}|{{ns:0}}|
}}</includeonly><noinclude>{{TlDoc}}</noinclude>
  {{-}}
  {{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]].}}
}}<noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 14:48, 7 February 2010

This documentation is transcluded from Template:Search link/doc (edit | history)

This is a template I am currently testing.
Documentation or speedydelete to follow in due course (and if I haven't done this within a week from now, please remind me — thanks!).
Daniel Mietchen 20:09, 7 February 2010 (UTC)

Usage

Place instructions here. Any example code should go in tags like this ..., putting the code where the dots are.

Example

Put an example of the code inside the following tags, where the dots are :

...

Now put the same example code here, without the

tags. This time it will be interpreted to give the normal result of including this code on a CZ page.