Sjabloon:ToonTabelBijViewRij: verschil tussen versies
(SmartServerPages SWCAPI => action = update page) |
Geen bewerkingssamenvatting |
||
Regel 1: | Regel 1: | ||
<!--TS: | <!--TS:20210422212752--><noinclude>[[Categorie:ArchiMedesCustomTemplates]]</noinclude><includeonly><!--USERPARAM:-{{{#userparam|}}}-<br/> | ||
-->{{#vardefine: posQQQ|{{#pos:{{{#userparam|}}}|QQQ}} }}{{#vardefine: posZZZ|{{#pos:{{{#userparam|}}}|ZZZ}} }}{{#ifeq: {{#var:posQQQ}}|0||{{#vardefine: up|{{#sub:{{{#userparam|}}}|0|{{#var:posQQQ}} }} }} }}<!-- | |||
* posQQQ:{{#var:posQQQ}} | |||
* posZZZ:{{#var:posZZZ}} | |||
* up: {{#var:up}} --> | |||
{{#vardefine: type|{{#sub:{{{#userparam|}}}|{{#expr:{{#var:posQQQ}} + 3 }}|{{#expr:{{#var: posZZZ}} - 3 }} }} }}<!-- | |||
* TYPE: {{#expr:{{#var:posQQQ}} + 3 }}->{{#expr:{{#var: posZZZ}} }} - {{#var:type}} | |||
-->{{#vardefine: attributen|{{#sub:{{{#userparam|}}}|{{#expr:{{#var:posZZZ}} + 3 }} }}|{{#len:{{{#userparam|}}} }} }}<tr> | |||
{{#ifeq: {{#var:type}}|Relatie|<td>{{#show: {{{1|}}}|?Has source element}}</td>}} | {{#ifeq: {{#var:type}}|Relatie|<td>{{#show: {{{1|}}}|?Has source element}}</td>}} | ||
<td>[[{{{1}}}]] </td>{{#ifeq: {{#var:type}}|Relatie|<td>{{#show: {{{1|}}}|?Has target element}}</td>}} | <td>[[{{{1}}}]] </td>{{#ifeq: {{#var:type}}|Relatie|<td>{{#show: {{{1|}}}|?Has target element}}</td>}} | ||
<td>{{{2}}}</td>{{#ifeq: {{#var:up}}|toelichting|<td>{{#show: {{{1|}}}|?Toelichting}}</td>}}{{#ifeq: {{#var:up}}|filter|<td>{{#show: {{{1|}}}|?Elementtype}}</td>}}{{#ifeq: {{#var:up}}|toelichtingfilter|<td>{{#show: {{{1|}}}|?Toelichting}}</td><td>{{#show: {{{1|}}}|?Elementtype}}</td>}}{{#ifeq: {{#var:attributen}}|||{{#arraymap: {{#var: attributen}}|,|attribuut|<td>{{#show: {{{1|}}}|?attribuut}}</td>|<nowiki></nowiki>}} }}</tr></includeonly> | <td>{{{2}}}</td>{{#ifeq: {{#var:up}}|toelichting|<td>{{formatlist|{{#show: {{{1|}}}|?Toelichting}} }}</td>}}{{#ifeq: {{#var:up}}|filter|<td>{{#show: {{{1|}}}|?Elementtype}}</td>}}{{#ifeq: {{#var:up}}|toelichtingfilter|<td>{{formatlist|{{#show: {{{1|}}}|?Toelichting}}}}</td><td>{{#show: {{{1|}}}|?Elementtype}}</td>}}{{#ifeq: {{#var:attributen}}|||{{#arraymap: {{#var: attributen}}|,|attribuut|<td>{{#show: {{{1|}}}|?attribuut}}</td>|<nowiki></nowiki>}} }}</tr></includeonly> |