Sjabloon:Set Topcontext: verschil tussen versies

Regel 10: Regel 10:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly>{{#vardefine:pagename|{{{1}}}}}{{#vardefine:topcontext|{{{userparam}}}}}{{#vardefine:sourceLC|{{#if:{{#ask: [[Category:Light Context]] [[{{#var:pagename}}]] | link=none}}|1|0}}}}{{#vardefine:sourcePr|{{#if:{{#ask: [[Category:Project]] [[{{#var:pagename}}]] | link=none}}|1|0}}}}{{#ifexpr: {{#var:sourceLC}}|Light Context: {{#autoedit:target={{#var:pagename}}|form=Light Context|link text=Update Light Context|link type=link|query string=Light Context[Summary]={{#var:topcontext}}}}|{{#ifexpr: {{#var:sourcePr}}|Project: {{#autoedit:target={{#var:pagename}}|form=Project|link text=Update Project|link type=link|query string=Project[Summary]={{#var:topcontext}}}}|Not a proper page}} }}
{{#vardefine:pagename|{{{1}}}}}
 
{{#vardefine:topcontext|{{{userparam}}}}}
 
<!--
 
1 = {{#var:pagename}} <br />
 
userparam = {{#var:topcontext}} <br />
 
-->
 
{{#vardefine:sourceLC|{{#if:{{#ask: [[Category:Light Context]] [[{{#var:pagename}}]] | link=none}}|1|0}}}}{{#vardefine:sourcePr|{{#if:{{#ask: [[Category:Project]] [[{{#var:pagename}}]] | link=none}}|1|0}}}}{{#ifexpr: {{#var:sourceLC}}|Light Context: {{#autoedit:target={{#var:pagename}}|form=Light Context|link text=Update Light Context|link type=link|query string=Light Context[Summary]={{#var:topcontext}}}}|{{#ifexpr: {{#var:sourcePr}}|Project: {{#autoedit:target={{#var:pagename}}|form=Project|link text=Update Project|link type=link|query string=Project[Summary]={{#var:topcontext}}}}|Not a proper page}} }}
 
 
</includeonly>
 
</includeonly>

Versie van 28 dec 2017 om 00:19

This is the "Set Topcontext" template. It should be called in the following format:

{{Set Topcontext
|Page=
|Topcontext=
}}

Edit the page to see the template text.