Modèle:Cadre : Différence entre versions

De Wiki ODR
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 47 : Ligne 47 :
 
{{{titre}}}
 
{{{titre}}}
 
| style="width:2.52em; background-color:#{{{fond_titre}}}; text-align:right;" |  
 
| style="width:2.52em; background-color:#{{{fond_titre}}}; text-align:right;" |  
<small><nowiki>[</nowiki>[[{{{page}}}|modifier]]<nowiki>]</nowiki></small>
+
<small><nowiki>[</nowiki>{{{contenu}}}<nowiki>]</nowiki></small>
 
|-
 
|-
 
|colspan="3" style="padding:5px 3px 7px 4px" | {{{{{page}}}}}
 
|colspan="3" style="padding:5px 3px 7px 4px" | {{{{{page}}}}}
 
|-
 
|-
 
|}
 
|}
</div>
+
</div></includeonly>

Version du 21 février 2007 à 17:09

syntaxe

Syntaxe Résultat
{{Cadre
|bord = EEE8AA
|fond = FFFFF0
|logo =
|titre = Titre
|fond_titre = EEE8AA
|alignement_titre = left
|taille_titre = 150%
|page = Article: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}}}