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
m (1 revision imported)
 
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="template-documentation iezoomfix"><!--
--><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; border-bottom: 1px solid #aaa; margin-bottom: 1ex;">{{
| <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="editsection plainlinks" id="doc_editlinks">{{
     <span class="pull-right plainlinks" id="doc_editlinks">{{
     #if: {{{doc exist|yes}}}
     #if: {{{doc exist|yes}}}
     | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [{{purge|purge}}]
     | [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]]&nbsp;
     | <!--/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]]&nbsp;
     }}</span>
     }}</span>
   }} <span style="{{#if: {{{heading-style|}}}
   }} <h2 style="margin-top: 0;">{{#switch: {{{heading|¬}}}
  | {{{heading-style|}}}
  | {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
    | font-weight: bold; font-size: 125%
    | font-size: 150%
    }}
  }}">{{#switch: {{{heading|¬}}}
   | ¬ =   
   | ¬ =   
     <!--"heading" not defined in this or previous level-->
     <!--"heading" not defined in this or previous level-->
     {{#switch: {{SUBJECTSPACE}}  
     {{#switch: {{SUBJECTSPACE}}  
     | {{ns:Template}} = Template documentation
     | {{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|}}}
   }}</span></div>
   }}</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|yes}}}
| {{#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:
   }}
   }}


| {{fmbox
| {{Note|{{#if: {{{link box|}}}
  | id = documentation-meta-data
  | image = none
  | style = background-color: #ecfcf4;
  | textstyle = font-style: italic;
  | text =
    {{#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 [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br>
         The above documentation is transcluded from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{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}} = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]].
       | {{ns:Template}} = &#32;(See the [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|subpages of this template]].)
       | #default = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]].
       | #default = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]].
       }}
       }}
    }}{{#ifexist:{{FULLPAGENAME}}/Print
    |</br>A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at [[/Print]]. If you make a change to this template, please update the print version as well.[[Category:Templates with print versions]]
     }}
     }}
   }}
   }}
Line 120: Line 107:
       to make the surrounding if-case trigger-->
       to make the surrounding if-case trigger-->


| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
| [[Category:Pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>


{{pp-template}}
}}</includeonly><noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
[[Category:Template cores]]
</noinclude>
</noinclude>

Latest revision as of 04:12, 12 November 2021