m (Closing classes.) |
(Removing testcases.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
- Documentation template |
- Documentation template |
||
- A template used to show the contents of a documentation subpage |
- A template used to show the contents of a documentation subpage |
||
- Note: Comments (<!-- --.>) are often used to avoid unnecessary line |
- Note: Comments (<!-- --.>) are often used to avoid unnecessary line breaks or spaces. |
||
------------------------------------------- |
|||
- DISCLAIMER |
|||
- THIS TEMPLATE IS COMPLEX!!! |
|||
- |
|||
- EDIT AT YOUR OWN DISCRETION!!! |
|||
-------------------------------------------- |
|||
--><!-- |
|||
- Sandbox notice |
|||
- Only shows if the subpage is a sandbox |
|||
--> |
--> |
||
{{#ifeq: {{SUBPAGENAMEE}} | sandbox |
|||
| <div class="article-table" |
|||
style="padding:1.5em; margin:auto; border:1px solid #5556; border-bottom:1px solid #5556; width:75%; display:flex"> |
|||
<div> |
|||
[[File:Sandbox.svg|left|70px|link=|alt=]] |
|||
</div> |
|||
<div> |
|||
: This is a template sandbox subpage for [[{{NAMESPACE}}:{{BASEPAGENAME}}]]. |
|||
:{{#ifexist: {{{testcases|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}/testcases}}} |
|||
| See also the companion subpage for [[{{NAMESPACE}}:{{BASEPAGENAMEE}}/testcases|the testcases]]. |
|||
}} |
|||
</div> |
|||
</div> |
|||
}}<!-- |
|||
--><div class="template-documentation" style="clear:both; border:1px solid #5556; margin:1em"> |
|||
<!-- |
<!-- |
||
- Pre-defined variables |
|||
- |
|||
--><!-- |
|||
- Header |
|||
-->{{#vardefine: base page | |
|||
- |
|||
{{{page| |
|||
--><div class="article-table" style="padding:1em; margin:0; border-bottom:1px solid #5556"><!-- |
|||
{{#ifeq: {{SUBPAGENAME}} | sandbox |
|||
- |
|||
| {{NAMESPACE}}:{{BASEPAGENAME}} |
|||
- Icon for documentation; will show red if documentation doesn't exist. Else shows the blue icon. |
|||
| {{FULLPAGENAME}} |
|||
- Changes depends on the Namespace |
|||
- Disabled when heading is specified. |
|||
- |
|||
-->{{#if: {{{heading|}}} |
|||
| |
|||
| {{#switch: {{NAMESPACE}} |
|||
| {{ns:Template}} | {{ns:Module}} = |
|||
[[File:{{#if: {{{content|}}} | Documentation_icon |
|||
| {{#ifexist: {{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}/doc}}} |
|||
| Documentation_icon |
|||
| No Documentation_icon |
|||
}} |
|||
}}.svg|left|70px|link=|alt=|class=mobile-hidden]] |
|||
}} |
}} |
||
}} |
}}} |
||
}}<!-- |
|||
- Heading |
|||
--><span>'''{{#if: {{{heading|}}} | {{{heading|Documentation}}} | <!-- |
|||
-->{{#vardefine: current page | {{FULLPAGENAME}}}}<!-- |
|||
| {{ns:Module}} = Module Documentation |
|||
-->{{#vardefine: doc page | |
|||
| {{ns:Template}} = Template Documentation |
|||
{{#if: {{{page|}}} |
|||
| {{{page}}}/doc |
|||
| #default = Documentation |
|||
| {{#if: {{{1|}}} |
|||
| {{{1}}} |
|||
-->}} <span class="mobileonly">follows<br/></span>'''</span><!-- |
|||
| {{#var: base page}}/doc |
|||
- |
|||
}} |
|||
}} |
|||
}}<!-- |
|||
-->{{#if: {{{heading}}} |<span style="float:right">[<!-- |
|||
-->{{#if: {{{content|}}} |
|||
-->{{#vardefine: namespace | |
|||
| <!-- |
|||
{{{demospace|{{#ifeq: {{NAMESPACE}} | {{TALKSPACE}} |
|||
Content parameter ([edit) |
|||
| {{SUBJECTSPACE}} |
|||
-->[{{fullurl:{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}} |
|||
| {{NAMESPACE}} |
|||
| action=edit |
|||
}}}}} |
|||
}} edit] |
|||
}}<!-- |
|||
Normal, when /doc exists ([view | edit | hist) |
|||
-->{{#vardefine: preload | |
|||
-->{{#ifexist: {{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}/doc}}}}}} |
|||
{{{preload|Template:Documentation/preload}}}&summary={{urlencode:Create /doc subpage for [[{{#var: base page}}]]}}&editintro=Template:Documentation/editintro-doc |
|||
| [[{{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}/doc}}}|view]]<!-- |
|||
}}<!-- |
|||
--> | <!-- |
|||
-->[{{fullurl:{{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}/doc}}}}}} |
|||
-->{{#vardefine: preload-sandbox | |
|||
| action=edit |
|||
{{{preload-sandbox|Template:Documentation/preload-sandbox}}}&summary={{urlencode:Create sandbox subpage for experimenting on template [[{{#var: base page}}]]}} |
|||
}} edit]<!-- |
|||
}}<!-- |
|||
--> | [{{fullurl:{{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}/doc}}}}}} |
|||
| action=history |
|||
-->{{#vardefine: sandbox | |
|||
}} history] |
|||
{{#if: {{{page|}}} |
|||
| <!-- |
|||
| {{{page}}}/sandbox |
|||
- No documentation ([create) |
|||
| {{{sandbox|{{#var: base page}}/sandbox}}} |
|||
--> [{{fullurl:{{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}/doc}}}}}} |
|||
}} |
|||
| action=edit&preload=Template:Documentation/preload&summary={{urlencode:Create /doc subpage for [[{{{page|{{FULLPAGENAMEE}}}}}]]}}&editintro=Template:Documentation/editintro-doc |
|||
}}<!-- |
|||
}} create] |
|||
}}<!-- End ifexist --> |
|||
-->{{#vardefine: page text | |
|||
}}<!-- End if content--><!-- |
|||
{{#switch: {{#var: namespace}} |
|||
--> | [{{fullurl:{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}|action=purge}} purge]<!-- |
|||
| {{ns:Template}} = template |
|||
-->]</span>|}}<!-- |
|||
| {{ns:Module}} = module |
|||
--></div><!-- |
|||
| #default = page |
|||
}} |
|||
}}<!-- |
|||
-->{{#vardefine: doc image | |
|||
{{#ifeq: {{{heading|a}}} | <!-- null --> |
|||
| <!-- heading is specified but empty, don't show image --> |
|||
| [[File:{{#if: {{{content|}}} |
|||
| Documentation_icon |
|||
| {{#ifexist: {{#var: doc page}} |
|||
| Documentation_icon |
|||
| No Documentation_icon |
|||
}} |
|||
}}.svg|70px|link=|alt=|class=nomobile]] |
|||
}} |
|||
}}<!-- |
|||
- |
- |
||
- Sandbox header |
|||
- Main documentation |
|||
- |
- |
||
-->{{#ifeq: {{SUBPAGENAMEE}} | sandbox |
|||
--><div style="padding: 1em; padding-bottom: 0; margin: 0;"> |
|||
| <div class="article-table documentation" |
|||
<!-- |
|||
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}}]]. <!-- |
|||
--></div> |
|||
}}<!-- |
|||
--><div class="template-documentation" style="clear:both; border:1px solid #5556; margin:1em"><!-- |
|||
- |
- |
||
- Documentation Header |
|||
- Does this: |
|||
- - Check if (1 => page/doc => ../doc => page_name/doc) exists |
|||
- - Yes: Transclude (1 => page/doc => ../doc => page_name/doc) |
|||
- - No: Error text |
|||
- |
- |
||
--><div class="article-table documentation" style="padding:1em; margin:0; border-bottom:1px solid #5556"><!-- |
|||
-->{{Tocright}}<!-- |
|||
--><span style="font-size:1.5em">{{#var: doc image }}'''{{{heading|{{ucfirst: {{#var: page text}} }} Documentation}}}'''</span><!-- |
|||
- The line break is important to keep headings. |
|||
--> |
|||
{{#ifexist: {{#if: {{{1|}}} |
|||
| {{{1|}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page|}}} |
|||
| {{#ifeq: {{SUBPAGENAME}} | sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}} |
|||
}}/doc |
|||
}} |
|||
| {{<!-- |
|||
-->{{#if: {{{1|}}} |
|||
| {{{1|}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page|}}} |
|||
| {{#ifeq: {{SUBPAGENAME}} | sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAME}} |
|||
| {{FULLPAGENAME}} |
|||
}} |
|||
}}/doc |
|||
}}<!-- |
|||
-->}} |
|||
| {{#if: {{{content|}}} |
|||
| |
|||
| <strong class="error">This template doesn't have any documentation yet!</strong> Help out by <!-- |
|||
-->[{{fullurl:{{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}/doc}}}}}} |
|||
| action=edit&preload=Template:Documentation/preload&summary=<!-- |
|||
-->{{urlencode:Create /doc subpage for [[{{{page|{{FULLPAGENAMEE}}}}}]]}}<!-- |
|||
-->&editintro=Template:Documentation/editintro-doc |
|||
}} creating it]. {{#if: {{{nocat|}}}||[[Category:Templates without documentation]] }} |
|||
}} |
|||
}} |
|||
<!-- |
|||
- Content moved outside & below to keep wikitables and allow simultanious content and /doc page transcludion |
|||
--> |
|||
{{{content|}}} |
|||
<!-- |
|||
- The line break is important to keep headings. |
|||
--><!-- |
|||
- |
- |
||
- |
- Documentation page tools |
||
- |
- |
||
--><span style="float: right">[{{#if: {{{content|}}} |
|||
--></div><!-- |
|||
| <!---->[[Special:EditPage/{{#var: current page}}|edit]] | [[Special:Purge/{{#var: current page}}|purge]] |
|||
--> |
|||
{{# |
| {{#ifexist: {{#var: doc page}} |
||
| |
| <!-- |
||
-->[[{{#var: doc page}}|view]] | [[Special:EditPage/{{#var: doc page}}|edit]] | [[Special:PageHistory/{{#var: doc page}}|history]] | [[Special:Purge/{{#var: current page}}|purge]] |
|||
| <div class="article-table" style="clear:both; padding:.5em; margin:0; border-top:1px solid #5556; font-style:italic"> |
|||
| <!-- |
|||
{{#if: {{{footer|}}} | {{{footer}}} | |
|||
-->[{{fullurl:{{FULLPAGENAMEE:{{#var: doc page}}}}|action=edit&preload={{#var: preload}} }} create] | [[Special:Purge/{{#var: current page}}|purge]] |
|||
<!-- |
|||
- Documentation transclusion text |
|||
-->{{#if: {{{content|}}} |
|||
| <!-- Empty; we don't know where the documentation is. --> |
|||
| {{#ifexist: {{{1|{{{page|{{FULLPAGENAMEE}}/doc}}}}}} |
|||
| The above [[w:Help:Template documentation|documentation]] is [[mw:Help:Transclusion|transcluded]] from <!-- |
|||
-->[[{{{1|{{{page|{{FULLPAGENAME}}}}}/doc}}}]].<!-- |
|||
--> <small>([{{fullurl:{{{1|{{{page|{{FULLPAGENAMEE}}}}}/doc}}} |
|||
| action=edit |
|||
}} edit]<!-- |
|||
--> | [{{fullurl:{{{1|{{{page|{{FULLPAGENAMEE}}}}}/doc}}} |
|||
| action=history |
|||
}} history])</small> <br/> |
|||
| {{#ifexist: {{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}/doc}} |
|||
| This is the sandbox of [[{{{page|{{NAMESPACE}}:{{BASEPAGENAME}}}}}]]; [[w:Help:Template documentation|documentation]] is [[mw:Help:Transclusion|transcluded]] from [[{{{page|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/doc]].<!-- |
|||
--> <small>([{{fullurl:{{{page|{{NAMESPACE}}:{{BASEPAGENAMEE}}}}}/doc |
|||
| action=edit |
|||
}} edit]<!-- |
|||
--> | [{{fullurl:{{{page|{{NAMESPACE}}:{{BASEPAGENAMEE}}}}}/doc |
|||
| action=history |
|||
}} history])</small> <br/> |
|||
| {{#ifeq: {{NAMESPACE}} | {{ns:Module}} |
|||
| You might want to <!-- |
|||
-->[{{fullurl:<!-- |
|||
-->{{{1|{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}/doc}}}}}}<!-- |
|||
- |
|||
-->| action=edit&preload=Template:Documentation/preload-module-doc&summary=<!-- |
|||
-->{{urlencode:Create /doc subpage for [[{{{page|{{FULLPAGENAMEE}}}}}]]}}<!-- |
|||
-->&editintro=Template:Documentation/editintro-doc |
|||
}} create documentation] for this [[w:help:lua|Scribunto module]]. |
|||
| |
|||
}} |
|||
}} |
|||
}} |
}} |
||
}}<!-- |
}}]</span><!-- |
||
--></div><!-- |
|||
- |
- |
||
- Documentation blurb |
|||
- Sandbox |
|||
- |
- |
||
--><div style="padding:1em; padding-bottom:0; margin:0"> |
|||
-->Editors can experiment in this {{#switch: {{NAMESPACE}}|{{ns:Template}} = template|{{ns:Module}} = module |#default = page}}'s <!-- |
|||
--> {{#ifexist: {{#if: {{{sandbox|}}} | {{{sandbox}}} |
|||
{{#ifeq: {{{content|a}}} | {{{content}}} | <!-- do nothing --> |
|||
| {{#if: {{{page|}}} |
|||
| {{#ifexist: {{#var: doc page}} |
|||
| {{<!---->{{#var:doc page}}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| The [[w:Help:Template documentation|documentation]] for this {{#var: page text}} does not exist. Create it at [{{fullurl:{{FULLPAGENAMEE:{{#var: doc page}}}}|action=edit&preload={{#var: preload}} }} {{#var: doc page}}]. |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox--> |
|||
}}/sandbox<!-- end if page --> |
|||
}}<!--End if sandbox --> |
|||
<!-- If sandbox exists --> |
|||
| [[{{#if: {{{sandbox|}}} | {{{sandbox}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox--> |
|||
}}/sandbox<!-- end if page --> |
|||
}}<!--End if sandbox -->|sandbox]] <!-- |
|||
--><small>([{{fullurl:<!-- |
|||
-->{{#if: {{{sandbox|}}} | {{{sandbox}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox--> |
|||
}}/sandbox<!-- end if page --> |
|||
}}<!--End if sandbox --> |action=edit}}<!-- end fullurl--> edit] | <!-- |
|||
-->[{{fullurl: Special:ComparePages<!-- |
|||
- First page |
|||
-->|page1={{#if: {{{page|}}} |
|||
| {{{page}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox--> |
|||
}}<!-- end if page --><!-- |
|||
- Second page |
|||
-->&page2={{#if: {{{sandbox|}}} | {{{sandbox}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox--> |
|||
}}/sandbox<!-- end if page --> |
|||
}}<!--End if sandbox -->}}<!-- end fullurl--> diff])</small> |
|||
| sandbox <small>(<!-- |
|||
-->[{{fullurl: {{#if: {{{sandbox|}}} | {{{sandbox}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox --> |
|||
}}/sandbox<!-- end if page --> |
|||
}}<!--End if sandbox -->|action=edit&preload=Template:Documentation/preload-sandbox&summary=<!-- |
|||
-->{{urlencode:Create sandbox version of <!-- |
|||
-->[[{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}} }}}]] |
|||
}}<!-- end url encode --> |
|||
}}<!-- end fullurl --> create] | [{{fullurl: {{#if: {{{sandbox|}}} | {{{sandbox}}} |
|||
| {{#if: {{{page|}}} |
|||
| {{{page}}} |
|||
| {{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}<!-- end ifeq subpagename = sandbox --> |
|||
}}/sandbox<!-- end if page --> |
|||
}}<!--End if sandbox --> |
|||
|action=edit&preload=<!-- |
|||
-->{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}}}}<!-- |
|||
-->&summary=<!-- |
|||
-->{{urlencode:Create sandbox version of <!-- |
|||
-->[[{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox |
|||
| {{NAMESPACE}}:{{BASEPAGENAMEE}} |
|||
| {{FULLPAGENAMEE}} |
|||
}}}}}]]<!-- |
|||
-->}}<!-- end url encode --><!-- |
|||
-->}}<!-- end fullurl --> mirror])</small> |
|||
}}<!-- |
}}<!-- |
||
- |
|||
-->{{{content|}}} |
|||
</div><!-- |
|||
- |
- |
||
- End blurb |
|||
- Category / Subpages text |
|||
- |
- |
||
-->{{#if: {{{ |
-->{{#if: {{{nofooter|}}} | | |
||
<div class="article-table documentation" style="clear:both; padding:.5em; margin:0; border-top:1px solid #5556"><!-- |
|||
| <!-- No text; we don't know where to put the category (in the {1}? inline?)--> |
|||
- |
|||
- The above [documentation] is … |
|||
- |
|||
-->{{#if: {{{content|}}} |
|||
| <!-- do not show --> |
|||
| {{#ifexist: {{#var: doc page}} |
|||
| {{#ifeq: {{SUBPAGENAME}} | sandbox |
|||
| This is the sandbox subpage of [[{{#var: base page}}]]; |
|||
| The above |
|||
}} [[w:Help:Template documentation|documentation]] is [[mw:Help:Transclusion|transcluded]] from [[{{#var: doc page}}]]. <small>([[Special:EditPage/{{#var: doc page}}|edit]] | [[Special:PageHistory/{{#var: doc page}}|history]])</small><br/> |
|||
| {{#ifeq: {{#var: namespace}} | {{ns:Module}} |
|||
| {{#ifexist: {{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}/doc |
|||
| You might want to [{{fullurl:{{FULLPAGENAMEE:{{#var: doc page}}}}|action=edit&preload={{#var: preload}} }} create documentation] for this [[w:Help:Lua|Scribuntu module]]. <br/> |
|||
| Add [[w:Help:Category|categories]] and [[w:Help:Interwiki link|interwikis]] to the <!-- |
|||
| [{{fullurl:{{FULLPAGENAMEE:{{#var: doc page}}}}|action=edit&preload={{#var: preload}} }} Create documentation] for this template. <br/> |
|||
-->[[{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}/doc|/doc]]<!-- |
|||
}} |
|||
| |
|||
}} |
}} |
||
}}<!-- |
|||
}} [[Special:PrefixIndex/{{{page|{{#ifeq: {{SUBPAGENAME}}|sandbox|{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{FULLPAGENAMEE}}}}}}}|Subpages of {{#ifeq: {{SUBPAGENAME}} | sandbox | the base | this }} {{#switch: {{NAMESPACE}}|{{ns:Module}} = module |{{ns:Template}} = template |#default = page }}]].<!-- |
|||
- |
|||
-->}}<!-- end if footer |
|||
- Sandboxes. |
|||
--></div>}} |
|||
- |
|||
- 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: |
|||
end if footer = none --></div> |
|||
< |
|||
Editors can experiment in the page's [{{fullurl: {{#var: sandbox}}}} sandbox] page. |
|||
> |
|||
- |
|||
--><!-- |
|||
--><!-- CHANGE START --><!-- |
|||
-->Editors can experiment in this {{#var: page text}}'s <!-- |
|||
- |
|||
-->{{#ifexist: {{#var: sandbox}} |
|||
| [[{{#var: sandbox}}|sandbox]] <!-- |
|||
--><small>(<!-- |
|||
-->[[Special:EditPage/{{#var: sandbox}}|edit]] | <!-- |
|||
-->[{{fullurl: Special:ComparePages |
|||
| page1={{FULLPAGENAMEE:{{#var: base page}}}}&page2={{FULLPAGENAMEE:{{#var: current page}}}} |
|||
}} diff]<!-- |
|||
-->)</small> |
|||
| sandbox <small>(<!-- |
|||
-->[{{fullurl: {{FULLPAGENAMEE:{{#var: sandbox}}}} |
|||
| action=edit&preload={{#var: preload-sandbox}} |
|||
}} create] | [{{fullurl: {{FULLPAGENAMEE:{{#var: sandbox}}}} |
|||
| action=edit&preload={{FULLPAGENAMEE:{{#var: base page}}}} |
|||
}} mirror]<!-- |
|||
-->)</small> |
|||
}}<!-- |
|||
--> page.<br/><!-- |
|||
--><!-- CHANGE END --><!-- |
|||
- |
|||
- Category addition text & subpages text. |
|||
- |
|||
-->{{#if: {{{content|{{{1|}}}}}} |
|||
| <!-- Do NOT show cat text *if* documentation is inline or transcluded from a different page. --> |
|||
| {{#ifexist: {{#var: doc page}} |
|||
| Add [[w:Help:categories|categories]] and [[w:Help:interwiki links|interwikis]] to the [[{{#var: doc page}}|/doc]] subpage. |
|||
}} |
|||
}}<!-- |
|||
- |
|||
-->[[Special:PrefixIndex/{{#var: current page}}|Subpages of this {{#var: page text}}]]. |
|||
</div> |
|||
}} |
|||
</div> |
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}}]].