Template:SMW display activity-onelineTEST: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (typos!)
m (explain how to make it work)
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>, 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=none
| template=SMW display activity-onelineTEST
| template=SMW display activity-onelineTEST
| ?Sugar icon
| ?Sugar icon

Revision as of 04:00, 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, 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=none
  | template=SMW display activity-onelineTEST
  | ?Sugar icon
}}

See query at Activity query examples.


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