« HaloTestEvent » : différence entre les versions

De Semantic MediaWiki - Sandbox

(simplified syntax)
(tabular view)
Ligne 1 : Ligne 1 :
Inspired with: https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#Subqueries_and_property_chains
Inspired with: https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#Subqueries_and_property_chains


== Example ==
==Example==


===Traditional syntax===
{| border="1" cellpadding="2" cellspacing="0"
* '''Venue (Heineken Music Hall expected):'''
! Venue
    '''{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}'''
| {{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
    <nowiki>{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki>
| <nowiki>{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki><br/><small><nowiki>{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki></small>
* '''City (Amsterdam expected):'''
|-
    '''{{#ask: [[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]] | ?Has text= | mainlabel=-}}'''
! City
    <nowiki>{{#ask: [[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]] | ?Has text= | mainlabel=-}}</nowiki>
| {{#ask: [[-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
* '''Country (Netherlands expected):'''
| <nowiki>{{#ask: [[-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki><br/><small><nowiki>{{#ask: [[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]] | ?Has text= | mainlabel=-}}</nowiki></small>
    '''{{#ask: [[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]] | ?Has text= | mainlabel=-}}'''
|-
    <nowiki>{{#ask: [[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]] | ?Has text= | mainlabel=-}}</nowiki>
! Country
* '''Continent (Europe expected):'''
| {{#ask: [[-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
    '''{{#ask: [[-Has page::<q>[[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]]</q>]] | ?Has text= | mainlabel=-}}'''
| <nowiki>{{#ask: [[-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki><br/><small><nowiki>{{#ask: [[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]] | ?Has text= | mainlabel=-}}</nowiki></small>
    <nowiki>{{#ask: [[-Has page::<q>[[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]]</q>]] | ?Has text= | mainlabel=-}}</nowiki>
|-
 
! Continent
===Simplified syntax===
| {{#ask: [[-Has page.-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
* '''Venue (Heineken Music Hall expected):'''
| <nowiki>{{#ask: [[-Has page.-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki><br/><small><nowiki>{{#ask: [[-Has page::<q>[[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]]</q>]] | ?Has text= | mainlabel=-}}</nowiki></small>
    '''{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}'''
|}
    <nowiki>{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki>
* '''City (Amsterdam expected):'''
    '''{{#ask: [[-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}'''
    <nowiki>{{#ask: [[-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki>
* '''Country (Netherlands expected):'''
    '''{{#ask: [[-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}'''
    <nowiki>{{#ask: [[-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki>
* '''Continent (Europe expected):'''
    '''{{#ask: [[-Has page.-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}'''
    <nowiki>{{#ask: [[-Has page.-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}</nowiki>


==See also==
==See also==

Version du 7 mars 2016 à 09:12

Inspired with: https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#Subqueries_and_property_chains

Example

Venue Heineken Music Hall {{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
{{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
City Amsterdam {{#ask: [[-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
{{#ask: [[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]] | ?Has text= | mainlabel=-}}
Country Netherlands {{#ask: [[-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
{{#ask: [[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]] | ?Has text= | mainlabel=-}}
Continent Europe {{#ask: [[-Has page.-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
{{#ask: [[-Has page::<q>[[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]]</q>]] | ?Has text= | mainlabel=-}}

See also

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.