Template:SMW display activity-onelineTEST: Difference between revisions
Jump to navigation
Jump to search
(move test to separate TEST page) |
(try link=title) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
''TEST'' |
''TEST'' |
||
Trying to control the size of the [[Property:Sugar icon]] in query results displayed with this template. E.g. [[Image |
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]] |
|||
To use this template, make a query like: |
|||
<pre> |
<pre> |
||
{{#ask: |
{{#ask: |
||
[[ 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. , we want to stick |55px on the end to get . 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]]