Sjabloon:STD Project: verschil tussen versies

Regel 4: Regel 4:
 
<pre>
 
<pre>
 
{{STD Project
 
{{STD Project
|PR ID=
+
|Project=
 
|STD Role=
 
|STD Role=
 
}}
 
}}
Regel 10: Regel 10:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<!-- for test purposes
+
<div style="display:none;">
{|
 
! Project:
 
| [[ {{#ask: [[Category:Project]] [[PR ID::{{{PR ID|}}}]] | link=none}} | {{{PR ID|}}} ]]
 
|-
 
! Rol:
 
| {{{STD Role|}}}
 
|}
 
--><div style="display:none;">
 
 
<!-- Let op: var:varName is een globale variable gezet in Student template -->
 
<!-- Let op: var:varName is een globale variable gezet in Student template -->
{{#vardefine:varProject|{{#ask: [[Category:Project]][[PR ID::{{{PR ID|}}}]] | link=none}}}}
+
{{#vardefine:varProject|{{{Project|}}}}}
  +
{{#vardefine:varPRID|{{#show: {{#var:varProject}} | ?PR ID }}}}
 
{{#vardefine:varRol|{{{STD Role|}}}}}
 
{{#vardefine:varRol|{{{STD Role|}}}}}
 
{{#subobject:
 
{{#subobject:
|Project ID={{{PR ID|}}}
+
|Project ID={{#var:varPRID}}
 
|Project={{#var:varProject}}
 
|Project={{#var:varProject}}
 
|Name={{#var:varName}}
 
|Name={{#var:varName}}
Regel 30: Regel 23:
 
|STD back link={{PAGENAME}}
 
|STD back link={{PAGENAME}}
 
}}
 
}}
{{#set: Project ID={{{PR ID|}}}}}
+
{{#set: Project ID={{#var:varPRID}}}}
 
{{#set: Project|{{#var:varProject}}}}
 
{{#set: Project|{{#var:varProject}}}}
 
{{#set: Supercontext|{{#var:varProject}}}}
 
{{#set: Supercontext|{{#var:varProject}}}}
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Versie van 15 nov 2015 om 13:17

This is the "STD Project" template. It should be called in the following format:

{{STD Project
|Project=
|STD Role=
}}

Edit the page to see the template text.