XBMC will be renamed to Kodi for v14. Read here for more details

Template:Documentation

From Kodi
(Difference between revisions)
Jump to: navigation, search
(Reflect change in Common.css)
(Adding automatic adding of {{pp-template}} to protected templates. See talk page.)
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="template-documentation"><!--
+
<!--Automatically add {{pp-template}} to protected templates-->
 +
{{template other
 +
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
 +
  | {{pp-template}}
 +
  | {{#if: {{PROTECTIONLEVEL:edit}}
 +
    | {{pp-template}}
 +
    | <!--Not protected, or only semi-move-protected-->
 +
    }}
 +
  }}
 +
}}<!--
 +
  Start of green doc box.
 +
--><div class="template-documentation"><!--
 +
 
 +
These are the literal class definitions in MediaWiki:Common.css:
  
These are the literal class definitions in common.css:
 
 
 
/* For template documentation */
 
/* For template documentation */
 
.template-documentation {
 
.template-documentation {
Line 9: Line 20:
 
     border: 1px solid #aaa;  
 
     border: 1px solid #aaa;  
 
     background-color: #ecfcf4;  
 
     background-color: #ecfcf4;  
     padding: em;
+
     padding: 1em;
 
}
 
}
  
Line 19: Line 30:
 
     |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} create]]
 
     |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/preload}} create]]
 
   }}</span>
 
   }}</span>
   }} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px|link=]] Template documentation|Documentation}}}}</span></div>
+
   }} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Template documentation|Documentation}}}}</span></div>
 
  }}<!--
 
  }}<!--
  
Line 43: Line 54:
 
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
 
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
 
<div style="clear: both;"></div>
 
<div style="clear: both;"></div>
</div><noinclude>
+
</div><!--End of green doc box--><noinclude>
  
{{pp-template|small=yes}}
 
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 01:51, 3 January 2010

Template:Template other
[[{{fullurl:Template:Documentation/docname|action=edit&preload=Template:Documentation/preload}} create]] Template-info.svg Template documentation


Personal tools
Namespaces

Variants
Actions
Navigation
Wiki help
Toolbox