داڕێژە:Quikflag

لە ئینسایکڵۆپیدیای ئازادی ویکیپیدیاوە

بەڵگەدارکردنی داڕێژە[ببینە] [دەستکاری بکە] [مێژوو] [پاکسازی]

The flag Template:Quikflag displays a nation or location flag, of a specified size, very quickly, with no extra templates being spawned and transcluded into the page.

Usage:  {{quikflag |place}}
{{quikflag |place |n}}
{{quikflag |place |link=placename2}}
{{quikflag |image=Place_flag.jpg |size=24px }}

The following parameters are allowed:

  • size - the size, such as 30px (default: 22x20px)
  • alt - the image alternative text for text-only users and mouse-over display
  • link - the wikilink text when clicking on image (default: a wikilink to the place name)
  • 1=n   - parameter 1 as "n" shows name after the flag.
  • 2=n   - parameter 2 as "n" also shows name after flag.
  • border - any other text (default: border)
  • image - the name of any image file to display (not just a flag)

The typical flag-image name is in the form "Flag of (...).svg" where an optional word "the" is inserted if needed in the name, but use image=xx.jpg for other flag names. Other special nation or city names are detected and substituted when needed.

Examples: The following are examples of the template:

  • {{Quikflag |United Kingdom}}:  
  • {{Quikflag |Australia}}:  
  • {{quikflag |France}} {{quikflag |Germany}} - {{quikflag |Spain}}:   -
  • {{quikflag |Alabama}} / {{quikflag |Texas}} / {{quikflag |New York}}:   / /
  • {{quikflag |Argentina (1916)|size=100px}}:  

If no spaces are placed between templates, then all the flags will be aligned together. There are many hundreds of possible flags. See index list: "Special:PrefixIndex/File:Flag of".

Comparison to Template:flag[دەستکاری]

The main purpose of {{quikflag}} is to display a flag, by name suffix, very quickly, as a short entry in a page. However, the purpose of {{flag}} is to provide the flag for a nation-code or name, and display the official name of that nation. Consequently, {{quikflag}} can display thousands of flags, because it does not check the nation-code to restrict which flags are shown. Note, in the following 2 examples, how Template:flag does not handle flags of "Persia (1906)" or "Paraguay 1811 to 1812" which can be displayed quickly by {{quikflag}}, but {{flag}} generates errors of "Template:Country data...":

  • {{flag|Persia (1906) }}   {{flag|Paraguay 1811 to 1812}}
داڕێژە:Country data Persia (1906)   داڕێژە:Country data Paraguay 1811 to 1812
  • {{quikflag|Persia (1906)|size=50px}}   {{quikflag|Paraguay 1811 to 1812 |size=50px}}
پەڕگە:Flag of Persia (1906).svg  

Part of the reason that {{quikflag}} is so quick, displaying a flag using no other templates, is because {{quikflag}} does not lookup nation-code entries. The 2 templates have very different purposes.