Difference between revisions of "CreateListOf"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
{% raw %}{{{% endraw %}#ask: [[Concept:{{ res.name}}]]|format=count{% raw %}}}{% endraw %} {{ res.pluralName }}:
 
{% raw %}{{{% endraw %}#ask: [[Concept:{{ res.name}}]]|format=count{% raw %}}}{% endraw %} {{ res.pluralName }}:
  
{% raw %} {{ {% endraw %}#ask: [[Concept:{{ name }}]]
+
{% raw %} {{ {% endraw %}#ask: [[Concept:{{ res.name }}]]
 
|mainlabel={{ res.name }}
 
|mainlabel={{ res.name }}
{% for property in smw.query("[[Property topic::" + res.Topic +"]]").keys() %}
+
{% for page in smw.query("[[Property topic::" + res.Topic +"]]").values() %}
| ?{{ property }} = {{ property }}  
+
| ?{{res.name}} {{ page.name }} = {{ page.name }}  
 
{%endfor%}
 
{%endfor%}
|sort={{ res.name }}
 
 
|order=ascending
 
|order=ascending
 
| limit={% if res.listlimit %} {{ res.listlimit }} {% else %} 200 {% endif %}
 
| limit={% if res.listlimit %} {{ res.listlimit }} {% else %} 200 {% endif %}

Revision as of 15:32, 9 February 2021

Sourcecode

Sourcecode
edit
id  CreateListOf
lang  jinja
author  Tim Holzheim
since  2021/02/09
test  
'"`UNIQ--pre-00000000-QINU`"'
url  

Freitext