Sjabloon:Include HNS aspect: verschil tussen versies

Regel 11: Regel 11:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly><div style="display:none;">
  +
<!--
  +
The Supercontext is not yet available before the Pseudonym property is set in the subobject. The subobject get parsed too soon, at least for our purposes in this case. The workaround is testing if the Supercontext is already there.
  +
-->
 
{{#vardefine:varSupercontext|{{#show: {{FULLPAGENAME}} | ?Supercontext | link=none}}}}
 
{{#vardefine:varSupercontext|{{#show: {{FULLPAGENAME}} | ?Supercontext | link=none}}}}
  +
<!--
 
varSupercontext = {{#var:varSupercontext}}
 
varSupercontext = {{#var:varSupercontext}}
{{#vardefine:varPseudonym|{{#if: {{#var:varSupercontext}}|{{#ask: [[HNSParticipant back link::{{#var:varSupercontext}}]] [[Name::{{{Name|}}}]] | mainlabel=- | ?Pseudonym=}}|}}}}
+
-->
  +
{{#vardefine:varPseudonym|{{#if: {{#var:varSupercontext}}|{{#ask: [[HNSParticipant back link::{{#var:varSupercontext}}]] [[Name::{{{Name|}}}]] | mainlabel=- | ?Pseudonym=}}|Pseudo}}}}
 
{{#vardefine:varHNSAspect|{{#if: {{{HNS aspect|}}}|{{{HNS aspect}}}|{{#show: {{FULLPAGENAME}} | ?HNS aspect}}}}}}
 
{{#vardefine:varHNSAspect|{{#if: {{{HNS aspect|}}}|{{{HNS aspect}}}|{{#show: {{FULLPAGENAME}} | ?HNS aspect}}}}}}
 
+
<!--
 
varPseudonym = {{#var:varPseudonym}}<br />
 
varPseudonym = {{#var:varPseudonym}}<br />
 
varHNSAspect = {{#var:varHNSAspect}}
 
varHNSAspect = {{#var:varHNSAspect}}
 
+
-->
<div style="display:none;">
 
 
{{#subobject:
 
{{#subobject:
 
|Name={{{Name|}}}
 
|Name={{{Name|}}}
Regel 29: Regel 33:
 
}}
 
}}
 
</div>
 
</div>
 
{{#ask: [[HNS aspect back link::{{FULLPAGENAME}}]]
 
| mainlabel=-
 
| ?Pseudonym=Naam
 
| ?Remark=Opmerking
 
| intro=Door deelnemers gemaakte opmerkingen:
 
| default=''Geen opmerkingen.''
 
| format=table
 
}}
 
 
 
</includeonly>
 
</includeonly>

Versie van 9 feb 2019 om 21:49

This is the "Include HNS ascpect" template. It should be called in the following format:

{{Include HNS aspect
|Name=
|Remark=
|HNS aspect=
}}

Edit the page to see the template text.