Template:Flagof/doc

From Porn Base Central, the free encyclopedia of gay porn
Jump to navigation Jump to search

This template is similar to {{flag}}, with the main difference that it links to the article on the flag rather than the article on the country. The default link is to "Flag of {{{alias}}}", where {{{alias}}} is the country article name passed by the country's data template.

Parameters

  • {{{1}}} (first unnamed parameter): Name of country or any other entity for which "Template:Country data ..." exists. If a custom image is specified, entities without a country data template work too.
  • {{{variant}}} (or second unnamed parameter): Identifies a variant flag image, such as an ensign or a historical flag (for a list of available variants for each entity, see their respective country data templates)
  • {{{size}}}: Size of the icon in px. The default size is 30x20px, which is slightly larger than the default size of {{flag}}, {{flagicon}} etc.
  • {{{name}}}: Display name (doesn't affect linked article name). Defaults to the value of the first unnamed parameter.
  • {{{image}}}: Custom image name without "File:" prefix. If not specified uses an image from the entity's country data template.
  • {{{border}}}: Set to nothing to remove the border from a custom image if it's a non-rectangular flag. The border should be automatically deactivated for images from country data templates if necessary (if it isn't the line "|border=" should be added to the data template).
  • {{{link}}}: The article to link to. Defaults to "Flag of {{{alias}}}", using the value of |alias= from the country data template. Set to nothing to omit the link entirely and produce only the flag icon. The link is automatically omitted by default if no first parameter is specified (see last three examples).
  • {{{section}}}: Links to a section of the linked article

Examples

Customized name and link

Customized image

  • {{flagof|Spain|image=Flag of Spain (Civil).svg}}File:Flag of Spain (Civil).svg Spain (custom image; entity with country data template)
  • {{flagof|Amsterdam|image=Flag of Amsterdam.svg}} Amsterdam (entity without country data template; uses the first parameter as alias for the link)
  • {{flagof|Denmark|image=Flag of Denmark (state).svg|border=}}File:Flag of Denmark (state).svg Denmark (custom image without border)
  • {{flagof|image=Flag of Gozo.svg}}File:Flag of Gozo.svg (no link if there is an image but no first parameter)

Empty image

  • {{flagof}} (no parameters at all; uses the empty placeholder flag image from Template:Country data without link)
  • {{flagof|link=Flags of Antarctica|name=Antarctica}} Antarctica (empty image with link; {{noflag}}-like)
    • Alternatively: {{flagof|Antarctica|image=Flag placeholder.svg|border=}} Antarctica