Modèle:Documentation

De DigiWiki.

(Différences entre les versions)
(Page créée avec « {{#switch:{{{small|}}} | left = {{mbox/core | small = left | type = {{{type|}}} | image = {{#if:{{{smallimage|}}} | {{{smallimage}}}… »)
 
Ligne 1 : Ligne 1 :
-
{{#switch:{{{small|}}}
+
{{documentation/core2
-
| left =
+
| heading = {{{heading|¬}}}   <!--Empty but defined means no header-->
-
  {{mbox/core
+
| heading-style = {{{heading-style|}}}
-
  | small      = left
+
| content = {{{content|}}}
-
  | type      = {{{type|}}}
+
| link box = {{{link box|}}}   <!--So "link box=off" works-->
-
  | image      = {{#if:{{{smallimage|}}}
+
 
-
                | {{{smallimage}}}
+
<!--Some namespaces must have the /doc, /sandbox and /testcases
-
                | {{{image|}}}
+
    in talk space-->
-
                }}
+
| docspace =
-
  | imageright = {{#if:{{{smallimageright|}}}
+
  {{#switch: {{SUBJECTSPACE}}
-
                | {{{smallimageright}}}
+
  | {{ns:0}}
-
                | {{{imageright|}}}
+
   | {{ns:File}}
-
                }}
+
   | {{ns:MediaWiki}}
-
   | style      = {{{style|}}}
+
   | {{ns:Category}} = {{TALKSPACE}}
-
   | textstyle  = {{{textstyle|}}}
+
  | #default = {{SUBJECTSPACE}}
-
   | text      = {{#if:{{{smalltext|}}}
+
-
                | {{{smalltext}}}  
+
-
                | {{{text}}}
+
-
                }}
+
   }}
   }}
-
| #default =
+
 
-
  {{mbox/core
+
| 1 = {{{1|}}}   <!--Other docname, if fed-->
-
  | type      = {{{type|}}}
+
 
-
  | image      = {{{image|}}}
+
<!--The namespace is added in /core2-->
-
   | imageright = {{{imageright|}}}
+
| template page =  
-
   | style      = {{{style|}}}
+
   {{#switch: {{SUBPAGENAME}}
-
   | textstyle  = {{{textstyle|}}}
+
   | sandbox
-
   | text      = {{{text}}}
+
   | testcases = {{BASEPAGENAME}}
 +
   | #default = {{PAGENAME}}
   }}
   }}
-
}}<noinclude>
+
 
-
{{Documentation}}
+
}}<!--End of green doc box--><noinclude>
 +
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Version actuelle en date du 24 janvier 2012 à 21:31

[create] Template documentation
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.


Outils personnels
  • Cette page a été consultée 322 fois.
donate
Google Ads