Template:List Row

From National Gallery Research Wiki
Revision as of 16:48, 31 July 2012 by ApiUser (talk | contribs) (Created page with "<noinclude>__NOTOC__ {|cellpadding="10" cellspacing="0" border="1" style="border-style: solid; border-color: #F00" |'''Template Example''' This template has been set-up to all...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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=}}]]