{{DEFAULTSORT:<sort key>}} es una palabra mágica que se utiliza para modificar la secuencia de páginas que se muestran en las páginas de categorías . La clave de ordenación dada en una página específica se utiliza para determinar la posición de esa página en todas las páginas de categorías donde se la incluye. Nota : La página específica seguirá apareciendo con su título original, independientemente del orden de ordenación modificado. La clave de ordenación se puede anular para categorías específicas, si sus etiquetas [[Category:]] contienen una clave de ordenación individual diferente.
No es necesario utilizar DEFAULTSORT en absoluto si el artículo o la página deben ordenarse alfabetizadamente según su título (lo que es cierto para la mayoría de los artículos).
Para obtener información sobre cómo se ordenan las páginas de una categoría, consulte Wikipedia:Categorización § Claves de ordenación y Ayuda:Categoría § Clave de ordenación predeterminada .
De forma predeterminada, las páginas que figuran en una página de categorías se ordenan por {{PAGENAME}}
. Es posible establecer una clave de ordenación diferente utilizando la palabra mágica .{{DEFAULTSORT}}
En el caso de múltiples etiquetas de clave de ordenación predeterminadas, la última etiqueta DEFAULTSORT en la representación final de una página se aplica a todas las categorías, independientemente de la posición de las etiquetas de categoría. Esto también significa que una etiqueta DEFAULTSORT incluida desde una plantilla no es efectiva si aparece otra etiqueta DEFAULTSORT más adelante en la página, incluso si la etiqueta DEFAULTSORT posterior también está "oculta" (incluida por otra plantilla).
Al utilizar {{ DEFAULTSORT }} para modificar la clave de ordenación predeterminada, la palabra mágica debe ubicarse en el margen izquierdo de una nueva línea, inmediatamente encima de la línea que comienza la lista de categorías. Por ejemplo, las últimas líneas de un artículo típico titulado Nombre Apellido podrían verse así:
==Sección final==Última línea de contenido en la "sección final".{{Plantillas}}{{Última plantilla de metadatos| ÚLTIMO PARÁMETRO DE LA ÚLTIMA PLANTILLA DE METADATOS = Contenido del parámetro}}{{DEFAULTSORT:Apellido, Nombre}}[[Categoría:Nombre Apellido| ]]
Datos de plantilla para DEFAULTSORT
{{DEFAULTSORT:<sort key>}} es una palabra mágica que se utiliza para modificar la secuencia de páginas que se muestran en las páginas de categorías. Utilice {{DEFAULTSORT:Sortkey}} en lugar de {{DEFAULTSORT|Sortkey}}, con dos puntos (:), no con un símbolo de barra vertical ("|"). Esto utiliza la palabra mágica directamente en lugar de usar la plantilla para llamar a la palabra mágica.