Modèle:Tunité
Utilisation
Ce modèle sert à indiquer les trois dimensions d’un objet dans l’espace, comme un monument ou une sculpture.
Syntaxe
((Tunité|1|2|3|4))
Paramètres
1
: un nombre, première dimension (obligatoire).2
: un nombre, deuxième dimension (obligatoire).3
: un nombre, troisième dimension (obligatoire).4
: l’unité des trois dimensions (facultatif, absent par défaut).
Exemples
- «
((Tunité|21.5|21,5|13.9|cm))
» donne « 21,5 × 21,5 × 13,9 cm » - «
((Tunité|21|21|13|cm ((abréviation discrète|env.|environ))))
» donne « 21 × 21 × 13 cm env. » - «
((Tunité|100|100|100))
» donne « 100 × 100 × 100 » - «
((Tunité|1000|10000|1000000|km))
» donne « 1 000 × 10 000 × 1 000 000 km »
Notes
- Pour le premier paramètre, on emploie le mot magique «
formatnum:
». - Pour le trois autres paramètres, on fait appel à ((Dunité)).
- Noter que l’on peut fournir le point décimal aussi sous forme d’une virgule, comme d’usage dans les documents français.
TemplateData
Le modèle sert à présenter les trois dimensions d’un objet rectangulaire, en général un monument ou une sculpture.
Paramètre | Description | Type | État | |
---|---|---|---|---|
hauteur | 1 | Valeur à afficher. Utiliser le point ou la virgule comme séparateur décimal. Le modèle affichera automatiquement le nombre suivant les conventions francophones. | Nombre | obligatoire |
largeur | 2 | Valeur à afficher. Utiliser le point ou la virgule comme séparateur décimal. Le modèle affichera automatiquement le nombre suivant les conventions francophones. | Nombre | obligatoire |
profondeur | 3 | Valeur à afficher. Utiliser le point ou la virgule comme séparateur décimal. Le modèle affichera automatiquement le nombre suivant les conventions francophones. | Nombre | obligatoire |
unité | 4 | Unité de mesure, par exemple « cm ». | Chaîne | facultatif |
Autres modèles d’unité
- Modèle:Unité, pour les unités sur 1 dimension
- Modèle:Dunité, pour les unités sur 2 dimensions
La documentation de ce modèle est générée par le modèle ((Documentation)).
Elle est directement incluse dans l'appel de ce dernier. Si cette page est protégée, veuillez transférer le contenu de la documentation vers sa sous-page dédiée.
Les éditeurs peuvent travailler dans le bac à sable (créer) et la page de test (créer).
Voir les statistiques d'utilisation du modèle sur l'outil wstat.
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.