• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Fb/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Fb
This is the template sandbox page for Template:Fb (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 29,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Contents

  • 1 Description
  • 2 Examples
  • 3 Parameters
  • 4 See also

Description

edit

{{fb|nation|variant|size=optional|name=optional}}

Produces a flag icon attached to a wikilinked men's national football team article.

Parameters

  • nation – Use either the name of the nation or the three-letter country code as used by FIFA
  • 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
  • align (optional) – Set to "yes"/"y"/"1" to align country names in vertical lists
  • wrap (optional) – Set to "yes"/"y"/"1" to allow line wrapping of the output. The default is to disallow.

Examples

edit
  • {{fb|Argentina}} →  Argentina
  • {{fb|Switzerland}} →   Switzerland
  • {{fb|ENG}} →  England
  • {{fb|Italy|1861}} →  Italy
  • {{fb|GER|name=GER}} →  GER
  • {{fb|Spain}} →  Spain

Parameters

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Fb in articles based on its TemplateData.

TemplateData for Fb

Produces a flag icon attached to a wikilinked national football team article.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Nation1

Use either the name of the nation or the three-letter country code as used by FIFA

Example
Argentina
Stringrequired
Alignalign

Set to "yes"/"y"/"1" to align country names in vertical lists

Unknownoptional
Flag variantvariant 2

Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.

Example
1861
Stringoptional
Icon sizesize

Can be used to change the flag icon size (use sparingly!)

Unknownoptional
Link textname

Can be used to change the wikilink display text

Unknownoptional

See also

edit
  • Template:fb-rt – for rendering the flag on the right
  • Template:fb-big – for rendering a larger flag, with the team name underneath the flag
  • Template:fbicon – for rendering the flag on its own, with a wikilink to the national football team page.
  • Template:fbu – for under-NN national teams (i.e. under-20, under-21, etc.)
  • Template:fbw – for women's national teams
  • Template:fbo – for national Olympic football teams
  • Category:National association football teams
The above documentation is transcluded from Template:Fb/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Fb/sandbox&oldid=1251360105"
Last edited on 15 October 2024, at 19:27

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 15 October 2024, at 19:27 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop