Activity query examples: Difference between revisions
Jump to navigation
Jump to search
m (→TEST icon size: typo) |
(→TEST icon size: fixed it!) |
||
Line 22: | Line 22: | ||
== TEST icon size == |
== TEST icon size == |
||
How do I control the icon size in [[Property:Sugar icon]] ? Feel free to fiddle around with [[Template:SMW_display_activity-onelineTEST]] |
How do I control the icon size in [[Property:Sugar icon]] ? Feel free to fiddle around with [[Template:SMW_display_activity-onelineTEST]] |
||
The key is to mess around with the Image link adding parameters like <tt>|55px</tt>, you must specify <tt>link=none</tt>, otherwise the image is already a link. |
|||
Let's try it with three activities with different-sized images: |
|||
{{#ask: |
{{#ask: |
||
[[Short description::+]] |
[[Short description::+]] |
||
[[Classroom Presenter||Browse||Colors!]] |
|||
| ?Sugar icon |
| ?Sugar icon |
||
|format=template |
|format=template |
||
|link=none |
|||
|template=SMW_display_activity-onelineTEST |
|template=SMW_display_activity-onelineTEST |
||
|limit=10 |
|limit=10 |
Revision as of 04:02, 8 November 2008
Count
There are {{#ask:
Activity bundle::+ | format=count
}} pages that have a value for Property:Activity bundle.
With a template
{{#ask:
Short description::+ | ?Sugar icon | ?Short description | ?Activity bundle | ?Activity version |format=template |template=SMW_display_activity-oneline |default=Nothing with Property:Short_description found?
}}
TEST icon size
How do I control the icon size in Property:Sugar icon ? Feel free to fiddle around with Template:SMW_display_activity-onelineTEST
The key is to mess around with the Image link adding parameters like |55px, you must specify link=none, otherwise the image is already a link.
Let's try it with three activities with different-sized images:
{{#ask:
Short description::+ |Browse||Colors! | ?Sugar icon |format=template |link=none |template=SMW_display_activity-onelineTEST |limit=10 |default=Nothing with Property:Short_description found?
}}