Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Link
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== From a page === To report links ''from'' a page, you simply list all the wikilinks on that page. * {{slink|Wikipedia:Tools/Editing tools|Relink}} can count wikilinks from a copy of the wikitext on your local machine. * Some [[Wikipedia:text editor support|text editors support]] the counting and highlighting of the <code>[<nowiki/>[...]]</code> pattern occurrences. * The Wikipedia [[Application programming interface#Web APIs|web API]] accepts queries by URL.<ref> If you will use the API heavily or professionally you should follow its currently listed recommendations at [[mw:API:Query|API]]. (Use <kbd>continue=</kbd>, use <kbd>formatversion2</kbd>, use multiple pages at once, etc.)</ref> One way to send a query to the API is by creating an external link ({{slink||External links}}). For example, using an external link very much like a search link, you can send the API a request to list the link properties of "[[wp:example]]". It should interpret it correctly as "Wikipedia:Example", ''pageid 25263910''. ; What you type :<kbd>[/<nowiki/>/en.wikipedia.org/w/api.php?action=query&prop=links&pllimit=500&titles=''fullpagename'' ''your label'']</kbd> ; What you get when fullpagename is [[wp:example]] :[//en.wikipedia.org/w/api.php?action=query&prop=links&pllimit=500&titles=wp:example ''your label''] * The report is in [[JSON]] format, as is usual for RESTful APIs. * The pageid is available from '''Page information''' on every page. * The <kbd>titles</kbd> parameter is plural. (It is designed to take multiple fullpagenames or pageid, delimited by the | pipe character.) * The number of links returned by this query is limited to 500, per the URL you created. See [[mw:API:Query]] for how to safely get more. For example, [[Operating system]] has 510 wikilinks. To make a page register as a link to a page, but without actually showing the link, make a link to it, but label it with a space character using the pipe trick: <kbd>[<nowiki/>[''pagename''| ]]</kbd>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)