Difference between revisions of "Template:Documentation/core"

From stoney cloud
Jump to: navigation, search
Line 1: Line 1:
 
<!--
 
<!--
 
   Start of green doc box
 
   Start of green doc box
--><div id="template-documentation" class="template-documentation iezoomfix"><!--
+
--><div id="template-documentation" class="gw-box" style="border: 1px solid silver; background-color: #f3f3f3;"><!--
 
   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|}}}
 
   |  
 
   |  
Line 11: Line 11:
 
     <span class="editsection plainlinks" id="doc_editlinks">{{
 
     <span class="editsection 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 19: Line 19:
 
         }} }} create]]
 
         }} }} create]]
 
     }}</span>
 
     }}</span>
   }} <span style="{{#if: {{{heading-style|}}}
+
   }} <span class="gw-box-title" style="background-color: silver; color: black;">{{#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 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|}}}
+
<span class="gw-box-content">{{#if: {{{content|}}}
 
| {{{content|}}}
 
| {{{content|}}}
 
| {{#if: {{{doc exist|yes}}}
 
| {{#if: {{{doc exist|yes}}}
 
   | {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
 
   | {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
 
   }}
 
   }}
}}
+
}}</span>
 
<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--><!--

Revision as of 12:25, 27 September 2011

The above documentation is transcluded from Template:Documentation/core/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.