User:PerfektesChaos/js/externalLinkProblem/talk

talk is a dependant sub-module of externalLinkProblem.js.

A template on the adjacent talk page is used to store information about external links with problems on subject page.

Template

edit

Transclusion

edit
== {{Anker|deadurl_2018-10}} Dead external links ==     
{{External Link Problem
 |Bot=GiftBot
 |Run=2014-05
 |1=http://nachrichten.tagesschau.de/sendung.php?datum=2011-10-09
 |2=http://isnich.nirgends/index.php?path=broken,
 |3=wba=20131208003955 http://betterplace.nirvana/getEternity/xx.pdf
 |4=+1234,56789 http://example.com/xy
 |5=2012 http://example.org/yz
 |6=sbl http:\\attack.evil/trust-me-trust-me
 |7=301 http://example.com/move
 |8=http://example.net/cms?tx=[88a0
}}
– ~~~~

Flags

edit
Flag Meaning
2012
20nn
This URL has been unavailable in a previous year.
nnn HTTP status code (other than 404) or curl return code.
+pageid1,pageid2, Other subject pages with exactly the same URL habe been found.
- URL would work without terminating punctuation character or pipe |.
  • May precede wba or cit.
proto Exchange http and https scheme.
wba=YYYYMMDDhhmmss Time stamp of most recent version in wayback.archive.org to create an URL.
cit=base62-ms Time stamp of most recent version in wayback.archive.org to create an URL.
sbl

Link is registered on spam blacklist (SBL) etc. and must not be presented as active link; might be malware.
Slashes at protocol are changed against backslashes.

Entries with some notes appended to the URL are regarded as deactivated; it is assumed that they have been removed from subject page, or set out of operation.

Functionality

edit

If occurrence of the specified template is retrieved via API from the adjacent subject page, or within talk page the specified category is present, the entire talk page content is fetched via API. Data of template transclusion is taken from source code, and an Array mw.libs.externalLinkProblem.problems is built.

On talk page, URL marked as current problem are compared with URL in effect on subject page. URL not longer needed are suggested to be discarded, and deactivated URL still used on subject page cause an error message.

On top of the talk page the regular box is shown, linking to the section and mentioning particular state.

Codes

edit
Source code
ResourceLoader
  • ext.gadget.externalLinkProblem/talk
Namespaces any content (nsn > 0)
mw.hook externalLinkProblem/talk.ready

Dependency

edit