Modèle:Documentation/start box : Différence entre versions

De The Crowdsourced Resource-Based Economy Knowledgebase
Aller à : Navigation, rechercher
m (1 version)
(let's see about reusing this for modules at some point...)
Ligne 8 : Ligne 8 :
 
   #if: {{{content|}}}
 
   #if: {{{content|}}}
 
   |  
 
   |  
   | <!--Add the [edit][purge] or [create] links-->
+
   | <!--Add the [view][edit][history][purge] or [create] links-->
 
     <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]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}]  
+
     | &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|view]]&#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}]  
 
     | <!--/doc doesn't exist-->
 
     | <!--/doc doesn't exist-->
 
       [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
 
       [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
Ligne 32 : Ligne 32 :
 
     {{#switch: {{SUBJECTSPACE}}  
 
     {{#switch: {{SUBJECTSPACE}}  
 
     | {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation
 
     | {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation
 +
    | {{ns:Module}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Module documentation
 
     | {{ns:File}} = Summary
 
     | {{ns:File}} = Summary
 
     | #default = Documentation
 
     | #default = Documentation
Ligne 39 : Ligne 40 :
 
     {{{heading|}}}
 
     {{{heading|}}}
 
   }}</span></div>
 
   }}</span></div>
}}
+
}}<noinclude><!-- close the div --></div>
 +
 
 +
{{pp-template}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Version du 19 mars 2013 à 08:13

[view] [edit] [history] [purge] 50px Template documentation
Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Boîte à outils
Partager