Différences entre versions de « Modèle:Documentation »

De Didaquest
Aller à la navigationAller à la recherche
(Page créée avec « <includeonly>{{#invoke:Documentation | documentation | contenu sous-page = {{ {{#invoke:Documentation | nomDocumentation| {{{1|}}} }} }} }}</includeonly><noinclude> {{do... »)
 
 
Ligne 1 : Ligne 1 :
<includeonly>{{#invoke:Documentation | documentation
+
<includeonly><div style="clear: both; margin-top: 1em; padding: 1em; border: 1px solid #ADF; background-color: #EEF5FF;" class="template-documentation"><!--
| contenu sous-page = {{ {{#invoke:Documentation | nomDocumentation| {{{1|}}} }} }}  
+
 
}}</includeonly><noinclude>
+
** ENTÊTE STANDARD AVEC ICÔNE **
{{documentation}}
+
-->{{#ifeq:{{{heading|μ}}}|<!-- heading DÉFINI MAIS VIDE -->|<!--
</noinclude>
+
  ** SUPPRIME L’ENTÊTE AVANT LES LIENS, content OU SOUS-PAGE DE DOCUMENTATION **
 +
-->|<!--
 +
  --><div style="margin-bottom: 1ex; padding-bottom: 3px; border-bottom: 1px solid #ADF;"><!--
 +
    --><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}}|<!--
 +
          -->[[Fichier:Template-info.svg|50px]] Documentation du modèle<!--
 +
        -->|<!--
 +
          -->Documentation<!--
 +
        -->}}<!--
 +
      -->}}<!--
 +
    --></span><!--
 +
  --></div><!--
 +
-->}}<!--
 +
 
 +
** LIENS VERS SOUS-PAGES DE DOCUMENTATION, BAC À SABLE ET TESTS **
 +
--><div id="template_doc_page_transcluded" class="dablink"><!--
 +
 
 +
  -->{{#ifeq:{{{1|{{Documentation/docname}}}}}|{{FULLPAGENAME}}|<!--
 +
    ** LIEN VERS LA PAGE DU MODÈLE, AFFICHÉ SUR UNE SOUS-PAGE DE DOCUMENTATION**
 +
    --><nowiki />
 +
: ''Ceci est la page de documentation de '''[[{{NAMESPACE}}:{{BASEPAGENAME}}]]'''.'' <!--
 +
    --><small class="plainlinks" style="font-style:normal"><!--
 +
      -->[[{{fullurl:{{FULLPAGENAME}}|action=purge}} actualiser]]<!--
 +
      --> '''•''' <!--
 +
      -->{{#ifexist:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}|<!--
 +
        ** LE MODÈLE DE BASE EXISTE DÉJÀ **
 +
        -->[[{{fullurl:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}|action=edit}} modifier]]<!--
 +
      -->|<!--
 +
        ** LE MODÈLE DE BASE N’EXISTE PAS ENCORE **
 +
        -->[[{{fullurl:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}|action=edit}} créer]]<!--
 +
      -->}}<!--
 +
      --> '''•''' <!--
 +
      -->[[{{fullurl:{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}|action=history}} historique]]<!--
 +
    --></small><!--
 +
  -->|<!--
 +
    ** LIEN VERS SOUS-PAGE DE DOCUMENTATION, AFFICHÉ SUR LA PAGE DU MODÈLE ELLE-MÊME **
 +
    -->{{#ifexist:{{{1|{{Documentation/docname}}}}}|<!--
 +
      ** /Documentation EXISTE **
 +
      --><nowiki />
 +
: ''Cette [[Wikiversité:Modèles|documentation]] est [[w:Aide:Inclusion|incluse]] depuis '''[[{{{1|{{Documentation/docname}}}}}]]'''.''<!--
 +
      --><small class="plainlinks" style="font-style:normal"><!--
 +
        -->[[{{fullurl:{{FULLPAGENAME}}|action=purge}} actualiser]]<!--
 +
        --> '''•''' <!--
 +
        -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} modifier]] <!--
 +
        --> '''•''' <!--
 +
        -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} historique]]<!--
 +
      --></small><!--
 +
    -->|<!--
 +
      ** /Documentation N’EXISTE PAS ENCORE **
 +
      --><nowiki />
 +
