Diferencia entre revisiones de «Plantilla:Alternate Language»

De GeoGebra Manual
Saltar a: navegación, buscar
m (typo)
Línea 1: Línea 1:
 
{{mbox|text=This command has different names in different variants of Spanish: <!--
 
{{mbox|text=This command has different names in different variants of Spanish: <!--
-->{{#if:{{{UY_version|}}}|* {{{US_version}}} (Uruguay)|&nbsp;}}<!--
+
-->{{#if:{{{UY_version|}}}|* {{{UY_version}}} (Uruguay)|&nbsp;}}<!--
-->{{#if:{{{ES_version|}}}|* {{{UK_version}}} (Spain)|&nbsp;}}<!--
+
-->{{#if:{{{ES_version|}}}|* {{{ES_version}}} (Spain)|&nbsp;}}<!--
 
-->{{#if:{{{LATAM_version|}}}|* {{{LATAM_version}}} (Latin America excl. Uruguay)|&nbsp;}}<!--
 
-->{{#if:{{{LATAM_version|}}}|* {{{LATAM_version}}} (Latin America excl. Uruguay)|&nbsp;}}<!--
 
-->{{#if:{{{non-UY_version|}}}|* {{{non-UY_version}}} (Latin America excl. Uruguay, Spain)|&nbsp;}}<!--
 
-->{{#if:{{{non-UY_version|}}}|* {{{non-UY_version}}} (Latin America excl. Uruguay, Spain)|&nbsp;}}<!--

Revisión del 16:04 16 dic 2013

[edit] [purge] Template documentation

Indicate current region and include alternate text for other regions.

Uso

{{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}} produces

Ejemplo

(applied to US version of Center Command): 
  • [[Centre Command|US_version=Center non-US_version=Centre Aus_version=Centre]]
  • [[Centre Command|US_version=Center non-US_version=Centre Aus_version=Centre]]

Parameters (page_type, *_version):

  • page_type = {"Command", "Tool"}: suffix of PAGENAME
  • US_version, etc = regional NAME of command or tool (NAME + page_type = PAGENAME)

Comentarios

{{NAMESPACE}} is used to adjust link in template to match current page (public vs official).

© 2024 International GeoGebra Institute