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

De Inkipédia
Aller à la navigation Aller à la recherche
(traduction doc, ajout exemple basé sur wikipedia:modèle:clr/documentation)
FRInki>Trig Jegman
mAucun résumé des modifications
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>{{clr}}</nowiki> 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.
 
{| class="wikitable" style="max-width:120ch"
|+ 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>
[[Category:Templates]]</noinclude>

Version du 29 mai 2023 à 04:42


Placing {{clr}} 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.