Template:Usurped
{{{1}}}[被篡夺]
| 此模板被引用於許多頁面。 為了避免造成大規模的影響,所有對此模板的編輯應先於沙盒、測試樣例或您的沙盒上測試。实施修改前,建议先在討論頁發起討論。 模板引用數量會自動更新。 |
This template is for displaying square and bare archive URLs, when the underlying source URL has been usurped. It is not the same as template {{unfit}}, see below when to use "unfit" vs "usurped".
- Square URL:
{{usurped|1=[https://web.archive.org/web/2011010101/http://usurped-domain.com Example]}} - Bare URL:
{{usurped|1=https://web.archive.org/web/2011010101/http://usurped-domain.com}}
The template wraps it so future processes are aware it is a usurped domain. This prevents tools like IABot, reFill and Citation bot (and humans) from converting square or bare archive URLs into a CS1 or CS2 template and thus accidentally re-activating the usurped URL.
It is important to use 1= otherwise any "=" in the URL itself will cause a problem.
Conversion to CS1 or CS2
[编辑]It is recommended to convert {{usurped}} to CS1 or CS2, e.g. {{cite web}}, where it makes sense. Add |url-status=usurped and the archive URL to |archive-url=.
How to use
[编辑]If a usurped URL is bare or square, and is also an archive, wrap it in {{usurped}} as follows:
- produces: Example[被篡夺]
{{usurped|1=[https://web.archive.org/web/2011010101/http://usurped-domain.com Example]}}
- produces: https://web.archive.org/web/2011010101/http://usurped-domain.com[被篡夺]
{{usurped|1=https://web.archive.org/web/2011010101/http://usurped-domain.com}}
If a usurped URL has no archive available, the URL or citation should be deleted entirely from Wikipedia as non-verifiable per WP:V. If the citation would be verifiable without a URL, simply delete the URL; otherwise, delete the entire citation.
If the usurped URL is in a CS1 or CS2 template such as {{cite web}} simply change |url-status=usurped and add an archive URL to |archive-url=
If a CS1 or CS2 template and no archive is available, the URL or citation should be deleted entirely from Wikipedia as non-verifiable per WP:V. If the citation would be verifiable without a URL simply delete the URL; otherwise, delete the entire citation.
Decision tree of the above steps: WP:USURPURL.
Unfit vs. Usurped
[编辑]When to use templates {{usurped}} or {{unfit}}?
- usurped is a URL at a website whose entire domain has been hijacked, such as a gambling site, malware domain, phishing domain, spam domain, or domain reseller. The entire website or domain is a problem because it's faking its true identity.
- unfit is a URL at a website that is real (not fake), but this particular URL is a problem for Wikipedia. Includes legitimate websites that have been hijacked or defaced to display spam, malware, or phishing content on that particular page—making it unfit for consumption, like a rotten egg hiding among good eggs.
Not be confused with an inoperable link—in that case there is |archive-url= + |url-status=dead, or if no archive exists {{dead link}}.
In the vast majority of cases "dead" or "usurped" are the correct options. There are some edge cases where "unfit" is appropriate. If you are unsure, use "dead" or "usurped".
TemplateData
[编辑]This template will visually tag a source, notifying readers the source is usurped.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Reference | 1 | The reference that will have a usurped tag.
| 字符串 | 必需 |