ទំព័រគំរូ:ប្រអប់ព័ត៌មាន ប្រទេស/styled sandbox/doc

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. ទំព័រគំរូ:Infobox Country/doc