| Regel 12: | Regel 12: | ||
</noinclude><includeonly> |
</noinclude><includeonly> |
||
{{#vardefine:pagename|{{{1}}}}} |
{{#vardefine:pagename|{{{1}}}}} |
||
| + | {{#vardefine:topcontext|{{{userparam}}} |
||
1 = {{#var:pagename}} <br /> |
1 = {{#var:pagename}} <br /> |
||
| − | userparam = {{ |
+ | userparam = {{#var:topcontext}} <br />
|
{{#vardefine:sourceLC|{{#if:{{#ask: [[Category:Light Context]] [[{{#var:pagename}}]] | link=none}}|1|0}}}} |
{{#vardefine:sourceLC|{{#if:{{#ask: [[Category:Light Context]] [[{{#var:pagename}}]] | link=none}}|1|0}}}} |
||
| Regel 19: | Regel 20: | ||
{{#ifexpr: {{#var:sourceLC}} | |
{{#ifexpr: {{#var:sourceLC}} | |
||
| − | Light Context | |
+ | Light Context |
| − | {{#ifexpr: {{#var:sourcePr}} | |
+ |
<!-- {{#autoedit:form=Light Context|target={{#var:pagename}}|query string=Light Context[Topcontext]={{#var:topcontext}}}} -->
|
| − | Project | |
+ |
| {{#ifexpr: {{#var:sourcePr}} | |
| − | Not a proper page |
+ | Project |
| + |
<!-- {{#autoedit:form=Project|target={{#var:pagename}}|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.