De Wiki @ Brest
(59 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:{{ | + | |portail={{#if: {{{theme|}}} |
− | |projet=[[Projet:{{ | + | | [[Portail:{{{theme}}}|{{{titre}}}]] |
− | |category=[[:Category:{{ | + | | [[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={{ | + | {{#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 ================================== --> | ||
{| 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%;"> | ||
− | {{#ifexist: Portail:{{BASEPAGENAME}} | + | {{ #switch: {{{type}}} |
+ | |category= | ||
+ | |#default= | ||
+ | {{#ifexist: Portail:{{#titleparts:{{BASEPAGENAME}}|1|1 }} | ||
| | | | ||
− | | {{#formlink:form=Portail | + | | {{#if: {{{theme|}}} |
− | + | | | |
− | + | | {{#formlink:form=Portail | |
− | + | | link text=portail | |
− | }} | + | | target=Portail:{{BASEPAGENAME}} |
− | }}{{#ifexist: Projet:{{BASEPAGENAME}} | | {{#formlink:form=Project|link text=projet|target=Projet:{{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> | </div> | ||
|} | |} | ||
<!-- ================================== INSCRIPTION SEMANTIC ================================== --> | <!-- ================================== INSCRIPTION SEMANTIC ================================== --> | ||
− | [[portail_has_title::{{{titre}}}| ]] | + | {{#ifeq: {{NAMESPACE}} | Projet | [[project_has_name::{{PAGENAME}}| ]]}} [[portail_has_title::{{{titre}}}| ]] [[portail_has_logo::{{{logo}}}| ]] [[portail_has_logo_size::{{{logo_size}}}| ]] |
− | </includeonly><noinclude>{{TemplateDoc}}[[Catégorie:Portail/Type_2]][[Category:Template]]</noinclude> | + | <!-- ================================== 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] 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 |