(Updated to version using the Variables extension.) |
(Removing testcases.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 41: | Line 41: | ||
-->{{#vardefine: preload-sandbox | |
-->{{#vardefine: preload-sandbox | |
||
{{{preload-sandbox|Template:Documentation/preload-sandbox}}}&summary={{urlencode:Create sandbox subpage for experimenting on template [[{{#var: base page}}]]}} |
{{{preload-sandbox|Template:Documentation/preload-sandbox}}}&summary={{urlencode:Create sandbox subpage for experimenting on template [[{{#var: base page}}]]}} |
||
}}<!-- |
|||
-->{{#vardefine: preload-testcases | |
|||
{{{preload-testcases|Template:Documentation/preload}}}&summary={{urlencode:Create testcases for [[{{#var: base page}}]]}} |
|||
}}<!-- |
}}<!-- |
||
Line 52: | Line 48: | ||
| {{{sandbox|{{#var: base page}}/sandbox}}} |
| {{{sandbox|{{#var: base page}}/sandbox}}} |
||
}} |
}} |
||
}}<!-- |
|||
-->{{#vardefine: testcases | |
|||
{{#if: {{{page|}}} |
|||
| {{{page}}}/testcases |
|||
| {{{testcases|{{#var: base page}}/testcases}}} |
|||
}} |
|||
}}<!-- |
}}<!-- |
||
Line 85: | Line 74: | ||
- |
- |
||
-->{{#ifeq: {{SUBPAGENAMEE}} | sandbox |
-->{{#ifeq: {{SUBPAGENAMEE}} | sandbox |
||
| <div class="article-table" |
| <div class="article-table documentation" |
||
style="padding:1.5em; margin:auto; border:1px solid #5556; border-bottom:1px solid #5556; width:75%"><!-- |
style="padding:1.5em; margin:auto; border:1px solid #5556; border-bottom:1px solid #5556; width:75%"><!-- |
||
-->This is a template sandbox subpage for [[{{#var: base page}}]]. <!-- |
-->This is a template sandbox subpage for [[{{#var: base page}}]]. <!-- |
||
-->{{#ifexist: {{#var: testcases}} |
|||
| See also the companion subpage for [[{{#var: testcases}}|the testcases]]. |
|||
}}<!-- |
|||
--></div> |
--></div> |
||
}}<!-- |
}}<!-- |
||
Line 98: | Line 84: | ||
- Documentation Header |
- Documentation Header |
||
- |
- |
||
--><div class="article-table" style="padding:1em; margin:0; border-bottom:1px solid #5556"><!-- |
--><div class="article-table documentation" style="padding:1em; margin:0; border-bottom:1px solid #5556"><!-- |
||
--><span style="font-size:1.5em">{{#var: doc image }}'''{{{heading|{{ucfirst: {{#var: page text}} }} Documentation}}}'''</span><!-- |
--><span style="font-size:1.5em">{{#var: doc image }}'''{{{heading|{{ucfirst: {{#var: page text}} }} Documentation}}}'''</span><!-- |
||
- |
- |
||
Line 133: | Line 119: | ||
- |
- |
||
-->{{#if: {{{nofooter|}}} | | |
-->{{#if: {{{nofooter|}}} | | |
||
<div class="article-table" style="clear:both; padding:.5em; margin:0; border-top:1px solid #5556"><!-- |
<div class="article-table documentation" style="clear:both; padding:.5em; margin:0; border-top:1px solid #5556"><!-- |
||
- |
- |
||
- The above [documentation] is … |
- The above [documentation] is … |
||
Line 152: | Line 138: | ||
}}<!-- |
}}<!-- |
||
- |
- |
||
- |
- Sandboxes. |
||
- |
- |
||
- NOTE: THIS WILL CREATE MANY (yes, MANY) REDLINKS (IF YOU DIDN'T MAKE THE /sandbox |
- NOTE: THIS WILL CREATE MANY (yes, MANY) REDLINKS (IF YOU DIDN'T MAKE THE /sandbox PAGE). IF YOU DONT WANT THE LINKS, PLEASE REPLACE THE CODE BELOW WITH: |
||
< |
< |
||
Editors can experiment in the page's [{{fullurl: {{#var: sandbox}}}} sandbox] |
Editors can experiment in the page's [{{fullurl: {{#var: sandbox}}}} sandbox] page. |
||
> |
> |
||
- |
- |
||
Line 181: | Line 167: | ||
}}<!-- |
}}<!-- |
||
⚫ | |||
--> and <!-- |
|||
-->{{#ifexist: {{#var:testcases}} |
|||
| [[{{#var:testcases}}|testcases]] <small>([[Special:EditPage/{{#var: testcases}}|edit]])</small> |
|||
| testcases <small>(<!-- |
|||
-->[{{fullurl: {{FULLPAGENAMEE:{{#var: testcases}}}} |
|||
| action=edit&preload={{#var: preload-testcases}} |
|||
}} create]<!-- |
|||
-->)</small> |
|||
}}<!-- |
|||
⚫ | |||
--><!-- CHANGE END --><!-- |
--><!-- CHANGE END --><!-- |
||
- |
- |
Latest revision as of 06:20, 2 October 2024
{{#vardefine: base page |
Template:Documentation
}}{{#vardefine: current page | Template:Documentation}}{{#vardefine: doc page |
{{#var: base page}}/doc
}}{{#vardefine: namespace |
Template
}}{{#vardefine: preload |
Template:Documentation/preload&summary=Create+%2Fdoc+subpage+for+%5B%5B%7B%7B%23var%3A+base+page%7D%7D%5D%5D&editintro=Template:Documentation/editintro-doc
}}{{#vardefine: preload-sandbox |
Template:Documentation/preload-sandbox&summary=Create+sandbox+subpage+for+experimenting+on+template+%5B%5B%7B%7B%23var%3A+base+page%7D%7D%5D%5D
}}{{#vardefine: sandbox |
{{#var: base page}}/sandbox
}}{{#vardefine: page text |
page
}}{{#vardefine: doc image |
}}
{{#var: doc image }}{{#var: page text}} Documentation[[[[:Template:Fullurl:]] create] | [[Special:Purge/{{#var: current page}}|purge]]]
The documentation for this {{#var: page text}} does not exist. Create it at [[[:Template:Fullurl:]] {{#var: doc page}}].
[[[:Template:Fullurl:]] Create documentation] for this template.
Editors can experiment in this {{#var: page text}}'s sandbox ([[[:Template:Fullurl:]] create] | [[[:Template:Fullurl:]] mirror]) page.
[[Special:PrefixIndex/{{#var: current page}}|Subpages of this {{#var: page text}}]].
Editors can experiment in this {{#var: page text}}'s sandbox ([[[:Template:Fullurl:]] create] | [[[:Template:Fullurl:]] mirror]) page.
[[Special:PrefixIndex/{{#var: current page}}|Subpages of this {{#var: page text}}]].