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: |
+ | </noinclude><includeonly>{{#vardefine:pagename|{{{1}}}}}{{#vardefine:topcontext|{{{userparam}}}}}{{#vardefine:bronLC|{{#if:{{#ask: [[Category:Light Context]] [[{{#var:pagename}}]] | link=none}}|1|0}}}}{{#vardefine:bronPr|{{#if:{{#ask: [[Category:Project]] [[{{#var:pagename}}]] | link=none}}|1|0}}}}{{#ifexpr: {{#var:bronLC}}|{{#autoedit:target={{#var:pagename}}|form=Light Context|link text=Update Light Context|link type=link|query string=Light Context[Topcontext]={{#var:topcontext}}}}|{{#ifexpr: {{#var:bronPr}}|{{#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> |
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.