Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Optional parameters  





1.2  Quick examples  







2 Examples  





3 See also  














Template:Userbox table regional link/doc: Difference between revisions







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 

< Template:Userbox table regional link

Browse history interactively
 Previous edit
Content deleted Content added
No edit summary
Tag: Reverted
Undid revision 1229254912byRkt2312 (talk)
 
Line 55: Line 55:

| colspan="2" | Use '''<code>text=</code>''' to replace default text

| colspan="2" | Use '''<code>text=</code>''' to replace default text

|-

|-

| {{tlc|yytabcountry|the United States|/|Cities by State|text{{=}}US cities by state}}

| {{tlc|yytabcountry|United States|/|Cities by State|text{{=}}US cities by state}}

| {{yytop|headers=no}}{{yytabcountry|United States|/|Cities by State|text=US cities by state}}{{yyend}}

| {{yytop|headers=no}}{{yytabcountry|United States|/|Cities by State|text=US cities by state}}{{yyend}}

|-

|-


Latest revision as of 19:30, 15 June 2024

Usage[edit]

This is a helper template for location userboxes organization.

1
First parameter—name of the country is required.

Optional parameters[edit]

|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 alonetoyes 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[edit]

Examples[edit]

Code Result
{{yytabcountry|Austria}}
See Wikipedia:Userboxes/Location/Austria#Cities for Cities of Austria userbox templates.
Use third parameter to specify custom section/subpage name. Note, that second parameter must be specified too in this case.
{{yytabcountry|New Zealand|#|Regions}}
See Wikipedia:Userboxes/Location/New Zealand#Regions for Regions of New Zealand userbox templates.
Use / for subpages
{{yytabcountry|Russia|/}}
See Wikipedia:Userboxes/Location/Russia/Cities for Cities of Russia userbox templates.
Use text= to replace default text
{{yytabcountry|United States|/|Cities by State|text=US cities by state}}
See Wikipedia:Userboxes/Location/United States/Cities by State for US cities by state userbox templates.
Use image= to replace default image
{{yytabcountry|Brazil|image=Brazil (orthographic projection).svg}}
See Wikipedia:Userboxes/Location/Brazil#Cities for Cities of Brazil userbox templates.
Use plain=yes to link to the country page.
{{yytabcountry|Austria|plain=yes}}
See Wikipedia:Userboxes/Location/Austria for Austria userbox templates.
Use info-s= to specify custom font size. Compare with the first New Zealand example above.
{{yytabcountry|New Zealand|#|Regions|info-s=7}}
See Wikipedia:Userboxes/Location/New Zealand#Regions for Regions of New Zealand userbox templates.
Use alone=yes when outside {{yytop}}+{{yyend}} table
{{yytabcountry|China|alone=yes}}
See Wikipedia:Userboxes/Location/China#Cities for Cities of China userbox templates.

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Userbox_table_regional_link/doc&oldid=1229255121"

Hidden categories: 
Template documentation pages
Userboxes with insufficient color contrast
 



This page was last edited on 15 June 2024, at 19:30 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki