Pseudocode for Wikidata personal best table

edit


if {{#property:P2415}} then
{| class="wikitable"
!Event
!Best
!Venue
!Date
!Records
!World ranking
|-
for each value
|{{#property:P2415|value|p2416}} <!--event-->
|{{#property:P2415|value}} <!--best-->
|{{#property:P2415|value|p276}} <!--venue-->
|{{#property:P2415|value|p585}} <!--date-->
|if value in {{#property:P1000}} then {{#property:P1000|value}}
|{{#property:P2415|value|P1352}} <!--world ranking-->
|-
end for

|}

Other questions and considerations

edit
  • Indoor/outdoor?
  • Units for best?
  • Windspeed, altitude?
  • How would the record held data link in with PB? Should this property be a qualifier of the PB?
  • How can the rankings be centralised at a table and drawn from there?
  • How can this info be incorporated into an infobox?