Template:List Row

From National Gallery Research Wiki
Jump to navigation Jump to search
Template Example

This template has been set-up to allow users to combine artist information with object information pulled directly from the semantic information defined on a given object page and display the information in the form of a table row.

The information can be displayed:

  • As a single details link to the object or with separate, object, artist, and date links: if variable 2 is true the information will be displayed with separate links.
  • With or without a thumbnail: if variable 3 is true the thumbnail will be hidden.

As an example the details for NG1 can be displayed using, please note the templates List_Header and Table_Footer are required to properly format the results:

{{List_Header}}
{{List_Row|NG1}}
{{List_Row|NG1|userparam=1}}
{{List_Row|NG1|userparam=2}}
{{List_Row|NG1|userparam=3}}
{{Table_Footer}}
[[NG1| {{#ask:P70F-documents::NG1P2F-has_type::Category:EN40-Display Details|mainlabel=- |?P90F-has_value= link=none}}]] {{#show: NG1 | ?PN5F-has thumbnail |link=none}}
[[NG1| {{#ask:P70F-documents::NG1P2F-has_type::Category:EN40-Display Details|mainlabel=- |?P90F-has_value= link=none}}]]
NG1: [[{{#ask:-P108B-was produced by::NG1|mainlabel=- |?P14F-carried_out_by= |link=none }}]], [[{{#ask: -P102F-has_title::NG1|link=none }}]], [[{{#ask:-P108B-was produced by::NG1|mainlabel=- |?P4F-has_time-span= |link=none}}]], [[{{#ask:P70F-documents::NG1P2F-has_type::Category:EN27-Display_Materials|limit=1|mainlabel=- |?P90F-has_value=}}]] {{#show: NG1 | ?PN5F-has thumbnail |link=none}}
NG1: [[{{#ask:-P108B-was produced by::NG1|mainlabel=- |?P14F-carried_out_by= |link=none }}]], [[{{#ask: -P102F-has_title::NG1|link=none }}]], [[{{#ask:-P108B-was produced by::NG1|mainlabel=- |?P4F-has_time-span= |link=none}}]], [[{{#ask:P70F-documents::NG1P2F-has_type::Category:EN27-Display_Materials|limit=1|mainlabel=- |?P90F-has_value=}}]]