Template:TableRowTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
prop : property to display
prop : property to display
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq: {{#ask: [[{{PAGENAME}}]]::{{{prop|}}} |format= count }}|0||
{{#ifeq: {{#ask: [[{{PAGENAME}}]][[{{{prop|}}}::+]] |format= count }}|0||
<tr><td class="PageWidthTableFirstCell">'''{{{header|}}}'''</td>
<tr><td class="PageWidthTableFirstCell">'''{{{header|}}}'''</td>
     <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? {{{prop|}}} }}</td></tr>}}  
     <td class="PageWidthTableRemainderCell">{{#show:{{PAGENAME}}|? {{{prop|}}} }}</td></tr>}}  
</includeonly>
</includeonly>

Revision as of 12:32, 12 June 2017

used in the PageWithTableTemplate style tables fields are expressed as property values params: header : label of property prop : property to display