Talk:Q13107716

From Wikidata
Jump to navigation Jump to search

Template for datalist

[edit]

The current Infobox is highly push-based; the more specific infoboxes pushes headers, images and rows into the lua-module, which in turn has a method for formatting the output. I see an advance in making a (static/class) method, which:

  • Allows data to be selected from the first of more available sources (parameteres, current wikidata item, other wikidata items).
  • Allows templating the infobox.
  • Opens for adding categories, when different datavalues differ.
  • Allows edit-links for data comming from wikidata.

Suggestion for example syntax (inspired by en:Infobox royalty and QE2); made to look like wiki as we knows it:

style="background-color: #cbe; font-size: 125%; text-align: center"
wd=wikidata -- specifies item for current page
param=frame.parent.args -- specifies args passed to a hosting template
father=wikidata.p22 -- specifies the item, found on property 233 for the current page
= Head of state = -- header outside box
== {param.name} == -- above everything
Image: {wd.p18} / {param.image} -- first found is used; default only one
=== Personal === -- above section
Birth name: {wd.p513} -- skipped if not available
Date of birth: {wd.p569} / {param.dob} / Unknown -- Text 'Unknown' is shown if neither of the former is found
Father: {wd.p22}
Grandfather: {wd.p22.p22}
=== Reign ===
Prime minister(s): {param.pms}
Include: Head of state/Head of church -- omclude list of fields; same syntax

... I'm sure the syntax can be refined.  – The preceding unsigned comment was added by 87.54.11.4 (talk • contribs) at 2 July 2013‎ (UTC).