Esta es la metaplantilla {{ talk other }} .
Esta plantilla ayuda a otras plantillas a detectar si están en una página de discusión o en algún "otro" tipo de página.
Esta plantilla normalmente toma dos parámetros, como este:
{{ talk other | Discusión páginas texto | Otras páginas texto }}
Si la plantilla está en alguna página de discusión, devolverá esto:
Si la plantilla está en cualquier otra página, devolverá esto:
Un caso de uso típico podría ser hacer que una plantilla solo agregue una categoría cuando se encuentre en páginas de discusión, sin agregar otras páginas que solo muestren la plantilla. De esta manera:
{{ talk other | [[ Categoría : Algunas categorías de la página de discusión ]] }}
O para advertir que una plantilla no debe utilizarse en otras páginas:
{{ talk other | | Esta plantilla solo debe usarse en páginas de discusión. }}
Tenga en cuenta que en el primer caso anterior no se utilizó el parámetro "otro" y en el segundo ejemplo el parámetro "hablar" se dejó vacío.
Para fines de prueba y demostración, esta plantilla puede tomar un parámetro llamado demospace .
Como esto:
{{ talk other | Discusión páginas texto | Otras páginas texto | demospace = talk }}
No importa en qué tipo de página se use el código anterior, devolverá esto:
Puede hacer que su plantilla también comprenda el parámetro demospace . Esto significa que puede demostrar las diferentes apariencias de su plantilla en la documentación correspondiente. A continuación, haga lo siguiente:
{{ talk other | Discusión páginas texto | Otras páginas texto | demospace = {{{ demospace |}}} } }
Esta plantilla detecta todos los tipos de páginas de discusión como de tipo discusión . Es decir, "Discusión:", "Discusión de usuario:", "Discusión de archivo:", etc., todas son de tipo discusión .
Esta plantilla funciona como {{ main talk other }} , para más ejemplos y detalles técnicos consulte la documentación completa allí.