Template:Getalias2/doc

This is a more general version of Getalias, which can extract any parameter value from a country data template instead of just parameters named "... alias" or "... alias-...".

Examples

 * &rarr;  (the value of flag alias in Country data United Kingdom)
 * &rarr;  (the value of shortname alias in Country data Georgia (U.S. state))
 * &rarr;  (nothing, since border is set to nothing in Country data Nepal)
 * &rarr;  (no border parameter is defined in Country data Russia)
 * &rarr;  (in Country data Nepal, the  parameter is passed through with fallback value 23x20px)
 * &rarr;  (in Country data Russia, the  parameter is passed through with empty fallback value)

Usage with variant
The variant parameter can be used to extract a variant parameter value, and returns the main parameter value if the variant parameter is undefined:
 * &rarr;  (the value of flag alias-civil)
 * &rarr;  (non-existent variant; returns the value of flag alias as fallback)