: ''Documentation de '''[[{{NAMESPACE}}:{{BASEPAGENAME}}]]'''.''{{#if:{{{nocat|}}}||[[Catégorie:Modèles à documenter|{{PAGENAME}}]]}}<!--
 +
      --><small class="plainlinks" style="font-style:normal"><!--
 +
        -->[[{{fullurl:{{FULLPAGENAME}}|action=purge}} actualiser]]<!--
 +
        --> '''•''' <!--
 +
        -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload={{urlencode:Modèle:Documentation/preload}}}} créer]]<!--
 +
        --> '''•''' <!--
 +
        -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} historique]]<!--
 +
      --></small><!--
 +
    -->}}<!--
 +
  -->}}<!--
 +
 
 +
  -->{{#switch: {{SUBPAGENAME}}<!--
 +
    -->|bac à sable|tests<!--
 +
      --><!--=--><!-- ne pas mettre le "=" en commentaire pour
 +
      ** NE PAS AFFICHER CES LIENS SUR LES PAGES DE BAC À SABLE/TESTS **
 +
    -->|#default<!--
 +
      -->=<!--
 +
      -->{{#switch: {{SUBJECTSPACE}}<!--
 +
        -->|{{ns:template}}<!--
 +
        -->|{{ns:user}}<!--
 +
          -->=<!--
 +
          -->{{#ifexist: {{FULLPAGENAME}}/bac à sable|<!--
 +
            --><br /><!--
 +
            -->Ce modèle dispose d’un [[/bac à sable|bac à sable]] <small style="font-style: normal">([{{fullurl:{{#rel2abs:/bac à sable}}|action=edit}} modifier])</small> <!--
 +
            -->{{#ifexist: {{FULLPAGENAME}}/tests|<!--
 +
              -->et d’une page de [[/tests|tests]] <small style="font-style:normal">([{{fullurl:{{#rel2abs:/tests}}|action=edit}} modifier])</small><!--
 +
            -->}}<!--
 +
            --> permettant aux éditeurs d’expérimenter leurs modifications.<!--
 +
          -->|<!--
 +
            -->{{#ifexist: {{FULLPAGENAME}}/tests|<!--
 +
              --><br /><!--
 +
              -->Ce modèle dispose d’une page de [[/tests|tests]] <small style="font-style:normal">([{{fullurl:{{#rel2abs:/tests}}|action=edit}} modifier])</small><!--
 +
              --> permettant aux éditeurs d’expérimenter avec ce modèle ou de démontrer des anomalies.<!--
 +
            -->}}<!--
 +
          -->}}<!-- endifexist
 +
      -->}}<!-- endswitch subjectspace
 +
  -->}}<!-- endswitch subpagename
 +
--></div><!--
 +
 
 +
** AFFICHAGE DU CONTENU OU INCLUSION DE LA SOUS-PAGE DE DOCUMENTATION (SAUF SUR LA PAGE D’AIDE ELLE-MÊME) **
 +
-->{{#if:{{{contenu|{{{content|}}}}}}|<!--
 +
--><nowiki />
 +
{{{content|}}}<!--
 +
-->|<!--
 +
  -->{{#ifeq:{{{1|{{Documentation/docname}}}}}|{{FULLPAGENAME}}|<!--
 +
      ** PAS DE RÉCURSION SUR LA PAGE DOCUMENTATION ELLE-MÊME, QUI CONTIENT LE RESTE DU TEXTE APRÈS CE MODÈLE **
 +
      -->{{#if:{{{nocat|}}}||[[Catégorie:Documentations de modèles|{{PAGENAME}}]]}}|<!--
 +
    -->{{#ifexist:{{{1|{{Documentation/docname}}}}}|<!--
 +
      --><nowiki />
 +
{{{{{1|{{Documentation/docname}}}}}|
 +
  {{{2|dummy}}}={{{3|}}}|
 +
  {{{4|dummy}}}={{{5|}}}|
 +
  {{{6|dummy}}}={{{7|}}}|
 +
  {{{8|dummy}}}={{{9|}}}<!--
 +
-->}}<!--
 +
    -->}}<!--
 +
  -->}}<!--
 +
-->}}<!--
 +
 
 +
--><div style="clear: both;"></div>
 +
</div><!--
 +
 
 +
NOTE :
 +
  TOUTE LA DOCUMENTATION POUR CE MODÈLE EST INCLUSE CI-DESSUS DEPUIS SA SOUS-PAGE /Documentation
 +
  Les catégories et interwikis sont donc inscrits dans [[Modèle:Documentation/Documentation]]
 +
 
 +
{{NoRobot}}
 +
--></includeonly><noinclude>{{Documentation/Bac à sable|Modèle:Documentation/doc}}</noinclude>

Version actuelle datée du 7 mars 2018 à 19:07