Template:Infobox Country/styled sandbox

From Wikipedia, the free encyclopedia


[edit] Template documentation

Contents

The Template:Infobox_Country_styled is used to generate a specially styled righthand infobox in articles about 2 specific subjects: Country/territory or Geopolitical organisation. The syntax (format) of general parameters, with examples, are detailed within the show/hide collapsed sections further below. This template is a variation of {{Infobox Country}}, intended for developing variations of new features, and allows new parameters that will be incorporated into "Infobox_Country" when the functionality has become stable. The special parameters for styling are described below.

[edit] Parameters for infobox style

There are several parameters that control coloring and font styles for various parts of the infobox:

  • titlestyle = title-bar directives (such as background:green).
  • boxstyle = directives for box style (such as background:lightgray).
  • labelstyle = directives for lefthand labels (e.g.: background:gray).
  • mapstyle = directives for map areas (e.g.: background:gray).

When specifying multiple directives as the style, separate the directives with semicolons (";"), but don't use quote marks. For example:

boxstyle = background:gray; color:darkgreen
mapstyle = background:gray; text-align:left

An optional ending semicolon (";") can be placed at the end of the list of directives. Warning: If a separator semicolon is accidentally omitted, then the directives will be totally ignored.

[edit] Implementation notes

This template, although providing new features, is still used in live articles as a mainstream template, not a sandbox page.

The main template {{Infobox Country}} is used in over 550 articles, including the major articles about most countries of the world. For that reason, this variation template is used to expand and develop new infobox features, over a period of weeks, without disturbing those 550+ major articles. Once features have been fully implemented, and evolved to handle general articles, those features can be copied into template Infobox_Country. Care should still be taken to ensure support for all articles that use this template for special infobox styling.

Because editors are volunteers, sparing blocks of time only as their schedules permit, this variation template is more responsive to the reality of the uncertain work hours involved. Some new features have required weeks to fully implement, with the help of multiple people, as special cases were later detected.

[edit] General parameters

There are many general parameters to define country or organization details within the infobox.

This Infobox template is used to generate a righthand infobox in articles of 2 specific types: Country/territory or Geopolitical organisation. The syntax (format) of parameters and examples are detailed within the show/hide collapsed sections below.

[edit] Syntax

[edit] Examples

[edit] Sandbox

A sandbox has been set up so modifications to the template may be tested before being implemented in the template proper:

Template:Infobox Country/sandbox

If possible, please try to view any modifications using a variety of web browsers and on different types of computer (PC, Macintosh, etc). Thank you!

[edit] Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "vcard"

Please do not rename or remove these classes.