Testcase Query Examples: Difference between revisions
Jump to navigation
Jump to search
(New page: === Query displaying each test case === If the pages you are including are small, you can embed them. This is like transcluding each page with <nowiki>{{:Title of page}} {{:Another page}...) |
(rewrite, add another query) |
||
Line 1: | Line 1: | ||
Other ways to query for test cases than the query(s) on [[Test cases 8.2.0]] |
|||
See [http://semantic-mediawiki.org/wiki/Help:Inline_queries#Output_formats Inline query output formats]. |
|||
=== Query counting each test case === |
|||
There are |
|||
{{#ask: |
|||
[[Category:Test cases]] [[Stream::Joyridex]] |
|||
| format=count |
|||
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]? |
|||
}} test cases in [[:Category:Test cases]] with [[Property:Stream]] of Joyride. |
|||
=== Query displaying each test case === |
=== Query displaying each test case === |
||
If the pages you are including are small, you can embed them. This is like transcluding each page with <nowiki>{{:Title of page}} {{:Another page}} ...</nowiki>, but dynamic. |
If the pages you are including are small, you can embed them with <tt>format=embedded</tt>. This is like transcluding each page with <nowiki>{{:Title of page}} {{:Another page}} ...</nowiki>, but dynamic. |
||
{{#ask: |
{{#ask: |
||
[[Category:Test cases]] [[Stream::Joyride]] |
[[Category:Test cases]] [[Stream::Joyride]] |
||
| ?Name |
|||
| ?Objective |
|||
| format=embedded |
| format=embedded |
||
| embedformat=h4 |
| embedformat=h4 |
||
| ?Category |
|||
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]? |
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]? |
||
}} |
}} |
||
[[Category:Semantic MediaWiki]] |
Revision as of 06:10, 4 August 2008
Other ways to query for test cases than the query(s) on Test cases 8.2.0
See Inline query output formats.
Query counting each test case
There are {{#ask: Stream::Joyridex
| format=count | default=No articles found in Category:Test cases with Property:Stream of Joyride?
}} test cases in Category:Test cases with Property:Stream of Joyride.
Query displaying each test case
If the pages you are including are small, you can embed them with format=embedded. This is like transcluding each page with {{:Title of page}} {{:Another page}} ..., but dynamic.
{{#ask: Stream::Joyride
| format=embedded | embedformat=h4 | default=No articles found in Category:Test cases with Property:Stream of Joyride?
}}