Diferencia entre revisiones de «Plantilla:Alternate Language/doc»
De GeoGebra Manual
Línea 6: | Línea 6: | ||
<nowiki>{{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}}</nowiki> | <nowiki>{{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}}</nowiki> | ||
produces | produces | ||
− | + | {{Alternate Language|region=US|page_type=Command |US_version=Center|UK_version=Centre|Aus_version=Centre}} | |
− | |||
− | |||
==Example== | ==Example== | ||
(applied to US version of "Center Command"): | (applied to US version of "Center Command"): | ||
* <nowiki> | * <nowiki> | ||
− | + | [[Centre Command|US_version=Center non-US_version=Centre Aus_version=Centre]] | |
</nowiki> | </nowiki> | ||
* <nowiki> | * <nowiki> | ||
− | + | [[Centre Command|US_version=Center non-US_version=Centre Aus_version=Centre]] | |
</nowiki> | </nowiki> | ||
'''Parameters''' (page_type, *_version): | '''Parameters''' (page_type, *_version): |
Revisión del 05:15 6 ene 2012
This is a documentation Help:Subpages subpage] for Plantilla:Alternate Language (see that page for the plantilla itself). It contains usage information, Help:Categories categories], interlanguage links and other content that is not part of the original plantilla page. |
[[Template:{{{PAGENAME}}}]]
Indicate current region and include alternate text for other regions.
Usage
{{Alternate Language|page_type=Command|US_version=Center|non-US_version=Centre}} produces
Las variantes del nombre del comando en español son: |
Example
(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)
Comments
{{NAMESPACE}} is used to adjust link in template to match current page (public vs official).