Difference between revisions of "Infobox"
Susanna Ånäs (talk | contribs) |
(→Default content) |
||
(88 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File:Wikidata-section.png]] | [[File:Wikidata-section.png]] | ||
− | An infobox created from Wikidata, where the links link to pages inside Wikidocumentaries. The values can be edited in Wikidata. | + | An infobox created from Wikidata, where the links link to pages inside Wikidocumentaries. The values can be edited in Wikidata. Editing can be made available in Wikidocumentaries as well. |
− | + | ||
+ | ==Toolbar== | ||
* View/edit in Wikidata | * View/edit in Wikidata | ||
* Expand window to reveal all data | * Expand window to reveal all data | ||
− | === | + | ===Default content=== |
− | * | + | * Currently the page build fails if the P31 has not been declared. When that is fixed, we can make adding a new type possible. "The type of ___ is missing. You can use the first sentence of the article to help choose." Additionally, it could be possible to pick a proposed type from the first sentence of the Wikipedia article. |
+ | * The description is displayed under the title in the header image. It would be possible to allow immediate editing option with a help text: "The description for ___ is missing. You can add it by clicking here." The first sentence of the Wikipedia article could be used as a default. | ||
+ | * If the name is missing in the user's language, Wikidocumentaries displays it in a fallback language. It would be possible to allow immediate editing option with a help text: "Add title in your language." Icon: Pen. | ||
+ | |||
+ | ==Formatting== | ||
+ | |||
+ | ===Multiple values=== | ||
+ | * Generally, all values will be displayed. When there is one preferred value, it should be made very visible, either displaying that only or making the other values much less prominent. | ||
− | === | + | ===Qualifiers=== |
− | |||
− | |||
* Qualifiers should be displayed when available. There may be complex rules for displaying them… | * Qualifiers should be displayed when available. There may be complex rules for displaying them… | ||
− | References | + | |
+ | ===References=== | ||
+ | * References should be displayed, maybe as a collapsible part of the statement. For example the reference could be displayed if a reference icon was clicked. | ||
+ | |||
+ | ===Property-qualifier combos=== | ||
+ | These properties are used together, one being the qualifier of the other | ||
+ | * P528 catalog code | ||
+ | ** P972 catalog as qualifier | ||
+ | * P217 inventory number | ||
+ | ** P195 collection as qualifier | ||
===Links=== | ===Links=== | ||
− | * Link structure: | + | * Link structure: see [[Linking]] |
− | * The link ALWAYS points to | + | * The link ALWAYS points to a Wikidocumentaries page regardless of whether the title, description or article exist in the user's language |
− | * EXISTING article link is shown | + | * EXISTING article link is shown in 'normal' style |
− | * MISSING article link | + | * MISSING article link is shown with 'missing' style, but the link target remains the same. |
− | * EXTERNAL Links with external identifiers will be constructed to point to external resources, and are styled | + | * EXTERNAL Links with external identifiers will be constructed to point to external resources, and are styled with the 'external' style. |
+ | |||
+ | ===Location data=== | ||
+ | It will be possible to derive location data from one type of data. Require only one: | ||
+ | coordinates | ||
+ | street address | ||
+ | |||
+ | ==Datatype default display== | ||
+ | ===Commons media=== | ||
+ | * About: ''Link to files stored at Wikimedia Commons. When a value is entered, the "File" namespace on Commons will be searched for matching files.'' | ||
+ | * [https://www.wikidata.org/wiki/Special:ListProperties/commonsMedia List of properties with this data type] | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | ! Property !! Where to place !! In the Infobox | ||
+ | |- | ||
+ | | photosphere image (P4640) || 3D || Hidden - shown until in own section | ||
+ | |- | ||
+ | | 3D model (P4896) || 3D || Hidden - shown until in own section | ||
+ | |- | ||
+ | | audio (P51) || Audio || Hidden - shown until in own section | ||
+ | |- | ||
+ | | spoken text audio (P989) || Audio || Hidden - shown until in own section | ||
+ | |- | ||
+ | | pronunciation audio (P443) || Audio || Hidden - shown until in own section | ||
+ | |- | ||
+ | | audio recording of the subject's spoken voice (P990) || Audio || Hidden - shown until in own section | ||
+ | |- | ||
+ | | shield image (P4004) || Header || Hidden - shown until in own section | ||
+ | |- | ||
+ | | traffic sign (P14) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | chemical structure (P117) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | flag image (P41) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | coat of arms image (P94) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | signature (P109) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | logo image (P154) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | seal image (P158) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | astronomic symbol image (P367) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | monogram (P1543) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | icon (P2910) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | sail emblem (P5962) || Header/Icons || Hidden - shown until in own section | ||
+ | |- | ||
+ | | Gene Atlas Image (P692) || Images || Hidden | ||
+ | |- | ||
+ | | service ribbon image (P2425) || Images || Hidden | ||
+ | |- | ||
+ | | place name sign (P1766) || Images || Hidden | ||
+ | |- | ||
+ | | commemorative plaque image (P1801) || Images || Hidden | ||
+ | |- | ||
+ | | page banner (P948) || Images || Hidden | ||
+ | |- | ||
+ | | scanned file on Wikimedia Commons (P996) || Images || Hidden | ||
+ | |- | ||
+ | | image of tombstone (P1442) || Images || Hidden | ||
+ | |- | ||
+ | | collage image (P2716) || Images || Hidden | ||
+ | |- | ||
+ | | label in sign language (P2919) || Images || Hidden | ||
+ | |- | ||
+ | | film poster (P3383) || Images/Ephemera || Hidden | ||
+ | |- | ||
+ | | image (P18) || Images/Header image || Hidden | ||
+ | |- | ||
+ | | nighttime view (P3451) || Images/Header image || Hidden | ||
+ | |- | ||
+ | | panorama view (P4291) || Images/Header image || Hidden | ||
+ | |- | ||
+ | | winter view (P5252) || Images/Header image || Hidden | ||
+ | |- | ||
+ | | image of interior (P5775) || Images/Header image || Hidden | ||
+ | |- | ||
+ | | taxon range map image (P181) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | route map (P15) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | bathymetry image (P207) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | locator map image (P242) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | orbit diagram (P491) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | distribution map (P1846) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | location map (P1943) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | relief location map (P1944) || Images/Maps || Hidden | ||
+ | |- | ||
+ | | sheet music (P3030) || Images/Music sheets || Hidden | ||
+ | |- | ||
+ | | playing range image (P2343) || Images/Plans || Hidden | ||
+ | |- | ||
+ | | detail map (P1621) || Images/Plans || Hidden | ||
+ | |- | ||
+ | | sectional view (P2713) || Images/Plans || Hidden | ||
+ | |- | ||
+ | | plan view image (P3311) || Images/Plans || Hidden | ||
+ | |- | ||
+ | | schematic (P5555) || Images/Plans || Hidden | ||
+ | |- | ||
+ | | video (P10) || Images/video || Hidden | ||
+ | |} | ||
+ | |||
+ | ===Geographic shape=== | ||
+ | * About: Link to geographic map data stored on Wikimedia Commons (or other configured wiki). See "https://www.mediawiki.org/wiki/Help:Map_Data" for more documentation about map data. | ||
+ | * Wikidocumentaries: Link to Commons | ||
+ | * [https://www.wikidata.org/wiki/Special:ListProperties/geo-shape List of properties with this data type] | ||
+ | ===Globe coordinate=== | ||
+ | * About: Literal data for a geographical position given as a latitude-longitude pair in gms or decimal degrees for the given stellar body. Defaults to "Earth" and then "WGS84". It adds a resolution and range. | ||
+ | ** latitude – implicit first part (float, dms, dm, dd) of the coordinate string, direction is either given by prefixed sign or by postfixed N/S | ||
+ | ** longitude – implicit second part (float, dms, dm, dd) of the coordinate string, direction is either given by prefixed sign or by postfixed E/W | ||
+ | ** globe – explicit (?) data value, given as stellar body that defaults to Earth "http://www.wikidata.org/entity/Q2" | ||
+ | ** precision - numeric precision of the coordinate | ||
+ | * Wikidocumentaries: Displayed in WGS format for copying to other systems. Link to the map display? | ||
+ | |||
+ | ===External identifier=== | ||
+ | * Wikidata property for an identifier (Q19847637) and subclasses / items of datatype external identifier | ||
+ | * Use formatter URL (P1630) to construct link, example: https://viaf.org/viaf/$1 | ||
+ | * Display as a comma-separated list to save space | ||
+ | * Possibly collapse a section | ||
+ | |||
+ | ===Monolingual text=== | ||
+ | * Wikidocumentaries: Language flag included, for example: Nimi Niminen (fi). | ||
+ | |||
+ | ===Quantity=== | ||
+ | * Lot of work to display the units. Take advantage of infobox work. | ||
+ | * Units are described in Wikidata but how they relate to each property could be investigated. It may be possible to record the correct conjugations of units to Wikidata and retrieve correctly formatted quantities. | ||
+ | |||
+ | ===String=== | ||
+ | * Diplay as is | ||
+ | |||
+ | ===Tabular data=== | ||
+ | * Wikidocumentaries: Link to Commons | ||
+ | |||
+ | ===Time=== | ||
+ | * Wikidocumentaries: Dates are displayed in localized formats. | ||
− | { | + | ===URL=== |
+ | * Wikidocumentaries: External links are made as pretty as possible. Perhaps use the title as the link text to avoid long links | ||
+ | |||
+ | ===Item=== | ||
+ | * Link to Wikidocumentaries. See different styles in [[#Links]] | ||
+ | |||
+ | ===Property=== | ||
+ | * Was: Link to Wikidata --> Link to Wikidocumentaries | ||
+ | |||
+ | ===Mathematical expression=== | ||
+ | * Wikidocumentaries: as is | ||
+ | |||
+ | ===Lexeme=== | ||
+ | * Wikidocumentaries: need to investigate more | ||
+ | |||
+ | ===Form=== | ||
+ | * Wikidocumentaries: need to investigate more | ||
+ | |||
+ | ==How to display each property== | ||
+ | |||
+ | ===Wikidata property about Wikimedia categories (Q18667213)=== | ||
+ | Include in other content components. Hide or show in infobox? | ||
+ | |||
+ | {| | ||
+ | ! Property | ||
+ | ! Where to place | ||
+ | ! Status | ||
+ | |- | ||
+ | | P910 topic's main category || No idea || Hidden | ||
+ | |- | ||
+ | | P1464 category for people born here || To special section || Hidden | ||
+ | |- | ||
+ | | P1465 category for people who died here || To special section || Hidden | ||
+ | |- | ||
+ | | P1791 category of people buried here || To special section || Hidden | ||
+ | |- | ||
+ | | P1792 category of associated people || To special section || Hidden | ||
+ | |- | ||
+ | | P1740 category for films shot at this location || To special section || Hidden | ||
+ | |- | ||
+ | | P1472 Commons Creator page || Could also be shown || Hidden | ||
+ | |- | ||
+ | | P2959 permanent duplicated item || Wikidata internal, can be shown if wanted || Hidden | ||
+ | |- | ||
+ | | P935 Commons gallery || || | ||
+ | |- | ||
+ | | P373 Commons category || || | ||
+ | |- | ||
+ | | P2633 geography of topic || || | ||
+ | |- | ||
+ | | P2184 history of topic || || | ||
+ | |- | ||
+ | | P5008 on focus list of Wikimedia project || || | ||
+ | |- | ||
+ | | P5125 Wikimedia outline || || | ||
+ | |} | ||
+ | |||
+ | ===Geodata=== | ||
+ | Display on the map. | ||
+ | * P3896 geoshape // To the map if feasible // Hidden | ||
+ | * coordinate location (P625) > Map | ||
+ | * coordinates of northernmost point (P1332) | ||
+ | * coordinates of southernmost point (P1333) | ||
+ | * coordinates of easternmost point (P1334) | ||
+ | * coordinates of westernmost point (P1335) | ||
+ | * coordinates of the point of view (P1259) | ||
+ | * coordinates of geographic center (P5140) | ||
+ | * aerodrome reference point (P2786) | ||
+ | |||
+ | ===Redundant information=== | ||
+ | * P30 continent (for small-scale items) // Useless repetition | ||
+ | |||
+ | ==Special use for Wikidata properties== | ||
+ | See [[Properties to content]]. | ||
+ | This is also written in https://docs.google.com/document/d/188wq0wPusnbyw9EiCQRDprn5JPDHgnwU_4_hn7jbJrg/edit# | ||
==Ideas to develop== | ==Ideas to develop== | ||
+ | ===Datasets=== | ||
* Import datasets or view items from a database and import automatically or through verification. | * Import datasets or view items from a database and import automatically or through verification. | ||
+ | |||
+ | ===Data lookup validation=== | ||
+ | A place item could look up data in YSO, and National Land Survey services based on external identifiers (GeoNames etc). When the Names Archive can be accessed, the data can be looked up there based on the name. | ||
+ | |||
+ | The interface presents statements that are automaticlally created. The user is asked to verify if the data is correct. Either the user accepts the value, and the source becomes the data source, or declines, when there will be a note about the mistake (in some format). This will allow a human to see if the error is in the connecting data or the connected data. | ||
+ | |||
+ | {{Design-nav}} |
Latest revision as of 13:39, 24 June 2020
An infobox created from Wikidata, where the links link to pages inside Wikidocumentaries. The values can be edited in Wikidata. Editing can be made available in Wikidocumentaries as well.
Contents
Toolbar
- View/edit in Wikidata
- Expand window to reveal all data
Default content
- Currently the page build fails if the P31 has not been declared. When that is fixed, we can make adding a new type possible. "The type of ___ is missing. You can use the first sentence of the article to help choose." Additionally, it could be possible to pick a proposed type from the first sentence of the Wikipedia article.
- The description is displayed under the title in the header image. It would be possible to allow immediate editing option with a help text: "The description for ___ is missing. You can add it by clicking here." The first sentence of the Wikipedia article could be used as a default.
- If the name is missing in the user's language, Wikidocumentaries displays it in a fallback language. It would be possible to allow immediate editing option with a help text: "Add title in your language." Icon: Pen.
Formatting
Multiple values
- Generally, all values will be displayed. When there is one preferred value, it should be made very visible, either displaying that only or making the other values much less prominent.
Qualifiers
- Qualifiers should be displayed when available. There may be complex rules for displaying them…
References
- References should be displayed, maybe as a collapsible part of the statement. For example the reference could be displayed if a reference icon was clicked.
Property-qualifier combos
These properties are used together, one being the qualifier of the other
- P528 catalog code
- P972 catalog as qualifier
- P217 inventory number
- P195 collection as qualifier
Links
- Link structure: see Linking
- The link ALWAYS points to a Wikidocumentaries page regardless of whether the title, description or article exist in the user's language
- EXISTING article link is shown in 'normal' style
- MISSING article link is shown with 'missing' style, but the link target remains the same.
- EXTERNAL Links with external identifiers will be constructed to point to external resources, and are styled with the 'external' style.
Location data
It will be possible to derive location data from one type of data. Require only one: coordinates street address
Datatype default display
Commons media
- About: Link to files stored at Wikimedia Commons. When a value is entered, the "File" namespace on Commons will be searched for matching files.
- List of properties with this data type
Property | Where to place | In the Infobox |
---|---|---|
photosphere image (P4640) | 3D | Hidden - shown until in own section |
3D model (P4896) | 3D | Hidden - shown until in own section |
audio (P51) | Audio | Hidden - shown until in own section |
spoken text audio (P989) | Audio | Hidden - shown until in own section |
pronunciation audio (P443) | Audio | Hidden - shown until in own section |
audio recording of the subject's spoken voice (P990) | Audio | Hidden - shown until in own section |
shield image (P4004) | Header | Hidden - shown until in own section |
traffic sign (P14) | Header/Icons | Hidden - shown until in own section |
chemical structure (P117) | Header/Icons | Hidden - shown until in own section |
flag image (P41) | Header/Icons | Hidden - shown until in own section |
coat of arms image (P94) | Header/Icons | Hidden - shown until in own section |
signature (P109) | Header/Icons | Hidden - shown until in own section |
logo image (P154) | Header/Icons | Hidden - shown until in own section |
seal image (P158) | Header/Icons | Hidden - shown until in own section |
astronomic symbol image (P367) | Header/Icons | Hidden - shown until in own section |
monogram (P1543) | Header/Icons | Hidden - shown until in own section |
icon (P2910) | Header/Icons | Hidden - shown until in own section |
sail emblem (P5962) | Header/Icons | Hidden - shown until in own section |
Gene Atlas Image (P692) | Images | Hidden |
service ribbon image (P2425) | Images | Hidden |
place name sign (P1766) | Images | Hidden |
commemorative plaque image (P1801) | Images | Hidden |
page banner (P948) | Images | Hidden |
scanned file on Wikimedia Commons (P996) | Images | Hidden |
image of tombstone (P1442) | Images | Hidden |
collage image (P2716) | Images | Hidden |
label in sign language (P2919) | Images | Hidden |
film poster (P3383) | Images/Ephemera | Hidden |
image (P18) | Images/Header image | Hidden |
nighttime view (P3451) | Images/Header image | Hidden |
panorama view (P4291) | Images/Header image | Hidden |
winter view (P5252) | Images/Header image | Hidden |
image of interior (P5775) | Images/Header image | Hidden |
taxon range map image (P181) | Images/Maps | Hidden |
route map (P15) | Images/Maps | Hidden |
bathymetry image (P207) | Images/Maps | Hidden |
locator map image (P242) | Images/Maps | Hidden |
orbit diagram (P491) | Images/Maps | Hidden |
distribution map (P1846) | Images/Maps | Hidden |
location map (P1943) | Images/Maps | Hidden |
relief location map (P1944) | Images/Maps | Hidden |
sheet music (P3030) | Images/Music sheets | Hidden |
playing range image (P2343) | Images/Plans | Hidden |
detail map (P1621) | Images/Plans | Hidden |
sectional view (P2713) | Images/Plans | Hidden |
plan view image (P3311) | Images/Plans | Hidden |
schematic (P5555) | Images/Plans | Hidden |
video (P10) | Images/video | Hidden |
Geographic shape
- About: Link to geographic map data stored on Wikimedia Commons (or other configured wiki). See "https://www.mediawiki.org/wiki/Help:Map_Data" for more documentation about map data.
- Wikidocumentaries: Link to Commons
- List of properties with this data type
Globe coordinate
- About: Literal data for a geographical position given as a latitude-longitude pair in gms or decimal degrees for the given stellar body. Defaults to "Earth" and then "WGS84". It adds a resolution and range.
- latitude – implicit first part (float, dms, dm, dd) of the coordinate string, direction is either given by prefixed sign or by postfixed N/S
- longitude – implicit second part (float, dms, dm, dd) of the coordinate string, direction is either given by prefixed sign or by postfixed E/W
- globe – explicit (?) data value, given as stellar body that defaults to Earth "http://www.wikidata.org/entity/Q2"
- precision - numeric precision of the coordinate
- Wikidocumentaries: Displayed in WGS format for copying to other systems. Link to the map display?
External identifier
- Wikidata property for an identifier (Q19847637) and subclasses / items of datatype external identifier
- Use formatter URL (P1630) to construct link, example: https://viaf.org/viaf/$1
- Display as a comma-separated list to save space
- Possibly collapse a section
Monolingual text
- Wikidocumentaries: Language flag included, for example: Nimi Niminen (fi).
Quantity
- Lot of work to display the units. Take advantage of infobox work.
- Units are described in Wikidata but how they relate to each property could be investigated. It may be possible to record the correct conjugations of units to Wikidata and retrieve correctly formatted quantities.
String
- Diplay as is
Tabular data
- Wikidocumentaries: Link to Commons
Time
- Wikidocumentaries: Dates are displayed in localized formats.
URL
- Wikidocumentaries: External links are made as pretty as possible. Perhaps use the title as the link text to avoid long links
Item
- Link to Wikidocumentaries. See different styles in #Links
Property
- Was: Link to Wikidata --> Link to Wikidocumentaries
Mathematical expression
- Wikidocumentaries: as is
Lexeme
- Wikidocumentaries: need to investigate more
Form
- Wikidocumentaries: need to investigate more
How to display each property
Wikidata property about Wikimedia categories (Q18667213)
Include in other content components. Hide or show in infobox?
Property | Where to place | Status |
---|---|---|
P910 topic's main category | No idea | Hidden |
P1464 category for people born here | To special section | Hidden |
P1465 category for people who died here | To special section | Hidden |
P1791 category of people buried here | To special section | Hidden |
P1792 category of associated people | To special section | Hidden |
P1740 category for films shot at this location | To special section | Hidden |
P1472 Commons Creator page | Could also be shown | Hidden |
P2959 permanent duplicated item | Wikidata internal, can be shown if wanted | Hidden |
P935 Commons gallery | ||
P373 Commons category | ||
P2633 geography of topic | ||
P2184 history of topic | ||
P5008 on focus list of Wikimedia project | ||
P5125 Wikimedia outline |
Geodata
Display on the map.
- P3896 geoshape // To the map if feasible // Hidden
- coordinate location (P625) > Map
- coordinates of northernmost point (P1332)
- coordinates of southernmost point (P1333)
- coordinates of easternmost point (P1334)
- coordinates of westernmost point (P1335)
- coordinates of the point of view (P1259)
- coordinates of geographic center (P5140)
- aerodrome reference point (P2786)
Redundant information
- P30 continent (for small-scale items) // Useless repetition
Special use for Wikidata properties
See Properties to content. This is also written in https://docs.google.com/document/d/188wq0wPusnbyw9EiCQRDprn5JPDHgnwU_4_hn7jbJrg/edit#
Ideas to develop
Datasets
- Import datasets or view items from a database and import automatically or through verification.
Data lookup validation
A place item could look up data in YSO, and National Land Survey services based on external identifiers (GeoNames etc). When the Names Archive can be accessed, the data can be looked up there based on the name.
The interface presents statements that are automaticlally created. The user is asked to verify if the data is correct. Either the user accepts the value, and the source becomes the data source, or declines, when there will be a note about the mistake (in some format). This will allow a human to see if the error is in the connecting data or the connected data.
About | Technology | Design | Content modules | Tool pages | Projects |
Status
Wikidocumentaries Slack |
Setting up dev environment |
Components |
Active modules Module ideas |
Visual editor | Central Park Archives |