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

提供: ひつじ小屋別館2代目
移動先: 案内検索
(1版)
(%22Term1+Term2+etc%22 の形式を使用することでフレーズ検索もできます)
 
1行目: 1行目:
{{PD Help Page}}
+
<languages/>
 +
{{TNT|PD Help Page}}
 
テンプレートを利用してキーワードを使用するトピックの外部検索を作成することは可能です。
 
テンプレートを利用してキーワードを使用するトピックの外部検索を作成することは可能です。
  
 
例えば、次の内容はGoogleに対して動作します:
 
例えば、次の内容はGoogleに対して動作します:
 
+
<pre style="overflow: auto"><nowiki>
<pre><nowiki>
+
<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?hl=en&safe=off&q={{{1|Wiki}}}&btnG=Search&meta= {{{1|Google}}}]</span>
 
 
 
== 使い方 ==
 
Google検索エンジンで検索クエリへのリンクを可能にします:
 
 
<noinclude>
 
<noinclude>
 +
== Usage ==
 +
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>
 
{{Google|Term1+Term2+Term3}}
 
{{Google|Term1+Term2+Term3}}
15行目: 14行目:
 
[[Category:Template|Google]]
 
[[Category:Template|Google]]
 
</noinclude></nowiki></pre>
 
</noinclude></nowiki></pre>
 
 
使い方はとてもシンプルで簡単です。 <nowiki>{{Google|firstTerm+Second+etc}}</nowiki>  
 
使い方はとてもシンプルで簡単です。 <nowiki>{{Google|firstTerm+Second+etc}}</nowiki>  
  
%22Term1+Term2+etc%22 を利用することでフレーズを行うことも可能です。
+
%22Term1+Term2+etc%22 の形式を使用することでフレーズ検索もできます
  
 
* 外部検索は検索を効果的にするある種のキーワードを要求する記事を検索する場合に便利です。
 
* 外部検索は検索を効果的にするある種のキーワードを要求する記事を検索する場合に便利です。
 
* 編集者にとって、ウェブの検索をより速く苦痛無くできるようになります。
 
* 編集者にとって、ウェブの検索をより速く苦痛無くできるようになります。
  
wikiとフォーラムが一緒に動作するソフトウェア開発wikiにおいて同じタイプのバグレポートのために、テンプレートの別のアプリケーションは検索フォーラムを含みます。
+
テンプレートの他の用法としては、ウィキとフォーラムが一緒に動作するソフトウェア開発ウィキにおいて、同種のバグレポートがないか探せるようにするためのフォーラム検索テンプレートが挙げられます。
  
注: Wikipediaには同じような効果がある[[help:interwiki linking/ja|インターウィキの接頭辞]]があるので、<nowiki>[[Google:firstTerm+Second+etc]]</nowiki>でgooogle検索の結果にリンクすることが出来ますが、それでもテンプレートは別の検索エンジンにリンクするために便利です。
+
注: Wikipediaには同じような効果がある{{ll|Help:Links#Interwiki|インターウィキの接頭辞}}があるので、<nowiki>[[Google:firstTerm+Second+etc]]</nowiki>でgooogle検索の結果にリンクすることが出来ますが、それでもテンプレートは別の検索エンジンにリンクするために便利です。
  
[http://www.clickwiki.info/index.php/Template:Google External reference to template example in use at ClickWiki.info]
+
For a clear advantage of implementing a template over the default Google interwiki prefix, consider the following, modified example:
 +
<pre style="overflow: auto"><nowiki>
 +
<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 ==
  
{{languages|Help:External searches}}
+
Allows to establish a link to a search query at the Google search engine:
 
+
* <code>{{Google|Term1 Term2 Term3}}</code>
[[Category:Help/ja|{{PAGENAME}}]]
+
* <code>{{Google|"a phrase"}}</code>
[[Category:Search/ja|{{PAGENAME}}]]
+
[[Category:Template|Google]]
 +
</noinclude></nowiki></pre>
 +
Note the application of MediaWiki {{ll|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>.
 +
[[Category:Help{{langcat|External searches}}|{{PAGENAME}}]]
 +
[[Category:Search{{langcat|External searches}}|{{PAGENAME}}]]

2014年2月23日 (日) 08:04時点における最新版

PD 注意: このページを編集すると、編集内容が CC0 のもとで公開されることに同意したと見なされます。詳細はパブリック・ドメインのヘルプ ページを参照してください。
PD
</div>

テンプレートを利用してキーワードを使用するトピックの外部検索を作成することは可能です。

例えば、次の内容は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>

使い方はとてもシンプルで簡単です。 {{Google|firstTerm+Second+etc}}

%22Term1+Term2+etc%22 の形式を使用することでフレーズ検索もできます

  • 外部検索は検索を効果的にするある種のキーワードを要求する記事を検索する場合に便利です。
  • 編集者にとって、ウェブの検索をより速く苦痛無くできるようになります。

テンプレートの他の用法としては、ウィキとフォーラムが一緒に動作するソフトウェア開発ウィキにおいて、同種のバグレポートがないか探せるようにするためのフォーラム検索テンプレートが挙げられます。

注: Wikipediaには同じような効果があるインターウィキの接頭辞Help:Links#Interwikiがあるので、[[Google:firstTerm+Second+etc]]でgooogle検索の結果にリンクすることが出来ますが、それでもテンプレートは別の検索エンジンにリンクするために便利です。

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:
* <code>{{Google|Term1 Term2 Term3}}</code>
* <code>{{Google|"a phrase"}}</code>
[[Category:Template|Google]]
</noinclude>

Note the application of MediaWiki magic wordHelp:Magic words 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.

案内メニュー