For faster navigation, this Iframe is preloading the Wikiwand page for Modèle:TriNom.

Modèle:TriNom

<span style="display:none;">(({last))}, (({first))} </span>[[(({first))} (({last))}|(({first))} (({last))}]]

 Documentation[voir] [modifier] [historique] [purger]

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 Phelps, Michael Michael Phelps.
  • ((TriNom|Milorad|Čavić||Cavic)) donne Cavic Milorad Čavić et le classement se fait à la lettre C et non pas Č.
  • ((TriNom|Philippe|Lefebvre|Philippe Lefebvre (organiste)|)) donne Lefebvre, Philippe 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 Brighon, Robert 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, Laurel. Le classement se fait à la lettre L.
  • ((TriNom||Hardy|Laurel et Hardy)) donne Hardy, 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
Phelps, Michael Michael Phelps
Albritton, David David Albritton
Brighon, Robert Robert Brighon
Lefebvre, Philippe Philippe Lefebvre
Cavic Milorad Čavić
Lefebvre, Philippe Philippe Lefebvre
Zwierzchiewski, Benoît Benoît Zwierzchiewski
Raúl, Raúl
Laurel, Laurel
Hardy, 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ètres du modèle[Modifier les données du modèle]

La mise en forme sur une seule ligne est préférée pour ce modèle.

ParamètreDescriptionTypeÉtat
Clé de tri personalisésort 4

utilisé si la clé est différente de Nom, Prénom

Chaînefacultatif
Nomlast 2

Nom de la personne, première clé de tri

Chaîneobligatoire
Prénomfirst 1

Prénom de la personne

Chaîneobligatoire
Complément lien cibledab

suffixe utilisé pour éviter une possible homonymie

Exemple
(homme politique), (footballeur)
Chaînefacultatif
nolinknolink

utilisé si on ne souhaite pas de lien interne

Exemple
nolink=oui
Chaînefacultatif
tradtrad

utilisé si la cible n'existe pas pour pointer vers un autre wiki

Inconnufacultatif
langue du wikilangue

utilisé si trad est renseigné

Par défaut
en
Chaînefacultatif
Lien ciblelink 3

utilisé si l'article Prénom Nom n'est pas la cible

Inconnufacultatif
{{bottomLinkPreText}} {{bottomLinkText}}
Modèle:TriNom
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?