Difference between revisions of "Template:Davis/doc"
Jump to navigation
Jump to search
(+ja) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
==Description== | ==Description== | ||
| − | < | + | <kbd><nowiki>{{davis|nation|variant|size=optional|name=optional}}</nowiki></kbd> |
Produces a flag icon attached to a wikilinked [[Davis Cup]] team article. | Produces a flag icon attached to a wikilinked [[Davis Cup]] team article. | ||
| Line 11: | Line 11: | ||
==Examples== | ==Examples== | ||
| − | *< | + | *<kbd><nowiki>{{davis|Australia}}</nowiki></kbd> → {{davis|Australia}} |
| − | *< | + | *<kbd><nowiki>{{davis|USA}}</nowiki></kbd> → {{davis|USA}} |
| − | *< | + | *<kbd><nowiki>{{davis|South Africa|1928}}</nowiki></kbd> → {{davis|South Africa|1928}} |
| − | *< | + | *<kbd><nowiki>{{davis|Great Britain|name=British Isles}}</nowiki></kbd> → {{davis|Great Britain|name=British Isles}} |
==See also== | ==See also== | ||
| Line 21: | Line 21: | ||
*[[:Category:Davis Cup teams]] | *[[:Category:Davis Cup teams]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
[[Category:Tennis templates|{{PAGENAME}}]] | [[Category:Tennis templates|{{PAGENAME}}]] | ||
[[Category:Flag template system|{{PAGENAME}}]] | [[Category:Flag template system|{{PAGENAME}}]] | ||
[[ja:Template:Davis]] | [[ja:Template:Davis]] | ||
| − | </includeonly> | + | [[id:Templat:Davis]] |
| + | }}</includeonly> | ||
Latest revision as of 22:51, 24 April 2020
| This is a documentation subpage for Template:Davis. It contains usage information, categories and other content that is not part of the original template page. |
Description
{{davis|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked Davis Cup team article.
- Parameters
- nation — Use either the name of the nation or a three-letter country code, as specified by ISO, IOC or FIFA (most should work)
- variant (optional) — Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
- size (optional) — Can be used to change the flag icon size (use sparingly!)
- name (optional) — Can be used to change the wikilink display text
Examples
- {{davis|Australia}} → File:Flag of Australia (converted).svg Australia
- {{davis|USA}} →
United States - {{davis|South Africa|1928}} →
South Africa - {{davis|Great Britain|name=British Isles}} →
British Isles
See also
- Template:davis-big — for rendering a larger flag, with the team name underneath the flag
- Template:fed — for women's Fed Cup teams
- Category:Davis Cup teams