Template:SMW display activity-onelineTEST: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (typos!)
(try link=title)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
''TEST''
''TEST''
Trying to control the size of the [[Property:Sugar icon]] in query results displayed with this template. E.g. [[Image:CP small.JPG]] , we want to stick |55px on the end to get [[Image:CP small.JPG|55px]].
Trying to control the size of the [[Property:Sugar icon]] in query results displayed with this template. E.g. [[Image:CP small.JPG]] , we want to stick |55px on the end to get [[Image:CP small.JPG|55px]].
The key is to use <tt>link=none</tt> or <tt>link=title</tt>, otherwise the article is already a link.


See [[Activity query examples#TEST icon size]]
See [[Activity query examples#TEST icon size]]
Line 10: Line 11:
[[ some criteria]] ...
[[ some criteria]] ...
| format=list
| format=list
| link=title
| template=SMW display activity-onelineTEST
| template=SMW display activity-onelineTEST
| ?Sugar icon
| ?Sugar icon

Latest revision as of 04:04, 8 November 2008

TEST Trying to control the size of the Property:Sugar icon in query results displayed with this template. E.g. CP small.JPG , we want to stick |55px on the end to get CP small.JPG. The key is to use link=none or link=title, otherwise the article is already a link.

See Activity query examples#TEST icon size

To use this template, make a query like:

{{#ask:
  [[ some criteria]] ...
  | format=list
  | link=title
  | template=SMW display activity-onelineTEST
  | ?Sugar icon
}}

See query at Activity query examples.


Activity: {{{1}}}, icon: [[{{{2}}}|55px]]