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

De Wiki @ Brest

 
(32 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; ">
Ligne 16 : Ligne 18 :
 
  |portail={{#if: {{{theme|}}}
 
  |portail={{#if: {{{theme|}}}
 
     | [[Portail:{{{theme}}}|{{{titre}}}]]
 
     | [[Portail:{{{theme}}}|{{{titre}}}]]
     | [[Portail:{{PAGENAME}}|{{{titre}}}]]
+
     | [[Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 
}}
 
}}
 
  |projet={{#if: {{{theme|}}}
 
  |projet={{#if: {{{theme|}}}
 
     | [[Projet:{{{theme}}}|{{{titre}}}]]
 
     | [[Projet:{{{theme}}}|{{{titre}}}]]
     | [[Projet:{{PAGENAME}}|{{{titre}}}]]
+
     | [[Projet:{{#titleparts:{{BASEPAGENAME}}|1|1 }}|{{{titre}}}]]
 
}}
 
}}
 
  |category={{#if: {{{theme|}}}
 
  |category={{#if: {{{theme|}}}
 
     | [[:Category:{{{theme}}}|{{{titre}}}]]
 
     | [[:Category:{{{theme}}}|{{{titre}}}]]
     | [[:Category:{{PAGENAME}}|{{{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 ================================== -->
Ligne 42 : Ligne 59 :
 
| {{#if: {{{theme|}}}
 
| {{#if: {{{theme|}}}
 
     | {{#ifexist: Portail:{{{theme}}}/Browsebar | {{Portail:{{{theme}}}/Browsebar}} |  }}
 
     | {{#ifexist: Portail:{{{theme}}}/Browsebar | {{Portail:{{{theme}}}/Browsebar}} |  }}
     | {{#ifexist: Portail:{{BASEPAGENAME}}/Browsebar | {{Portail:{{BASEPAGENAME}}/Browsebar}} |  }}
+
     | {{#ifexist: Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}/Browsebar | {{Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }}/Browsebar}} |  }}
 
}}
 
}}
 
|}
 
|}
 
<!-- ================================== LINKING TO FORM ================================== -->
 
<!-- ================================== LINKING TO FORM ================================== -->
{{#if: {{{theme|}}}
+
{|  style="width:100%; margin:0px; vertical-align:top; background:transparent;"
    | | {|  style="width:100%; margin:0px; vertical-align:top; background:transparent;"
+
 
| <div style="text-align: center; font-size: 102%;">
 
| <div style="text-align: center; font-size: 102%;">
 
{{ #switch: {{{type}}}
 
{{ #switch: {{{type}}}
 
  |category=
 
  |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 67 : 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 83 : 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 99 : Ligne 123 :
 
                   | {{#show: Projet:{{PAGENAME}}| ?Portail has logo size= | mainlabel=-}}
 
                   | {{#show: Projet:{{PAGENAME}}| ?Portail has logo size= | mainlabel=-}}
 
                 }}
 
                 }}
 +
      }}
 
   }}
 
   }}
 
}}
 
}}
Ligne 104 : Ligne 129 :
 
</div>
 
</div>
 
|}
 
|}
}}
 
 
<!-- ================================== 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