Page MenuHomePhabricator
Paste P48704

Examples link target
ActivePublic

Authored by dcausse on Jun 2 2023, 10:08 AM.
Tags
None
Referenced Files
F37090881: Examples link target
Jun 2 2023, 10:48 AM
F37090858: Examples link target
Jun 2 2023, 10:17 AM
F37090850: Examples link target
Jun 2 2023, 10:14 AM
F37090845: Examples link target
Jun 2 2023, 10:10 AM
F37090843: Examples link target
Jun 2 2023, 10:08 AM
Subscribers
None
WIP: please feel free to add more examples or comments here
a blue link `[[Page_On_This_Wiki#Introduction|The intro]]`:
* link_type: page
* page_namespace: 0
* page_title: Page_On_This_Wiki
* is_redirect: false
* fragment: Introduction
* page_id: 123
a blue link to a redirect `[[A_Redirect_To_Page_On_This_Wiki#Endtroducing]]`:
* link_type: page
* page_namespace: 0
* page_title: A_Redirect_To_Page_On_This_Wiki
* is_redirect: true
* fragment: Endtroducing
* page_id: 231
a red link `[[A_Non_Existing_Page_On_This_Wiki#Introduction]]`:
* link_type: page
* page_namespace: 0
* page_title: A_Non_Existing_Page_On_This_Wiki
* is_redirect: false
* fragment: Introduction
a template link `{{A_Template|params}}`:
* link_type: template
* page_namespace: 10
* page_title: A_Template
a category link `[[Category:A_Category]]`:
* link_type: category
* page_namespace: 14
* page_title: A_Category
a language link [[:ko:Page_On_A_Sister_Language_Wiki_In_Korean#Introduction]]
* link_type: language
* page_title: Page_On_A_Sister_Language_Wiki_In_Korean
* fragment: Introduction
* iw_prefix: ko
a interwiki link to a local project `[[:mw:Help:MediaWiki#QuickStart]]`:
* link_type: interwiki
* page_title: Help:MediaWiki (here the page_title contains the namespace prefix)
* fragment: QuickStart
* iw_prefix: mw
a interwiki link to an external site known as site1 in the interwiki database `[[site1:a_page/on_a_website]]`:
* link_type: interwiki
* page_title: a_page/on_a_website
* iw_prefix: site1
a media link to commons: e.g. `[[File:An_Image_On_Commons.jpg]]`
* link_type: media
* page_title: An_Image_On_Commons.jpg
a media link to a locally uploaded media: `[[File:An_Image_Uploaded_Locally.jpg]]` (ouch! how do we distinguish those? do we care?)
* link_type: media
* page_title: An_Image_Uploaded_Locally.jpg
an external link `[https://wikipedia.org/a_page#fragment wikipedia]`:
* link_type: external
* external_url: https://wikipedia.org/a_page
* fragment: fragment

Event Timeline

dcausse edited the content of this paste. (Show Details)
dcausse updated the paste's language from autodetect to remarkup.
dcausse updated the paste's language from remarkup to autodetect.Jun 2 2023, 10:16 AM
dcausse edited the content of this paste. (Show Details)