Modèle:HMAS
Utilisation
[modifier le code]Ce modèle sert à mettre en forme les navires de la Royal Australian Navy utilisant comme nom le format « HMAS Suffolk (55) ». Cette mise en forme est utile car les noms des navires doivent être en italique, ce qui rend le codage plus complexe qu'un simple lien.
- Sans le modèle : [[HMAS Suffolk (55)|HMAS ''Suffolk'' (55)]]
- Avec le modèle : ((HMAS|Suffolk|55))
Syntaxe
[modifier le code]((HMAS|Nom du navire)) ((HMAS|Nom du navire|ID)), où l'ID est une année ou le code/type de coque
Exemples
[modifier le code]Utilisation du modèle | Wikicode équivalent | Résultat final |
---|---|---|
((HMAS|Suffolk|55)) | [[HMAS Suffolk (55)|HMAS ''Suffolk'' (55)]] | HMAS Suffolk (55) |
((HMAS|Burdekin|K376)) | [[HMAS Burdekin (K376)|HMAS ''Burdekin'' (K376)]] | HMAS Burdekin (K376) |
((HMAS|Suffolk)) | [[HMAS Suffolk|HMAS ''Suffolk'']] | HMAS Suffolk |
Option de visualisation
[modifier le code]Un paramétre optionnel permet de changer le résultat final du code.
Valeur | Paramètre(s) montré |
Exemple | Wikicode équivalent | Résultat final | |
---|---|---|---|---|---|
1 | 3e | ((HMAS|Suffolk|55|1)) | [[HMAS Suffolk (55)|55]] | 55 | |
2 | 2d | ((HMAS|Suffolk|55|2)) | [[HMAS Suffolk (55)|''Suffolk'']] | Suffolk | |
3 | 2d et 3e | ((HMAS|Suffolk|55|3)) | [[HMAS Suffolk (55)|''Suffolk'' 55]] | Suffolk (55) | |
4 | À tester | ||||
5 | 1er et 3e | ((HMAS|Suffolk|55|5)) | [[HMAS Suffolk (55)|HMAS 55]] | HMAS (55) | |
6 | 1er et 2d | ((HMAS|Suffolk|55|6)) | [[HMAS Suffolk (55)|HMAS ''Suffolk'']] | HMAS Suffolk |
La documentation de ce modèle est générée par le modèle ((Documentation)).
Elle est incluse depuis sa sous-page de documentation. Veuillez placer les catégories sur cette page-là.
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.