Modèle:Cadre : Différence entre versions

De Ekopedia
Aller à : navigation, rechercher
Ligne 40 : Ligne 40 :
  
 
|}
 
|}
</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;">
+
</noinclude><includeonly><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;  "
 
{| 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" |  
 
| style="width:2.52em; background-color:#{{{fond_titre}}};text-align:center" |  
Ligne 52 : Ligne 52 :
 
|-
 
|-
 
|}
 
|}
</div>
+
</div></includeonly>
 
<noinclude>[[Catégorie:Modèles|{{PAGENAME}}]]
 
<noinclude>[[Catégorie:Modèles|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Version du 10 février 2007 à 04:01

syntaxe

Syntaxe Résultat
{{Cadre
|bord = EEE8AA
|fond = FFFFF0
|logo = [[Image:Vote neutre.png|center|22px|BD]]
|titre = Titre BD
|fond_titre = EEE8AA
|alignement_titre = left
|taille_titre = 150%
|page = Utilisateur:Antaya/Bac à sable/contenu a
}}

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