User:PerfektesChaos/js/externalLinkProblem/gui
Appearance
gui is a dependant sub-module of externalLinkProblem.js.
On top of subject (or talk page) a box is shown; on subject page a list of URL and hints may be visible.
Data
[edit]An Array mw.libs.externalLinkProblem.problems
has to be provided from data source.
Each element is an object with elements as described in the following table:
url
|
string
|
mandatory (the one and only) URL with problem |
mode
|
number
|
HTTP status other than 404, or curl id |
since
|
string
|
recent years |
listed
|
boolean
|
Spam etc. |
wba
|
string boolean
|
wayback: true / id
|
cit
|
string boolean
|
webcitation: true / id
|
sub
|
string
|
suitable partial URL |
other
|
Array [ numbers ]
|
pageid of other pages which had the same problem, or still have |
learnt
|
boolean
|
true : should be resolved now
|
live
|
boolean
|
true : effective on subject pageadded on subject page |
url
|
Array [ strings ]
|
URL, present on subject page. |
last
|
true : obsolete bot section present
|
loose
|
Open completely new window/tab for talk page and other link always. |
levels
|
Offer segmented URL path. |
lookup
|
Link Google search. |
mode
|
Unfold details.
|
Codes
[edit]Source code |
|
ResourceLoader |
|
Namespaces |
|
Cookies | externalLinkProblem (sessionStorage) Memorize toggle state.
|
mw.libs
|
externalLinkProblem
|
mw.hook
|
externalLinkProblem/gui.ready
|