Regel 16: | Regel 16: | ||
1 = {{#var:pagename}} <br /> |
1 = {{#var:pagename}} <br /> |
||
userparam = {{#var:topcontext}} <br /> |
userparam = {{#var:topcontext}} <br /> |
||
− | |||
− | |||
− | |||
--> |
--> |
||
− | {{#ifexpr: {{#var:sourceLC}} | |
+ |
{{#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}} }} |
− | 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> |
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.