Difference between revisions of "CreateListOf"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
|text=<pre>
 
|text=<pre>
  
== {{ pluralName }} ==
+
== {{ context["rows"].pluralName }} ==
{% raw %}{{{% endraw %}#forminput:form={{ name }}|button text=add {{ name }}{% raw %}}}{% endraw %}
+
{% raw %}{{{% endraw %}#forminput:form={{ context["rows"].name }}|button text=add {{ context["rows"].name }}{% raw %}}}{% endraw %}
{% raw %}{{{% endraw %}#ask: [[Concept:{{ name}}]]|format=count{% raw %}}}{% endraw %} {{ pluralName }}:
+
{% raw %}{{{% endraw %}#ask: [[Concept:{{ context["rows"].name}}]]|format=count{% raw %}}}{% endraw %} {{ context["rows"].pluralName }}:
  
 
{% raw %} {{ {% endraw %}#ask: [[Concept:@topic.name]]
 
{% raw %} {{ {% endraw %}#ask: [[Concept:@topic.name]]
|mainlabel={{ name }}
+
|mainlabel={{ context["rows"].name }}
{% for property in getList("[[Property topic::" + name +"]]") %}
+
{% for property in context["wikiclient"].query("[[Property topic::" + context["rows"].name +"]]").keys() %}
| ?{{ name }} {{ property }} = {{ property }}  
+
| ?{{ context["rows"].name }} {{ property }} = {{ property }}  
 
{%endfor%}
 
{%endfor%}
|sort={{ name }}
+
|sort={{ context["rows"].name }}
 
|order=ascending
 
|order=ascending
| limit={% if listlimit %} {{ listlimit }} {% else %} 200 {% endif %}
+
| limit={% if context["rows"].listlimit %} {{ context["rows"].listlimit }} {% else %} 200 {% endif %}
 
{% raw %} }} {% endraw %}
 
{% raw %} }} {% endraw %}
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:1024px">
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:1024px">
[[:Category:{{ name }}]]
+
[[:Category:{{ context["rows"].name }}]]
 
</pre>
 
</pre>
 
|storemode=property
 
|storemode=property
 
}}
 
}}
 
=Freitext=
 
=Freitext=

Revision as of 12:14, 9 February 2021

Sourcecode

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

Freitext