thiemowmde added a comment. |
I turned this discussion left and right in my head last night. I would love to see us doing something like this:
<span data-property="P570" data-property-type="time"> <span data-guid="q42$65EA9C32-B26C-469B-84FE-FC612B71D159" data-value="2001-05-11">11 May 2001</span> </span>
So yea, this is using two spans, even if there is only one statement for a property. But not because of "consistency" reasons (doesn't matter), or because it makes writing CSS selectors easier (it doesn't), but because it just makes sense. It's a nice mapping from our data model (where property and data value are two distinct things) to
HTMLwikitext. It avoids any duplication.Our default rendering will be comma-separated spans. But we provide a parameter for other list renderings. These are all I can think of that are already in use out there and make sense in certain contexts:
Line breaks:
<div data-property="P570" data-property-type="time"> <span data-guid="q42$65EA9C32-B26C-469B-84FE-FC612B71D159" data-value="2001-05-11">11 May 2001</span><br /> </div>Divs:
<div data-property="P570" data-property-type="time"> <div data-guid="q42$65EA9C32-B26C-469B-84FE-FC612B71D159" data-value="2001-05-11">11 May 2001</div> </div>Wikitext list:
<div data-property="P570" data-property-type="time"> * <span data-guid="q42$65EA9C32-B26C-469B-84FE-FC612B71D159" data-value="2001-05-11">11 May 2001</span> </div>HTML list:
<ul data-property="P570" data-property-type="time"> <li data-guid="q42$65EA9C32-B26C-469B-84FE-FC612B71D159" data-value="2001-05-11">11 May 2001</li> </ul>Numbered lists don't make sense, because there is no order. Tables may make sense, but I can't think of a good default table rendering. I believe this needs a more complex solution, see T146735 and related.
Cc: gerritbot, Izno, Aklapper, Lydia_Pintscher, daniel, aude, Lucie, thiemowmde, hoo, Lewizho99, Maathavan, D3r1ck01, Wikidata-bugs, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs