Difference between revisions of "Linking"

From Wikidocumentaries
Jump to navigation Jump to search
(Undo revision 20402 by Admin (talk))
(General URI)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== URIs ==
 
== URIs ==
domain/[mode]/[source]QID/[language]/[article title]
+
===General URI===
 +
domain/[source]QID/[language]/[article title]?language=[language]
  
 
'''where'''
 
'''where'''
 
* domain = wikidocumentaries.io
 
* domain = wikidocumentaries.io
 
* source = empty for wikidata items, [letter] for Wikidocumentaries items
 
* source = empty for wikidata items, [letter] for Wikidocumentaries items
* mode = empty for Vue page, data for data view of the item. Might also be unnecessary, see below in the examples.
 
 
* language = optional, overrides user preferences and browser default
 
* language = optional, overrides user preferences and browser default
 
* article title = optional, Wikipedia article name in the language of the language option. Should not be used to resolve the destination
 
* article title = optional, Wikipedia article name in the language of the language option. Should not be used to resolve the destination
 +
* ?language=[language] = temporary UI language parameter
  
===Examples===
+
====Examples====
 
* wikidocumentaries.io/Q5893434/fi/Vapaamuurarin_hauta (full version for Vue page for indexing, Wikidata item)
 
* wikidocumentaries.io/Q5893434/fi/Vapaamuurarin_hauta (full version for Vue page for indexing, Wikidata item)
 
* wikidocumentaries.io/SQ123456/en/New_small_topic (full version for Vue page for indexing, Wikidocumentaries item)
 
* wikidocumentaries.io/SQ123456/en/New_small_topic (full version for Vue page for indexing, Wikidocumentaries item)
 
* wikidocumentaries.io/Q5893434 (minimum version for Vue page, Wikidata item)
 
* wikidocumentaries.io/Q5893434 (minimum version for Vue page, Wikidata item)
 
* wikidocumentaries.io/SQ123456 (minimum version for Vue page, local Wikidocumentaries item)
 
* wikidocumentaries.io/SQ123456 (minimum version for Vue page, local Wikidocumentaries item)
* wikidocumentaries.io/data/SQ123456 (local topic data page) or the native wikidocumentaries.io/wiki/Q123456 and wikidocumentaries.io/wiki/Property:P123456, and the article wikidocumentaries.io/wiki/New_small_topic (edited)
+
* wikidocumentaries.io/wiki/Q123456 (data page for a Wikidocumentaries item)
 +
* wikidocumentaries.io/wiki/New_small_topic/fi (Wikidocumentaries article in Finnish - check this!)
  
 +
===Wikipedia article URL===
 +
The Wikipedia article will be resolved to a Wikidata-based URL described above on a one-by-one basis. The link structure to send to the router is:
 +
* domain/wikipedia/language/article_title
 +
 +
Example:<br />
 +
* wikidocumentaries.io/wikipedia/fi/Vapaamuurarin_hauta?language=fi, where the last language declaration is a temporary solution.
 
{{design-nav}}
 
{{design-nav}}

Latest revision as of 09:45, 24 January 2019

URIs

General URI

domain/[source]QID/[language]/[article title]?language=[language]

where

  • domain = wikidocumentaries.io
  • source = empty for wikidata items, [letter] for Wikidocumentaries items
  • language = optional, overrides user preferences and browser default
  • article title = optional, Wikipedia article name in the language of the language option. Should not be used to resolve the destination
  • ?language=[language] = temporary UI language parameter

Examples

  • wikidocumentaries.io/Q5893434/fi/Vapaamuurarin_hauta (full version for Vue page for indexing, Wikidata item)
  • wikidocumentaries.io/SQ123456/en/New_small_topic (full version for Vue page for indexing, Wikidocumentaries item)
  • wikidocumentaries.io/Q5893434 (minimum version for Vue page, Wikidata item)
  • wikidocumentaries.io/SQ123456 (minimum version for Vue page, local Wikidocumentaries item)
  • wikidocumentaries.io/wiki/Q123456 (data page for a Wikidocumentaries item)
  • wikidocumentaries.io/wiki/New_small_topic/fi (Wikidocumentaries article in Finnish - check this!)

Wikipedia article URL

The Wikipedia article will be resolved to a Wikidata-based URL described above on a one-by-one basis. The link structure to send to the router is:

  • domain/wikipedia/language/article_title

Example:

  • wikidocumentaries.io/wikipedia/fi/Vapaamuurarin_hauta?language=fi, where the last language declaration is a temporary solution.


Navigation

About Technology Design Content modules Tool pages Projects
Status

Wikidocumentaries blog

Wikidocumentaries demo

Phabricator project

Facebook group

GitHub repository

Translation in TranslateWiki

Wikidocumentaries Slack

Setting up dev environment

Resources

Translations

Languages

Using Wikibase

Federation with Wikidata

APIs

Linking

Media metadata

Properties to content

User registration

Licensing

Page types

Landing page

Search page

Topic page

User page

Organisation page

Project page

Tool page

Tasks

Components

Main toolbar and footer

Search

Faceting

Topic page header

Content module

Dropdown

Modal

Icons

Active modules

Article

Family tree

Gallery

Historical map

Images

Image viewer

Infobox

Map

Module ideas

Audio/Video

Bibliography

Correspondence

Discussion

Graph

Name

Newspaper articles

Testimonials

Timeline

Visualizations

Wikidocumentary

3D

Visual editor

Query tool

QuickStatements

Open Refine

Creating topics

Uploading images

Geolocating tool

Metadata editor

Rectifying maps

Transcription

Annotation tool

Central Park Archives

Convent Quarter

Wikisource