Modèle:Prettytable4 : Différence entre versions
| [version vérifiée] | [version vérifiée] |
(Page créée avec « <includeonly>class="pretty-table" style="border-spacing: 1px; overflow: hidden; border-radius: 8px 0; text-align: center; box-shadow: 3px 3px 9px 0px #544e41; margin: 0 au... ») |
|||
| (22 révisions intermédiaires par 2 utilisateurs non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
| − | <includeonly>class="pretty-table" style="border-spacing: 1px; overflow: hidden; border-radius: 8px 0; text-align: center; box-shadow: | + | <includeonly>{{#if:{{{of|}}} |
| + | |overflow: auto; margin: 1px 0 6px; padding: 9px; | ||
| + | |class="pretty-table" style="border-spacing: 1px; border-collapse: collapse; overflow: hidden; border-radius: 8px 0; text-align: {{#switch:{{{align|}}} | ||
| + | |left=left | ||
| + | |right=right | ||
| + | |center | ||
| + | }}; box-shadow: 1px 2px 9px 0px #544e41; empty-cells: {{#if:{{{show|}}}|show|hide}}; caption-side: bottom; {{#if:{{{overflow|}}}|margin: 0 auto|margin: {{#if:{{{margin|}}}|{{{margin}}}|10px auto 15px}}}}; {{#if:{{{width|}}}|width: {{{width}}};}}"}}</includeonly><noinclude> | ||
| + | ==Utilisation du modèle== | ||
| + | Modèle à utiliser lors de la création d'un tableau. | ||
| + | {{Exemple| | ||
| + | <pre style="background: none; padding: 0; border: none; margin: 0;"> | ||
| + | {| {{{Prettytable4}}} | ||
| + | |- | ||
| + | ! Titre colonne 1 | ||
| + | ! Titre colonne 2 | ||
| + | |- | ||
| + | | Texte colonne 1 | ||
| + | | Texte colonne 2 | ||
| + | |}</pre> | ||
| + | }} | ||
| + | Les différents arguments falcutatifs possibles sont : | ||
| + | *'''align''' avec les valeurs '''left''' ou '''right''' | ||
| + | *'''width''' avec un pourcentage | ||
| + | *'''overflow''' avec n'importe quelle valeur ('''true''' par convention) | ||
| + | {{Exemple| | ||
| + | *<nowiki>{{{Prettytable4|align=left}}}</nowiki> | ||
| + | *<nowiki>{{{Prettytable4|width=100%}}}</nowiki> | ||
| + | }} | ||
| + | [[Catégorie:Nouveaux modèles]]</noinclude> | ||
Version actuelle datée du 20 juillet 2024 à 23:10
Utilisation du modèle
Modèle à utiliser lors de la création d'un tableau.
Les différents arguments falcutatifs possibles sont :
- align avec les valeurs left ou right
- width avec un pourcentage
- overflow avec n'importe quelle valeur (true par convention)