「User:Pentium5dot1/Storage facility/Google template」のはんあいだ差分さぶん

提供ていきょう:Uncyclopedia
ナビゲーションに移動いどう 検索けんさく移動いどう
(verified - it is all over the news (if you know where to look). Modifying scroogle parameter to generate only the error message and not an URL; will see about replacing w/ another engine later)
(→‎Documentation: begin documenting why encrypted.google.com is used: not entirely accurate/complete yet)
10ぎょう: 10ぎょう:
 
The parameters to this template are as follows:
 
The parameters to this template are as follows:
 
*'''1:''' Search query. Do not manually replace spaces with plus signs; the template will do that for you.
 
*'''1:''' Search query. Do not manually replace spaces with plus signs; the template will do that for you.
*'''ssl:''' Whether to use a HTTPS connection; considered true if set to <code>1</code> (the number one) and false otherwise. Do not attempt to use the words <code>yes</code> or <code>true</code>, as they will not be recognized.
+
*'''ssl:''' Whether to use a HTTPS connection; considered true if set to <code>1</code> (the number one) and false otherwise. Do not attempt to use the words <code>yes</code> or <code>true</code>, as they will not be recognized. <code>encrypted.google.com</code> is used because <code>www.google.com</code> redirects there when accessed in HTTPS by a user who is not logged in (TODO: verify this/finish explaining).
   
 
Note that the code that was in [http://uncyclopedia.wikia.com/index.php?title=User:Pentium5dot1/Storage_facility/Google_template&oldid=4770410 this revision] would have worked correctly (saving one ''ifeq'' test on ''ssl'') were it not for [https://bugzilla.wikimedia.org/show_bug.cgi?id=12974 MediaWiki bug 12974] (which would cause a colon to be interpreted as a new indented paragraph).
 
Note that the code that was in [http://uncyclopedia.wikia.com/index.php?title=User:Pentium5dot1/Storage_facility/Google_template&oldid=4770410 this revision] would have worked correctly (saving one ''ifeq'' test on ''ssl'') were it not for [https://bugzilla.wikimedia.org/show_bug.cgi?id=12974 MediaWiki bug 12974] (which would cause a colon to be interpreted as a new indented paragraph).

2012ねん8がつ22にち (水)すい 01:57時点じてんにおけるはん


Documentation

Test cases are located at User:Pentium5dot1/Sandbox#Google template

Unlike wikipedia:Template:Google, this template only generates an URL; it does not automatically supply a link title.

The parameters to this template are as follows:

  • 1: Search query. Do not manually replace spaces with plus signs; the template will do that for you.
  • ssl: Whether to use a HTTPS connection; considered true if set to 1 (the number one) and false otherwise. Do not attempt to use the words yes or true, as they will not be recognized. encrypted.google.com is used because www.google.com redirects there when accessed in HTTPS by a user who is not logged in (TODO: verify this/finish explaining).

Note that the code that was in this revision would have worked correctly (saving one ifeq test on ssl) were it not for MediaWiki bug 12974 (which would cause a colon to be interpreted as a new indented paragraph).