Modèle:Cadre/Entête : Différence entre versions

De Wiki @ Brest

 
(43 révisions intermédiaires par le même utilisateur non affichées)
Ligne 11 : Ligne 11 :
 
  |projet=Projet
 
  |projet=Projet
 
  |category=Catégorie
 
  |category=Catégorie
 +
|attribut=Attribut
 +
|private=Private
 
}} : </font> <br/>
 
}} : </font> <br/>
 
<span style="font-size:200%;line-height:1em; margin-left:1em; ">
 
<span style="font-size:200%;line-height:1em; margin-left:1em; ">
 
{{ #switch: {{{type}}}
 
{{ #switch: {{{type}}}
  |portail=[[Portail:{{PAGENAME}}|{{{titre}}}]]
+
  |portail={{#if: {{{theme|}}}
  |projet=[[Projet:{{PAGENAME}}|{{{titre}}}]]
+
    | [[Portail:{{{theme}}}|{{{titre}}}]]
  |category=[[:Category:{{PAGENAME}}|{{{titre}}}]]
+
    | [[Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 +
}}
 +
  |projet={{#if: {{{theme|}}}
 +
    | [[Projet:{{{theme}}}|{{{titre}}}]]
 +
    | [[Projet:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 +
}}
 +
  |category={{#if: {{{theme|}}}
 +
    | [[:Category:{{{theme}}}|{{{titre}}}]]
 +
    | [[:Category:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 +
}}
 +
|attribut={{#if: {{{theme|}}}
 +
    | [[:Attribut:{{{theme}}}|{{{titre}}}]]
 +
    | [[:Attribut:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 +
}}
 +
|private={{#if: {{{theme|}}}
 +
    | [[:Private:{{{theme}}}|{{{titre}}}]]
 +
    | [[:Private:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 +
}}
 
}}
 
}}
 
</span><br/>
 
</span><br/>
 
| valign=bottom align=right |                                                                        <!-- -------------------------- LINE 3 ------------------------------ -->
 
| valign=bottom align=right |                                                                        <!-- -------------------------- LINE 3 ------------------------------ -->
<small>'''Il y a actuellement {{Nombre d'articles | titre={{PAGENAME}} }} liés à ce sujet.'''</small>
+
{{#if: {{{banner|}}} | [[File:{{{banner}}}|400px|right]]<div style="clear:both"></div> }}{{#if: {{{cat|}}}
 +
    | <small>'''Il y a actuellement {{Nombre d'articles | titre={{{cat}}} }} liés à ce sujet.'''</small>
 +
    | {{#if: {{{theme|}}}
 +
        | <small>'''Il y a actuellement {{Nombre d'articles | titre={{{theme}}} }} liés à ce sujet.'''</small>
 +
        | <small>'''Il y a actuellement {{Nombre d'articles | titre={{#titleparts:{{BASEPAGENAME}}|1|1 }} }} liés à ce sujet.'''</small>
 +
        }}
 +
}}
 +
 
 
|}
 
|}
 
<!-- ================================== TABLEAU ONGLET ================================== -->
 
<!-- ================================== TABLEAU ONGLET ================================== -->
 
{| cellpadding="0" cellspacing="0" style="width:100%; margin:0px;  padding:3px 4px; background:none;"
 
{| cellpadding="0" cellspacing="0" style="width:100%; margin:0px;  padding:3px 4px; background:none;"
| {{Onglet|{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{couleur bordure|aaa}}}|{{{couleur fond|fff}}}|{{{discussion|Café}}}}}
+
| {{#if: {{{theme|}}}
 +
    | {{Onglet|{{#titleparts:{{{theme}}}|1|1 }}|{{{couleur bordure|aaa}}}|{{{couleur fond|fff}}}|{{{discussion|Café}}}}}
 +
    | {{Onglet|{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{couleur bordure|aaa}}}|{{{couleur fond|fff}}}|{{{discussion|Café}}}}}
 +
}}
 
|}
 
|}
 
<!-- ================================== TABLEAU BROWSEBAR ================================== -->
 
<!-- ================================== TABLEAU BROWSEBAR ================================== -->
 
{|  style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"
 
{|  style="width:100%; margin-bottom:2px; vertical-align:top; font-size:95%; background:transparent;"
| {{#ifexist: Portail:{{BASEPAGENAME}}/Browsebar | {{Portail:{{BASEPAGENAME}}/Browsebar}} |  }}
+
| {{#if: {{{theme|}}}
 +
    | {{#ifexist: Portail:{{{theme}}}/Browsebar | {{Portail:{{{theme}}}/Browsebar}} |  }}
 +
    | {{#ifexist: Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}/Browsebar | {{Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}/Browsebar}} |  }}
 +
}}
 
|}
 
|}
 
<!-- ================================== LINKING TO FORM ================================== -->
 
<!-- ================================== LINKING TO FORM ================================== -->
Ligne 34 : Ligne 66 :
 
| <div style="text-align: center; font-size: 102%;">
 
| <div style="text-align: center; font-size: 102%;">
 
{{ #switch: {{{type}}}
 
{{ #switch: {{{type}}}
  |category=&nbsp;
+
  |category=
 
  |#default=
 
  |#default=
{{#ifexist: Portail:{{BASEPAGENAME}}
+
{{#ifexist: Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}
 
  |
 
  |
  | {{#formlink:form=Portail
+
  | {{#if: {{{theme|}}}
      | link text=portail
+
    |
      | target=Portail:{{BASEPAGENAME}}
+
    | {{#formlink:form=Portail
      | query string=Wrapper/Intro[titre]={{#ask: [[Category:{{PAGENAME}}]][[Category:Projet]]
+
          | link text=portail
 +
          | target=Portail:{{BASEPAGENAME}}
 +
          | query string=Wrapper/Intro[titre]={{#ask: [[Category:{{PAGENAME}}]][[Category:Projet]]
 
                             | ?Portail has title=
 
                             | ?Portail has title=
 
                             | mainlabel=-
 
                             | mainlabel=-
Ligne 51 : Ligne 85 :
 
                             | mainlabel=-
 
                             | mainlabel=-
 
                           }}
 
                           }}
   }}
+
      }}
}} {{#ifexist: Projet:{{BASEPAGENAME}}
+
   }}
 +
}} {{#ifexist: Projet:{{#titleparts:{{BASEPAGENAME}}|1|1 }}
 
  |
 
  |
  | {{#formlink:form=Project
+
  | {{#if: {{{theme|}}}
      | link text=projet
+
    |
      | target=Projet:{{BASEPAGENAME}}
+
    | {{#formlink:form=Project
      | query string=Wrapper/Intro[titre]={{#ask: [[Category:{{PAGENAME}}]][[Category:Portail]]
+
          | link text=projet
 +
          | target=Projet:{{BASEPAGENAME}}
 +
          | query string=Wrapper/Intro[titre]={{#ask: [[Category:{{PAGENAME}}]][[Category:Portail]]
 
                             | ?Portail has title=
 
                             | ?Portail has title=
 
                             | mainlabel=-
 
                             | mainlabel=-
Ligne 67 : Ligne 104 :
 
                             | mainlabel=-
 
                             | mainlabel=-
 
                           }}
 
                           }}
   }}
+
      }}
}} {{#ifexist: Category:{{BASEPAGENAME}}
+
   }}
 +
}} {{#ifexist: Category:{{#titleparts:{{BASEPAGENAME}}|1|1 }}
 
  |
 
  |
  | {{#formlink:form=Category
+
  | {{#if: {{{theme|}}}
      | link text=catégorie
+
    |
      | target=Category:{{BASEPAGENAME}}
+
    | {{#formlink:form=Category
      | query string=Wrapper/Intro[titre]={{#if: {{#show: Portail:{{PAGENAME}} | ?Portail has title= | mainlabel=-}}
+
          | link text=catégorie
 +
          | target=Category:{{BASEPAGENAME}}
 +
          | query string=Wrapper/Intro[titre]={{#if: {{#show: Portail:{{PAGENAME}} | ?Portail has title= | mainlabel=-}}
 
                   | {{#show: Portail:{{PAGENAME}}| ?Portail has title= | mainlabel=-}}
 
                   | {{#show: Portail:{{PAGENAME}}| ?Portail has title= | mainlabel=-}}
 
                   | {{#show: Projet:{{PAGENAME}}| ?Portail has title= | mainlabel=-}}
 
                   | {{#show: Projet:{{PAGENAME}}| ?Portail has title= | mainlabel=-}}
Ligne 83 : Ligne 123 :
 
                   | {{#show: Projet:{{PAGENAME}}| ?Portail has logo size= | mainlabel=-}}
 
                   | {{#show: Projet:{{PAGENAME}}| ?Portail has logo size= | mainlabel=-}}
 
                 }}
 
                 }}
 +
      }}
 
   }}
 
   }}
 
}}
 
}}
Ligne 89 : Ligne 130 :
 
|}
 
|}
 
<!-- ================================== INSCRIPTION SEMANTIC ================================== -->
 
<!-- ================================== INSCRIPTION SEMANTIC ================================== -->
[[portail_has_title::{{{titre}}}| ]] [[portail_has_logo::{{{logo}}}| ]] [[portail_has_logo_size::{{{logo_size}}}| ]]
+
{{#ifeq: {{NAMESPACE}} | Projet | [[project_has_name::{{PAGENAME}}| ]]}} [[portail_has_title::{{{titre}}}| ]] [[portail_has_logo::{{{logo}}}| ]] [[portail_has_logo_size::{{{logo_size}}}| ]]
 
<!-- ================================== INSCRIPTION SEMANTIC ================================== -->
 
<!-- ================================== INSCRIPTION SEMANTIC ================================== -->
</includeonly><noinclude>{{TemplateDoc}}[[Catégorie:Portail/Type_2]][[Category:Template]]</noinclude>
+
</includeonly><noinclude>{{TemplateDoc}}[[Catégorie:Portail/Type_2]][[Category:Template/Portail]]</noinclude>

Version actuelle en date du 11 mars 2015 à 15:06

[create]

Template-info.svg Documentation des modèles

Pour utiliser ce modèle, mettez {{Modèle:Cadre/Entête}} dans la page où vous voulez l'utiliser.

Ce modèle n'a pas de documentation, s'il vous plaît ajoutez en