« Utilisateur:Carlo666/Test/Test5 » : différence entre les versions

De Semantic MediaWiki - Sandbox
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
Ligne 1 : Ligne 1 :
== Problem ==
This query return subpages of current page but also subobjects contained therein:
<pre>{{#ask:
<pre>{{#ask:
   [[~{{FULLPAGENAME}}/*]]
   [[~{{FULLPAGENAME}}/*]]
Ligne 8 : Ligne 10 :
}}
}}


== Trying to filter pages by '#' character ==
<pre>{{#ask:
<pre>{{#ask:
   [[~{{FULLPAGENAME}}/*]]
   [[~{{FULLPAGENAME}}/*]]
Ligne 73 : Ligne 76 :
}}
}}


== Trying to filter out subobjects by text properties ==
== Trying to filter subobjects by text properties ==


Excluding pages with property not containing '#' does not work:
* Excluding pages with property not containing '#' does not work:
<pre>{{#ask:
<pre>{{#ask:
   [[~{{FULLPAGENAME}}/*]]
   [[~{{FULLPAGENAME}}/*]]
Ligne 87 : Ligne 90 :
}}
}}


Same results when '#' is escaped:
* Same results when '#' is escaped:
<pre>{{#ask:
<pre>{{#ask:
   [[~{{FULLPAGENAME}}/*]]
   [[~{{FULLPAGENAME}}/*]]
Ligne 99 : Ligne 102 :
}}
}}


Now try to select only pages with property containing '#':
* Now select only pages with property containing '#':
<pre>{{#ask:
<pre>{{#ask:
   [[~{{FULLPAGENAME}}/*]]
   [[~{{FULLPAGENAME}}/*]]
Ligne 111 : Ligne 114 :
}}
}}


Same results when '#' is escaped:
* When '#' is escaped no result is returned:
<pre>{{#ask:
<pre>{{#ask:
   [[~{{FULLPAGENAME}}/*]]
   [[~{{FULLPAGENAME}}/*]]

Version du 25 septembre 2019 à 12:04

Problem

This query return subpages of current page but also subobjects contained therein:

{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  |format=ul
}}

Trying to filter pages by '#' character

{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[!~*#*]]
  |?note
  |format=ul
}}


{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[!~*\#*]]
  |?note
  |format=ul
}}
{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[!~*sub*]]
  |?note
  |format=ul
}}
{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[!~*#sub1]]
  |?note
  |format=ul
}}


{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[!~*\#sub1]]
  |?note
  |format=ul
}}

Trying to filter subobjects by text properties

  • Excluding pages with property not containing '#' does not work:
{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[SomeTestProperty::!~*#*]]
  |?SomeTestProperty
}}


  • Same results when '#' is escaped:
{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[SomeTestProperty::!~*\#*]]
  |?SomeTestProperty
}}


  • Now select only pages with property containing '#':
{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[SomeTestProperty::~*#*]]
  |?SomeTestProperty
}}
 SomeTestProperty
Carlo666/Test/Test5/Page2Carlo666/Test/Test5/Page2#sub1
  • When '#' is escaped no result is returned:
{{#ask:
  [[~{{FULLPAGENAME}}/*]]
  [[SomeTestProperty::~*\#*]]
  |?SomeTestProperty
}}
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.