「User:Pentium5dot1/Storage facility/Google template」の版 間 の差分
ナビゲーションに移動
検索 に移動
2012
Pentium5dot1 (トーク | (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) |
Pentium5dot1 (トーク | (→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 wordsyes
ortrue
, as they will not be recognized.encrypted.google.com
is used becausewww.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).