Template:Userbox table regional link

From wikiNonStop
Template documentation

Usage

This is a helper template for location userboxes organization.

1
First parameter—name of the country is required.

Optional parameters

|2=separator
Second parameter should be a single character: # or /. Use # for sections, / for subpages. # is the default.
|3=section or subpage name
* Third parameter should be section or subpage name. Cities is the default.
|text=custom text
Set custom text. Default text is <section/subpage name> of <country name>.
|image=name of file
Set custom image. Default image is flag of the country.
|alone=yes
Set parameter alone to yes if template {{yytabcountry|…|…|…}} will be used without a table created using {{Yytop }} and {{Yyend }}, same as with {{Yytab }}.
|info-s=font size
Set custom font size. Default is 9. See Template:Userbox#Usage.
|plain=yes
Add to drop the #Cities part of the link and Cities of part of the text.

Quick examples

  • {{yytabcountry|Country}}
  • {{yytabcountry|Country|#|Regions}}
  • {{yytabcountry|Country|#|Section}}
  • {{yytabcountry|Country|/|Subpage}}
  • {{yytabcountry|Country|image=filename}}
  • {{yytabcountry|Country|plain=yes}}
  • {{yytabcountry|Country|alone=yes}}

Examples

Code Result
Austria}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use third parameter to specify custom section/subpage name. Note, that second parameter must be specified too in this case.
New Zealand|#|Regions}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use / for subpages
Russia|/}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use text= to replace default text
United States|/|Cities by State|text=US cities by state}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use image= to replace default image
Brazil|image=Brazil (orthographic projection).svg}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use plain=yes to link to the country page.
Austria|plain=yes}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use info-s= to specify custom font size. Compare with the first New Zealand example above.
New Zealand|#|Regions|info-s=7}}
Template:Yytabcountry|- style="font-size:85%;margin:0;padding:0;"
Use alone=yes when outside {{Yytop }}+{{Yyend }} table
{{yytabcountry|China|alone=yes}}
Template:Yytabcountry

See also

  1. REDIRECT Template:WikiProject Userboxes navbox