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

De Wiki @ Brest

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