« Modèle:Clear » : différence entre les versions

De Pikmin FR
fr>Codl
traduction doc, ajout exemple basé sur wikipedia:modèle:clr/documentation
m 12 versions importées
 
(10 versions intermédiaires par 5 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<div style="clear:{{#switch:{{{1|}}}|l=left|r=right|#default=both}}; margin:0; padding:0;"></div><noinclude>
<div style="clear:{{#switch:{{{1|}}}|l=left|r=right|#default=both}}; margin:0; padding:0;"></div><noinclude>
----
----
Le modèle {{t|clr}} force le contenu qui le suit à se ranger sous tout bloc flottant précédant. Il est notamment utilisé à la fin d'une section comportant plus d'images que de texte, pour empécher ces images d'empiéter sur la section qui suit.
Placing {<nowiki/>{Clear}} onto a page will cause any following content to appear below the content that is above the template. This template is mainly used to prevent new sections from appearing next to files.
 
[[Catégorie:Modèles]]
{| class="wikitable" style="max-width:120ch"
</noinclude>
|+ Exemple
|-
!
! Code wiki
! style="width:60ch"| Rendu
|-
!
Sans {{t|clr}}
|
<code><pre>
[[Fichier:CanyonAuxColonnes.jpeg|thumb|Bloc flottant]]
 
Texte remplissant l'espace laissé libre autour des blocs flottants. Texte remplissant l'espace laissé libre autour des blocs flottants.
 
Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur...
</pre></code>
|
[[Fichier:CanyonAuxColonnes.jpeg|thumb|Bloc flottant]]
 
Texte remplissant l'espace laissé libre autour des blocs flottants. Texte remplissant l'espace laissé libre autour des blocs flottants.
 
Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur...
|-
!
Avec {{t|clr}}
|
<code><pre>
[[Fichier:CanyonAuxColonnes.jpeg|thumb|Bloc flottant]]
 
Texte remplissant l'espace laissé libre autour des blocs flottants. Texte remplissant l'espace laissé libre autour des blocs flottants.
{{clr}}
Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur...
</pre></code>
|
[[Fichier:CanyonAuxColonnes.jpeg|thumb|Bloc flottant]]
 
Texte remplissant l'espace laissé libre autour des blocs flottants. Texte remplissant l'espace laissé libre autour des blocs flottants.
{{clr}}
Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur... Texte après beaucoup plus long demandant toute la largeur...
|}
 
[[Category:Templates]]</noinclude>

Dernière version du 9 avril 2025 à 21:23


Placing {{Clear}} onto a page will cause any following content to appear below the content that is above the template. This template is mainly used to prevent new sections from appearing next to files.