Template:Infobox country/styled sandbox/doc

From IxWiki
Revision as of 19:16, 10 August 2020 by Heku (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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.

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.

General parameters

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