Modèle:TriNom
<span style="display:none;">(({last))}, (({first))} </span>[[(({first))} (({last))}|(({first))} (({last))}]]
- Utilisation
Utilisé dans un tableau triable, ce modèle permet de créer un lien interne sous la forme « Prénom Nom » et d'effectuer le tri par rapport au Nom.
- Syntaxe
((TriNom|Prénom|Nom|Lien cible|Clé de tri))
Prénom
: prénom de la personne.Nom
: nom de la personne.Lien cible
: permet de donner la page exacte en cas d'homonymie sur le nom de la personne.Clé de tri
: nom à utiliser pour le tri, par exemple « Etienne » pour « Étienne » ou bien « Cavic » pour « Čavić ».nolink=1
: paramètre optionnel supprime le lien interne sur le nom.
- Exemple
-
((TriNom|Michael|Phelps))
donne Michael Phelps.((TriNom|Milorad|Čavić||Cavic))
donne Milorad Čavić et le classement se fait à la lettre C et non pas Č.((TriNom|Philippe|Lefebvre|Philippe Lefebvre (organiste)|))
donne Philippe Lefebvre. Le classement se fait à la lettre L et le lien interne est fait sur Philippe Lefebvre (organiste).((TriNom|Robert|Brighon|nolink=1))
donne Robert Brighon. Le classement se fait à la lettre B mais aucun lien interne n'apparaît sur le nom.((TriNom||Laurel|Laurel et Hardy))
donne Laurel. Le classement se fait à la lettre L.((TriNom||Hardy|Laurel et Hardy))
donne Hardy. Le classement se fait à la lettre H.
Dans un tableau triable, le tri se fait en fonction du nom.
{| class="wikitable sortable" ! Nom |- | ((TriNom|Michael|Phelps)) |- | ((TriNom|David|Albritton)) |- | ((TriNom|Robert|Brighon|nolink=1)) |- | ((TriNom|Philippe|Lefebvre|Philippe Lefebvre (réalisateur)|)) |- | ((TriNom|Milorad|Čavić||Cavic)) |- | ((TriNom|Philippe|Lefebvre|Philippe Lefebvre (organiste)|)) |- | ((TriNom|Benoît|Zwierzchiewski)) |- | ((TriNom||Raúl|Raúl (football))) |- | ((TriNom||Laurel|Laurel et Hardy)) |- | ((TriNom||Hardy|Laurel et Hardy)) |}
donne
Nom |
---|
Michael Phelps |
David Albritton |
Robert Brighon |
Philippe Lefebvre |
Milorad Čavić |
Philippe Lefebvre |
Benoît Zwierzchiewski |
Raúl |
Laurel |
Hardy |
ce modèle permet de créer un lien interne sous la forme « Prénom Nom » et d'effectuer le tri par rapport au Nom.
Paramètre | Description | Type | État | |
---|---|---|---|---|
Clé de tri personalisé | sort 4 | utilisé si la clé est différente de Nom, Prénom | Chaîne | facultatif |
Nom | last 2 | Nom de la personne, première clé de tri | Chaîne | obligatoire |
Prénom | first 1 | Prénom de la personne | Chaîne | obligatoire |
Complément lien cible | dab | suffixe utilisé pour éviter une possible homonymie
| Chaîne | facultatif |
nolink | nolink | utilisé si on ne souhaite pas de lien interne
| Chaîne | facultatif |
trad | trad | utilisé si la cible n'existe pas pour pointer vers un autre wiki | Inconnu | facultatif |
langue du wiki | langue | utilisé si trad est renseigné
| Chaîne | facultatif |
Lien cible | link 3 | utilisé si l'article Prénom Nom n'est pas la cible | Inconnu | facultatif |
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.