Wikidata:Property proposal/placeholder text element ID
placeholder text element ID
[edit]Originally proposed at Wikidata:Property proposal/Commons
Description | unique identifier (id attribute) of the <text> or <tspan> element in the SVG file whose contents should be replaced by text described by the value of the claim |
---|---|
Represents | id (Q98716652) |
Data type | String |
Domain | template SVG images at Wikimedia Commons, such as the files in c:Category:Template images. |
Allowed values | ^[:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\x{2FF}\x{370}-\x{37D}\x{37F}-\x{1FFF}\x{200C}-\x{200D}\x{2070}-\x{218F}\x{2C00}-\x{2FEF}\x{3001}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFFD}\x{10000}-\x{EFFFF}][:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\x{2FF}\x{370}-\x{37D}\x{37F}-\x{1FFF}\x{200C}-\x{200D}\x{2070}-\x{218F}\x{2C00}-\x{2FEF}\x{3001}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFFD}\x{10000}-\x{EFFFF}.\-0-9\xB7\x{0300}-\x{036F}\x{203F}-\x{2040}]*$ [1] |
Example 1 | (M93171377)inscription mentions (P6568)road number (Q3241753) |
Example 2 | (M9527156)inscription mentions (P6568)road number (Q3241753) |
Example 3 | (M9044590)inscription mentions (P6568)regional municipality of Ontario (Q14762890) |
Example 4 | (M30047485)inscription mentions (P6568)state of Mexico (Q15149663) |
Format and edit filter validation | Only as a qualifier |
Planned use | Qualifier on a inscription mentions (P6568) statement on every image referred to by a traffic sign template image (P8505) claim |
Expected completeness | always incomplete (Q21873886) |
See also | traffic sign template image (P8505), inscription mentions (P6568), position within image |
Motivation
[edit]As a follow-up to the successful proposal for traffic sign template image (P8505), this property would enable a data consumer to know what information to insert into an image specified by traffic sign template image (P8505) and where in the image to insert that information. This property would be used as a qualifier on inscription mentions (P6568) claims. Every template image is in SVG format, and virtually every template image assigns an id
to the text (Q98716493) or tspan (Q98716502) that immediately surrounds the placeholder text in the image. Wiki pages and SPARQL queries are unable to manipulate the contents of an SVG file, but a tool could do so as a postprocessing step after running a SPARQL query. Listings such as OpenStreetMap:Custom Highway Shields#United States of America show that there is demand for an automated mechanism to discover replaceable text in image templates.
This property may also be useful for annotating a translatable SVG image with the meaning of each translatable piece of text in the image. However, that use case might require a property other than inscription mentions (P6568).
– Minh Nguyễn 💬 02:06, 29 August 2020 (UTC)
Discussion
[edit]- Support Arlo Barnes (talk) 02:28, 29 August 2020 (UTC)
- Comment I don't know if Commons has a template marking a template SVG as being a template (say that five times fast), but if it does it should include a note that if the id of the text span to be replaced is changed in editing (editor programs often do this automatically unfortunately), then it should also be changed at the corresponding Qnumber#P8505 (which I guess would be a parameter in said hypothetical template). Arlo Barnes (talk) 02:28, 29 August 2020 (UTC)
- Good idea, I just created c:Template:Template image for this purpose. (Then I discovered c:Template:Route marker template instructions, but a template image isn't necessarily for shields.) Once this property is approved, we can have the template automatically list any IDs that require attention. I think an automatic listing would be preferable to hard-coded template parameters, because two parallel lists of IDs would be harder to maintain. – Minh Nguyễn 💬 20:56, 29 August 2020 (UTC)
- Comment I don't know if Commons has a template marking a template SVG as being a template (say that five times fast), but if it does it should include a note that if the id of the text span to be replaced is changed in editing (editor programs often do this automatically unfortunately), then it should also be changed at the corresponding Qnumber#P8505 (which I guess would be a parameter in said hypothetical template). Arlo Barnes (talk) 02:28, 29 August 2020 (UTC)
- Support --Tinker Bell ★ ♥ 05:02, 6 September 2020 (UTC)
- Looks like this fell thru the cracks. Seems clearly ready. JesseW (talk) 21:54, 30 March 2021 (UTC)
@Mxn, Arlo Barnes, Tinker Bell, JesseW: Done Created property placeholder text element ID (P9410). Probably some work on it is to be done. Lymantria (talk) 16:11, 4 April 2021 (UTC)
- I added the examples and stability. Arlo Barnes (talk) 00:44, 5 April 2021 (UTC)