Modèle:Cadre : Différence entre versions

De Wiki ODR
Aller à : navigation, rechercher
Ligne 10 : Ligne 10 :
 
:'''<nowiki>|bord =</nowiki>''' EEE8AA
 
:'''<nowiki>|bord =</nowiki>''' EEE8AA
 
:'''<nowiki>|fond =</nowiki>''' FFFFF0
 
:'''<nowiki>|fond =</nowiki>''' FFFFF0
:'''<nowiki>|logo =</nowiki>''' <nowiki>[[Image:BDBulle EEE8AA.png|center|22px|BD]]</nowiki>
+
:'''<nowiki>|logo =</nowiki>''' <nowiki></nowiki>
:'''<nowiki>|titre =</nowiki>''' Titre BD
+
:'''<nowiki>|titre =</nowiki>''' Titre
 
:'''<nowiki>|fond_titre =</nowiki>''' EEE8AA
 
:'''<nowiki>|fond_titre =</nowiki>''' EEE8AA
 
:'''<nowiki>|alignement_titre =</nowiki>''' left
 
:'''<nowiki>|alignement_titre =</nowiki>''' left
 
:'''<nowiki>|taille_titre =</nowiki>''' 150%
 
:'''<nowiki>|taille_titre =</nowiki>''' 150%
:'''<nowiki>|page =</nowiki>''' Utilisateur:ZA/Bac à sable/contenu a
+
:'''<nowiki>|page =</nowiki>''' contenu
 
:'''<nowiki>}}</nowiki>'''
 
:'''<nowiki>}}</nowiki>'''
  
Ligne 29 : Ligne 29 :
  
 
{{Cadre
 
{{Cadre
|logo = [[Image:BDBulle EEE8AA.png|center|22px|BD]]
+
|logo = [[Image:Imag3v.jpg|center|22px|agric]]
 
|bord = EEE8AA
 
|bord = EEE8AA
 
|fond = FFFFF0
 
|fond = FFFFF0
|titre = Titre BD
+
|titre = Titre
 
|fond_titre = EEE8AA
 
|fond_titre = EEE8AA
 
|alignement_titre = left
 
|alignement_titre = left
 
|taille_titre = 150%
 
|taille_titre = 150%
|page = Utilisateur:ZA/Bac à sable/contenu a
+
|page = contenu
 
}}
 
}}
  
 
|}
 
|}
</noinclude><div style=" display:block; vertical-align:top; width:100%; margin-bottom:5px; margin-top:5px; padding-bottom:1px; padding-left:0px; padding-right:0px;">
 
{| cellspacing="0" style="float: center; width:100%; background-color:#{{{fond}}}; border: #{{{bord}}} solid 1px;  "
 
| style="width:2.52em; background-color:#{{{fond_titre}}};text-align:center" |
 
{{{logo}}}
 
| style="font-size:{{{taille_titre}}};text-align:{{{alignement_titre}}}; background-color:#{{{fond_titre}}};" |
 
{{{titre}}}
 
| style="width:2.52em; background-color:#{{{fond_titre}}}; text-align:right;" |
 
<small><nowiki>[</nowiki>[[{{{page}}}|modifier]]<nowiki>]</nowiki></small>
 
|-
 
|colspan="3" style="padding:5px 3px 7px 4px" | {{{{{page}}}}}
 
|-
 
|}
 
</div>
 
<noinclude>[[Catégorie:Modèle tableau|{{PAGENAME}}]]
 
[[Catégorie:Modèle cadre|{{PAGENAME}}]]
 
[[Catégorie:Maintenance des modèles Wikipédia|{{PAGENAME}}]]
 
[[oc:Modèl:Quadre]]
 
 
</noinclude>
 
</noinclude>

Version du 21 février 2007 à 17:01

syntaxe

Syntaxe Résultat
{{Cadre
|bord = EEE8AA
|fond = FFFFF0
|logo =
|titre = Titre
|fond_titre = EEE8AA
|alignement_titre = left
|taille_titre = 150%
|page = contenu
}}

Ce modèle crée un cadre avec un logo, un titre, un lien modifier, et inclut la page de son choix.

Exemple, si la page incluse dans le cadre est une sous-page, on peut employer la syntaxe suivante :

page = {{NAMESPACE}}:{{PAGENAME}}/Sous-page

Exemple, si la page incluse dans le cadre est un modèle, on peut employer la syntaxe suivante :

page = Modèle:nom-du-modèle
agric

Titre

{{{contenu}}}