![]() | This is a documentation subpage for User:Who R you?/sandbox4. It may contain usage information, categories and other content that is not part of the original user template page. |
|
Usage
Creates a blekko search link for the specified query. If only the trailing "|" pipe character is specified and the search query is omitted, searches for the name of the page containing the template. By default, searches in the predefined Reliable Sources search scope (slashtag /wprs/rs); but alternative slashtag(s) may be specified.
{{blekko | Query | Slashtag | Caption | Secure | Style }}
Parameter | Name | Description | Default | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
# 1 | Query | Search Query | blekko article (if missing) or searches current page name (if blank) | |||||||||||||||||||||||
| ||||||||||||||||||||||||||
# 2 | Slashtag | Scope of the web to be searched | /wprs/rs | |||||||||||||||||||||||
| ||||||||||||||||||||||||||
# 3 | Caption | Link Caption to be clicked | blekko | |||||||||||||||||||||||
| ||||||||||||||||||||||||||
# 4 | Secure | Secure connection | (http://) non−secure | |||||||||||||||||||||||
| ||||||||||||||||||||||||||
# 5 | Style | Style | ||||||||||||||||||||||||
|
Notes
If Search Query contains a slash ("/"), it must be enclosed in quotation marks; otherwise unexpected results may occur as any text following the / may be treated as a slashtag. | |
"whitespace" indicates any continuous combination of single or multiple spaces, tabs, linefeeds, etc. (i.e. No letters, numbers, symbols, etc). A non-breaking space ( ) is not whitespace and parameters containing such are treated as non-blank. | |
"blank" indicates that the parameter is specified, by the use of the "|" pipe symbol, but no value is assigned. | |
(i.e. In both sequences "param1||param3 " and "param1| |param3 " → param2 is blank)
| |
"missing" indicates that a parameter which could be specified is not. | |
(i.e. If 3 parameters are valid, then in the following sequences | |
"param1| " → param2 is blank and param3 is missing;
| |
"param1 " → param2 & param3 are both missing;
| |
"param1|| " → param2 & param3 are both blank.)
|
Examples
Sample Template Code | Displays | Result |
---|---|---|
{{blekko}}
|
blekko | Opens the blekko Wikipedia article. Same as [[blekko]]. |
{{blekko|}}
|
blekko | Opens the blekko search and searches for "doc" (the current page name) in the default slashtag ( /wprs/rs ). |
{{blekko| }}
|
blekko | Opens the blekko search with the default slashtag ( /wprs/rs ). |
{{blekko|Hello}}
|
blekko | Does a blekko search for "Hello" in Reliable Sources ( /wprs/rs ). |
{{blekko|Hello|}}
|
blekko | Same as above. Regardless of the trailing "|" here. |
{{blekko|Hello|strict}}
|
blekko | Does a blekko search for "Hello" in Strict Sources ( /wprs/strict ). |
{{blekko|Hello|strict|}}
|
Hello | Same search as above. Note that the Search Query is used as the Link Caption since the "|" was specified but no Link Caption was passed. |
{{blekko|Hello|strict| }}
|
Same search as above. Note that nothing appears except the open in window icon for this Link because a non−breaking space ( ) was passed as the Link Caption. If the plainlinks class is used, nothing is visible to indicate a link unless the cursor hovers over the area of the space. | |
{{blekko|Hello|strict|Link Caption}}
|
Link Caption | Same search as above but displays a custom Link Caption. |
{{blekko|Hello|strict|Link Caption|}}
|
Link Caption | Same as above, regardless of trailing "|" here. |
{{blekko|Hello|strict|Link Caption| }}
|
Link Caption | Same as above. Whitespace is ignored in parameter 4 (Secure). |
{{blekko|Hello|strict|Link Caption| }}
|
Link Caption | Still searches for "Hello" in the Strict Sources slashtag as above. Since parameter 4 (Secure) is not blank or missing (a non−breaking space is not a blank), search is conducted over an https:// secure internet connection. Recommended "s" or "S" be used in parameter # 4 (secure) as an intuitive reminder of parameter function, and for future enhancements. |
{{blekko|Hello|strict|Link Caption|S}}
|
Link Caption | Same as above. If anything other than whitespace is specified for parameter 4 (Secure), an https:// secure connection is used. |
{{blekko|Hello|strict|Link Caption|z|font-size:1.5em;}}
|
Link Caption | Same secure search as above, but font size of Link Caption is expanded 1½ times normal page font. |
{{blekko|Hello|strict||z| color:Green;}}
|
Hello | Same secure search as above; however, since Link Caption is omitted, the Query is used as the link caption; and it's styled Green. |
{{blekko|Hello||||font-size:0.6em;}}
|
Hello | Searches the default slashtag ( /wprs/rs ) for "Hello" using the default http:// connection. Since Link Caption is omitted, the Search Query is used as the link caption as well and here it's styled 60% size. |
{{blekko|Wikipedia||Wikipedia|s|font-size:1.5em;}}
|
Wikipedia | Searches the default Reliable Sources slashtag ( /wprs/rs ) for "Wikipedia"; the font is enlarged. Uses a secure https:// connection for the query. |
{{blekko|Wikipedia|strict||S|font-size:1.5em; letter-spacing:2px;}}
|
Wikipedia | Searches strict sources ( /wprs/strict ) for "Wikipedia"; the link caption is styled with enlarged font and spread letter spacing. A secure https:// connection is again used. |
{{blekko|Wikipedia|/all|||"font-size:1.5em; letter-spacing:3px;"}}
|
Wikipedia | Searches the full web for all matches of "Wikipedia" (excluding sites identified by blekko as datafarms and spam sites). The default http:// connection is used. Note: The style code is ignored because it is enclosed in quotes. |
{{blekko||none|||letter-spacing:3px;}}
|
doc | Searches the full web for all matches of "doc" (the current page name); the link caption (which is the same as the current page name because Link Caption was specified but blank) is styled with wide spacing. |
{{blekko|Style=background-color:yellow;| Slashtag=none|Query=}}
|
blekko | Named parameters are used for Style to set the background colour, hiliting the link, for Slashtag, to force a blekko full web search, and for Query, to specify, but leave blank, the query, causing current pagename to be searched. |
{{blekko|Caption=|Query=}}
|
doc | Searches the current page name ("doc" here), and specifies, but leaves blank, the Link Caption parameter causing the Query ("doc") to be used for the link. |
{{blekko|Caption=CAPTION| Query=Wikipedia|Style=font-weight:bold;}}
|
CAPTION | Sets the Link Caption to CAPTION (bolded), and searches in reliable sources for "Wikipedia". |
{{blekko|Caption=WP's blekko}}
|
WP's blekko | Sets the Link Caption to "WP's blekko"; opens Wikipedia Blekko article since Query is not set. |
{{blekko|Query=Hello}}
|
blekko | Does a blekko search for "Hello" in Reliable Sources ( /wprs/rs ). Same as the 4th example. |
Slashtags
The following wprs slashtags are defined in blekko:
Slashtag | Scope |
---|---|
Slashtags listed in Wikipedia are only a copy of those already defined in blekko. Changing this list will have no effect on blekko searches. |