Difference between revisions of "CreateTopicTemplate"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
Line 52: Line 52:
 
       {{ '{{' }}#ask:[[Concept:Property]][[Property topic::{{FULLPAGENAME}}]]
 
       {{ '{{' }}#ask:[[Concept:Property]][[Property topic::{{FULLPAGENAME}}]]
 
       {% for p in property_properties%}
 
       {% for p in property_properties%}
       | ?Property {{ p }} = {{ p }}
+
       | ?Property {{ p.name }} = {{ p.name }}
 
       {% endfor %}
 
       {% endfor %}
 
         |sort=Property name
 
         |sort=Property name
Line 59: Line 59:
 
     |tableheader={{ '{{{!}}' }} class='wikitable'
 
     |tableheader={{ '{{{!}}' }} class='wikitable'
 
       {% for p in topic_properties%}
 
       {% for p in topic_properties%}
         !{{ p }}!
+
         !{{ p.name }}!
 
       {% endfor %}
 
       {% endfor %}
 
       {{ '{{!}}-' }}
 
       {{ '{{!}}-' }}
 
     |tablerow=
 
     |tablerow=
 
       {% for p in topic_properties%}
 
       {% for p in topic_properties%}
         {{ '{{!}}{{{' }}{{p}}{{ '|}}}{{!}}' }}
+
         {{ '{{!}}{{{' }}{{p.name}}{{ '|}}}{{!}}' }}
 
       {% endfor %}
 
       {% endfor %}
 
       -
 
       -
Line 70: Line 70:
 
     |labelfield=
 
     |labelfield=
 
       {% for p in topic_properties%}
 
       {% for p in topic_properties%}
         {{ p }}={{ '={{#if:{{{' }}{{ p }}{{ '|}}}|{{{' }}{{ p }}{{ '|}}}|}}<br>' }}
+
         {{ p.name }}={{ '={{#if:{{{' }}{{ p.name }}{{ '|}}}|{{{' }}{{ p.name }}{{ '|}}}|}}<br>' }}
 
       {% endfor %}
 
       {% endfor %}
 
     |#default=
 
     |#default=
Line 82: Line 82:
 
         {{ '}}' }}
 
         {{ '}}' }}
 
         {% for p in topic_properties%}
 
         {% for p in topic_properties%}
           !{{ p }}
+
           !{{ p.name }}
 
           {{ '{{!}}' }}
 
           {{ '{{!}}' }}
             {{ '&nbsp;{{#if:{{{' }}{{ p }}{{ '|}}}|{{{' }}{{ p }}{{ '|}}}|}}' }}
+
             {{ '&nbsp;{{#if:{{{' }}{{ p.name }}{{ '|}}}|{{{' }}{{ p.name }}{{ '|}}}|}}' }}
 
             {{ '{{!}}-' }}
 
             {{ '{{!}}-' }}
 
         {% endfor %}
 
         {% endfor %}

Revision as of 16:19, 14 February 2021

Sourcecode

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

Freitext