Difference between revisions of "CreateHelpPageTest"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
(edited by wikiedit)
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
{% set pagetitle_prefix = "Help:"%}
 
{% set pagetitle_prefix = "Help:"%}
 
[[File:Help_Icon.png|right]]
 
[[File:Help_Icon.png|right]]
== Help for {{ res.name }} ==
+
== Help for {{ row.name }} ==
{% raw %}{{{% endraw %}#ask: [[Topic name::{{ res.name }}]]
+
{% raw %}{{{% endraw %}#ask: [[Topic name::{{ row.name }}]]
 
|mainlabel=-
 
|mainlabel=-
 
|?Topic icon = icon
 
|?Topic icon = icon
Line 21: Line 21:
 
{% raw %}}}{% endraw %}
 
{% raw %}}}{% endraw %}
 
=== Documentation ===
 
=== Documentation ===
{{ res.documentation }}
+
{{ row.documentation }}
=== Example {{ res.pluralName }} ===
+
=== Example {{ row.pluralName }} ===
{% raw %}{{{% endraw %}#ask: [[Concept:{{ res.name }}]]{% raw %}}}{% endraw %}
+
{% raw %}{{{% endraw %}#ask: [[Concept:{{ row.name }}]]{% raw %}}}{% endraw %}
 
=== Properties ===
 
=== Properties ===
  
{% raw %} {{ {% endraw %}#ask: [[Concept:Property]][[Property topic::Concept:{{ res.name }}]]
+
{% raw %} {{ {% endraw %}#ask: [[Concept:Property]][[Property topic::Concept:{{ row.name }}]]
|mainlabel={{ res.name }}
+
|mainlabel={{ row.name }}
{% for page in smw.query("[[Property topic::" + res.Topic +"]]|? Property name = name").values() %}
+
{% for page in smw.query("[[Concept:Property]][[Property topic::Concept:Property]]|?Property name = name").values() %}
 
| ?Property {{ page.name }} = {{ page.name }}  
 
| ?Property {{ page.name }} = {{ page.name }}  
 
{%endfor%}
 
{%endfor%}
 
|order=ascending
 
|order=ascending
| limit={% if res.listlimit %} {{ res.listlimit }} {% else %} 200 {% endif %}
+
| limit={% if row.listlimit %} {{ row.listlimit }} {% else %} 200 {% endif %}
 
{% raw %} }} {% endraw %}
 
{% raw %} }} {% endraw %}
  
{{ res.uml }}
+
{{ row.uml }}
{{ res.seealso }}
+
{{ row.seealso }}
[[Category:{{ res.name }}]]
+
[[Category:{{ row.Topic }}]]
 
</pre>
 
</pre>
 
|storemode=property
 
|storemode=property
Line 43: Line 43:
  
 
=Freitext=
 
=Freitext=
 +
[[Category:Jinja Template]]

Latest revision as of 19:01, 9 February 2021

Sourcecode

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

Freitext