In order to edit this wiki, you must register and verify your account.
Template:Documentation/core: Difference between revisions
From Cemu Wiki
Jump to:navigation
Jump to:search
Malkierian (talk | contribs) m (1 revision imported) |
ElijahPepe (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | <includeonly><!-- | ||
Start of green doc box | Start of green doc box | ||
--><div id="template-documentation" class=" | --><div id="template-documentation" class="well well-sm" style="background-color:#DFE7E8;"><!-- | ||
Add the heading at the top of the doc box: | Add the heading at the top of the doc box: | ||
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty--> | -->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty--> | ||
| <!--"heading=", do nothing--> | | <!--"heading=", do nothing--> | ||
| <div style="padding-bottom: 3px | | <div style="padding-bottom: 3px; margin-bottom: 1ex;">{{ | ||
#if: {{{content|}}} | #if: {{{content|}}} | ||
| | | | ||
| <!--Add the [edit][purge] or [create] links--> | | <!--Add the [edit][purge] or [create] links--> | ||
<span class=" | <span class="pull-right plainlinks" id="doc_editlinks">{{ | ||
#if: {{{doc exist|yes}}} | #if: {{{doc exist|yes}}} | ||
| [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] | | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] | ||
| <!--/doc doesn't exist--> | | <!--/doc doesn't exist--> | ||
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{ | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{ | ||
Line 17: | Line 17: | ||
| Template:Documentation/preload-filespace | | Template:Documentation/preload-filespace | ||
| Template:Documentation/preload | | Template:Documentation/preload | ||
}} }} create]] | }} }} create]] | ||
}}</span> | }}</span> | ||
}} < | }} <h2 style="margin-top: 0;">{{#switch: {{{heading|¬}}} | ||
| ¬ = | | ¬ = | ||
<!--"heading" not defined in this or previous level--> | <!--"heading" not defined in this or previous level--> | ||
{{#switch: {{SUBJECTSPACE}} | {{#switch: {{SUBJECTSPACE}} | ||
| {{ns:Template}} = | | {{ns:Template}} = Documentation | ||
| {{ns:File}} = Summary | | {{ns:File}} = Summary | ||
| #default = Documentation | | #default = Documentation | ||
Line 36: | Line 30: | ||
<!--"heading" has data or is empty but defined--> | <!--"heading" has data or is empty but defined--> | ||
{{{heading|}}} | {{{heading|}}} | ||
}}</ | }}</h2></div> | ||
}}<!-- | }}<!-- | ||
Load the /doc content: | Load the /doc content: | ||
Line 43: | Line 37: | ||
"=== Headings ===" at the start and end of docs are interpreted. | "=== Headings ===" at the start and end of docs are interpreted. | ||
--> | --> | ||
{{#if: {{{content|}}} | __NOTOC__ | ||
<div class="">{{#if: {{{content|}}} | |||
| {{{content|}}} | | {{{content|}}} | ||
| {{#if: {{{doc exist| | | {{#if: {{{doc exist|}}} | ||
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }} | | {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }} | ||
}} | }} | ||
}} | }}</div> | ||
<div style="clear: both;"></div><!--So right or left floating items don't stick out of the doc box.--> | <div style="clear: both;"></div><!--So right or left floating items don't stick out of the doc box.--> | ||
</div><!--End of green doc box--><!-- | </div><!--End of green doc box--><!-- | ||
Line 63: | Line 58: | ||
}} | }} | ||
| {{ | | {{Note|{{#if: {{{link box|}}} | ||
| {{{link box}}} <!--Use custom link box content--> | | {{{link box}}} <!--Use custom link box content--> | ||
| {{#if: {{{doc exist|yes}}} | | {{#if: {{{doc exist|yes}}} | ||
| <!--/doc exists, link to it--> | | <!--/doc exists, link to it--> | ||
The above | The above documentation is transcluded from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] | [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br /> | ||
}}<!-- | }}<!-- | ||
Add links to /sandbox and /testcases when appropriate: | Add links to /sandbox and /testcases when appropriate: | ||
Line 87: | Line 76: | ||
| [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small> | | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small> | ||
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small> | | testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small> | ||
}} pages. <br> | }} pages. <br /> | ||
}}<!-- | }}<!-- | ||
Show the cats and interwiki text, but not | Show the cats and interwiki text, but not | ||
Line 99: | Line 88: | ||
-->{{#switch: {{SUBJECTSPACE}} | -->{{#switch: {{SUBJECTSPACE}} | ||
| {{ns:File}} = <!--Don't show it--> | | {{ns:File}} = <!--Don't show it--> | ||
| {{ns:Template}} =  [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/| | | {{ns:Template}} =  (See the [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|subpages of this template]].) | ||
| #default =  [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]]. | | #default =  [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]]. | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
Line 120: | Line 107: | ||
to make the surrounding if-case trigger--> | to make the surrounding if-case trigger--> | ||
| | | [[Category:Pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
}}</includeonly><noinclude> | |||
< | [[Category:Template cores]] | ||
</noinclude> | </noinclude> |
Latest revision as of 04:12, 12 November 2021