« Issue/541 » : différence entre les versions
De Semantic MediaWiki - Sandbox
(chg) |
(chg) |
||
Ligne 3 : | Ligne 3 : | ||
; SMW 2.4+ | ; SMW 2.4+ | ||
<pre> | |||
{{#ask: | |||
[[:+]] | |||
[[Page author::+]] | |||
|?Has Url=url | |||
|format=table | |||
|sort=Has Url | |||
|limit=2 | |||
|mainlabel=page | |||
}} | |||
</pre> | |||
{{#ask: | {{#ask: | ||
[[:+]] | [[:+]] | ||
Ligne 14 : | Ligne 25 : | ||
;"hack" for SMW 1.6 to 2.3 | ;"hack" for SMW 1.6 to 2.3 | ||
<pre> | |||
{{#ask: | |||
[[:+]] | |||
[[Page author::+]] | |||
|?=page | |||
|?Has Url=url | |||
|format=table | |||
|sort=Has Url | |||
|limit=2 | |||
|mainlabel=- | |||
}} | |||
</pre> | |||
{{#ask: | {{#ask: | ||
[[:+]] | [[:+]] |
Version du 1 mars 2016 à 15:09
avoid result column duplication on "Special:Ask"
Reference: 1
- SMW 2.4+
{{#ask: [[:+]] [[Page author::+]] |?Has Url=url |format=table |sort=Has Url |limit=2 |mainlabel=page }}
page | url |
---|---|
Issue/3533 | [git:git.server.com/srv/git git:git.server.com/srv/git] |
Lorem ipsum | http://example.org/some/ |
... autres résultats |
- "hack" for SMW 1.6 to 2.3
{{#ask: [[:+]] [[Page author::+]] |?=page |?Has Url=url |format=table |sort=Has Url |limit=2 |mainlabel=- }}
page | url |
---|---|
Issue/3533 | [git:git.server.com/srv/git git:git.server.com/srv/git] |
Lorem ipsum | http://example.org/some/ |
... autres résultats |