「ヘルプ:External searches」の版間の差分

提供: ひつじ小屋別館2代目
移動先: 案内検索
(1版 をインポートしました)
 
(3人の利用者による、間の4版が非表示)
1行目: 1行目:
<languages/>
+
<languages />
 
{{TNT|PD Help Page}}
 
{{TNT|PD Help Page}}
 
<translate>
 
<translate>
 +
<!--T:1-->
 
It is possible to create an external searches of a topic using key words using a template.
 
It is possible to create an external searches of a topic using key words using a template.
  
 +
<!--T:2-->
 
For example, this is something that would work for Google:
 
For example, this is something that would work for Google:
 
</translate>
 
</translate>
9行目: 11行目:
 
<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{{1|Wiki}}} {{{1|Google}}}]</span>
 
<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{{1|Wiki}}} {{{1|Google}}}]</span>
 
<noinclude>
 
<noinclude>
==Usage==
+
== Usage ==
 
Allows to establish a link to a search query at the Google search engine:
 
Allows to establish a link to a search query at the Google search engine:
 
<div style="display:table; width:auto;"><pre>
 
<div style="display:table; width:auto;"><pre>
17行目: 19行目:
 
</noinclude></nowiki></pre>
 
</noinclude></nowiki></pre>
 
<translate>
 
<translate>
The usage is very simple and easy to use. <nowiki>{{Google|firstTerm+Second+etc}}</nowiki>  
+
<!--T:3-->
 +
The usage is very simple and easy to use:</translate> <code><nowiki>{{Google|</nowiki><translate><!--T:10-->
 +
firstTerm</translate>+<translate><!--T:11-->
 +
Second</translate>+<translate><!--T:12-->
 +
etc</translate><nowiki>}}</nowiki></code>.
  
It is also possible to do phrases by using %22Term1+Term2+etc%22
+
<translate><!--T:4-->
 +
It is also possible to do phrases by using</translate> <code>%22<translate><!--T:13-->
 +
Term1</translate>+<translate><!--T:14-->
 +
Term2</translate>+<translate><!--T:15-->
 +
etc</translate>%22</code>.
  
*External searches are useful where an article requires certain keywords to make an effective search.
+
<translate><!--T:5-->
*For the editor it allows making searches of web more quickly and painlessly.
+
* External searches are useful where an article requires certain keywords to make an effective search.
 +
* For the editor it allows making searches of web more quickly and painlessly.
  
 +
<!--T:6-->
 
Other applications of the template include searching Forums, for bug reports of the same type for software development wikis where the wiki and forum work together.
 
Other applications of the template include searching Forums, for bug reports of the same type for software development wikis where the wiki and forum work together.
 +
</translate>
  
Note: Wikipedia has an [[Help:Links#Interwiki_links|interwiki prefix]] with a similar effect, so you can link to google results with <nowiki>[[Google:firstTerm+Second+etc]]</nowiki>, although templates are still useful for linking other search engines.
+
{{TNT|Note}} <translate><!--T:7-->
 +
Wikipedia has an [[<tvar|h-links>Special:MyLanguage/Help:Links#Interwiki</>|interwiki prefix]] with a similar effect, so you can link to google results with <tvar|code1><code><nowiki>[[</nowiki>Google</>:firstTerm+Second+etc<tvar|code2><nowiki>]]</nowiki></code></>, although templates are still useful for linking other search engines.</translate>
  
 +
<translate><!--T:8-->
 
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
 
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
 
</translate>
 
</translate>
33行目: 48行目:
 
<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span>
 
<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span>
 
<noinclude>
 
<noinclude>
==Usage==
+
== Usage ==
 
 
 
Allows to establish a link to a search query at the Google search engine:
 
Allows to establish a link to a search query at the Google search engine:
* <code>{{Google|Term1 Term2 Term3}}</code>
+
* {{Google|Term1 Term2 Term3}}
* <code>{{Google|"a phrase"}}</code>
+
* {{Google|"a phrase"}}
 
[[Category:Template|Google]]
 
[[Category:Template|Google]]
 
</noinclude></nowiki></pre>
 
</noinclude></nowiki></pre>
 
<translate>
 
<translate>
Note the application of MediaWiki [[Help:Magic words|magic word]] <code>urlencode</code>. This grants us the convenience and elegance of entering the query string in a Wikipedia article in the same literal form we would enter it in Google search box, including spaces and quotation marks instead of representing them indirectly with <code>+</code> and <code>%20</code>.
+
<!--T:9-->
 +
Note the application of MediaWiki [[<tvar|h-mw>Special:MyLanguage/Help:Magic words</>|magic word]] <tvar|code1><code>urlencode</code></>. This grants us the convenience and elegance of entering the query string in a Wikipedia article in the same literal form we would enter it in Google search box, including spaces and quotation marks instead of representing them indirectly with <tvar|code2><code>+</code></> and <tvar|code3><code>%20</code></>.
 
</translate>
 
</translate>
[[Category:Help{{langcat|External searches}}|{{PAGENAME}}]]
+
[[Category:Help{{#translation:}}|{{PAGENAME}}]]
 +
[[Category:Search{{#translation:}}|{{PAGENAME}}]]

2016年7月24日 (日) 00:25時点における最新版

PD Note: When you edit this page, you agree to release your contribution under the CC0. See Public Domain Help Pages for more info.
PD
</div>

It is possible to create an external searches of a topic using key words using a template.

For example, this is something that would work for Google:

<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{{1|Wiki}}} {{{1|Google}}}]</span>
<noinclude>
== Usage ==
Allows to establish a link to a search query at the Google search engine:
<div style="display:table; width:auto;"><pre>
{{Google|Term1+Term2+Term3}}
</pre></div>
[[Category:Template|Google]]
</noinclude>

The usage is very simple and easy to use: {{Google|firstTerm+Second+etc}}.

It is also possible to do phrases by using %22Term1+Term2+etc%22.

  • External searches are useful where an article requires certain keywords to make an effective search.
  • For the editor it allows making searches of web more quickly and painlessly.

Other applications of the template include searching Forums, for bug reports of the same type for software development wikis where the wiki and forum work together.

Note Note: Wikipedia has an interwiki prefix with a similar effect, so you can link to google results with [[Google:firstTerm+Second+etc]], although templates are still useful for linking other search engines.

For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:

<span style="border: 1px solid #CCD5DB;">[[Image:GoogleIcon.PNG]] [http://www.google.com/search?safe=off&q={{urlencode:{{{1|Wiki}}}}} {{{1|Google}}}]</span>
<noinclude>
== Usage ==
Allows to establish a link to a search query at the Google search engine:
* {{Google|Term1 Term2 Term3}}
* {{Google|"a phrase"}}
[[Category:Template|Google]]
</noinclude>

Note the application of MediaWiki magic word urlencode. This grants us the convenience and elegance of entering the query string in a Wikipedia article in the same literal form we would enter it in Google search box, including spaces and quotation marks instead of representing them indirectly with + and %20.

案内メニュー