Cuando se utiliza en la subpágina de una plantilla /doc
, {{ TEMPLATENAMEE }} se evalúa como el nombre de la plantilla asociada. El resultado será preciso cuando la página final sea la /doc
subpágina o la página de plantilla real. La plantilla es un caso especial para el Template:
espacio de nombres: Template:
se eliminará el prefijo.
Tenga en cuenta que el resultado estará codificado en la URL de la wiki. Para obtener una versión adecuada para su visualización, consulte {{ TEMPLATENAME }} .
La plantilla toma un parámetro: override
. Normalmente, esta plantilla detecta si la página final es una página de documentación buscando la presencia de una /doc
subpágina. Si la página de documentación tiene un nombre diferente (por ejemplo, en un idioma diferente), entonces se debe pasar el nombre de subpágina adecuado a override
. Por ejemplo, si la subpágina de documentación se llamara Documentation
:
{{TEMPLATENAMEE|override=Documentación}}
Las siguientes subpáginas siempre se eliminarán:
El parámetro {{{require}}} se puede configurar en una subpágina de destino en la que la plantilla debería funcionar. Si la subpágina actual no coincide con {{{require}}} y no se omite el argumento, la plantilla no se evaluará como nada. Esto es útil para evitar bucles recursivos en algunas páginas de plantillas que, de lo contrario, podrían hacer referencia a sí mismas.