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>{{#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[Topcontext]={{#var:topcontext}}}}|{{#ifexpr: {{#var:sourcePr}}|Project: {{#autoedit:target={{#var:pagename}}|form=Project|link text=Update Project|link type=link|query string=Project[Topcontext]={{#var:topcontext}}}}|Not a proper page}} }}
+
</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}}|{{#autoedit:target={{#var:pagename}}|form=Light Context|link text=Update Light Context|link type=link|query string=Light Context[Topcontext]={{#var:topcontext}}}}|{{#ifexpr: {{#var:sourcePr}}|{{#autoedit:target={{#var:pagename}}|form=Project|link text=Update Project|link type=link|query string=Project[Topcontext]={{#var:topcontext}}}}|Not a proper page}} }}
 
</includeonly>
 
</includeonly>

Versie van 28 dec 2017 om 00:36

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.