Activity query examples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (fix the image display) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Count == |
|||
There are |
|||
{{#ask: |
|||
[[Activity bundle::+]] |
|||
| format=count |
|||
}} |
|||
pages that have a value for [[Property:Activity bundle]]. |
|||
== With a template == |
== With a template == |
||
Everything with a short description... |
|||
{{#ask: |
{{#ask: |
||
Line 9: | Line 18: | ||
|format=template |
|format=template |
||
|template=SMW_display_activity-oneline |
|template=SMW_display_activity-oneline |
||
|link=none |
|||
|default=Nothing with [[Property:Short_description]] found? |
|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 <tt>|55px</tt>, you must specify <tt>link=none</tt> or <tt>link=subject</tt>, otherwise the image is already a link. |
|||
Let's try it with three activities with different-sized images: |
|||
{{#ask: |
|||
[[Short description::+]] |
|||
[[Classroom Presenter||Browse||Colors!]] |
|||
| ?Sugar icon |
|||
|format=template |
|||
|link=subject |
|||
|template=SMW_display_activity-onelineTEST |
|||
|limit=10 |
|||
|default=Nothing with [[Property:Short_description]] found? |
|||
}} |
|||
[[Category:Semantic MediaWiki]] |
[[Category:Semantic MediaWiki]] |
Latest revision as of 06:42, 7 February 2009
Count
There are {{#ask:
Activity bundle::+ | format=count
}} pages that have a value for Property:Activity bundle.
With a template
Everything with a short description...
{{#ask:
Short description::+ | ?Sugar icon | ?Short description | ?Activity bundle | ?Activity version |format=template |template=SMW_display_activity-oneline |link=none |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 or link=subject, 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=subject |template=SMW_display_activity-onelineTEST |limit=10 |default=Nothing with Property:Short_description found?
}}