• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Video game release hlist/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Video game release hlist
This is the template sandbox page for Template:Video game release hlist (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Video game release (sandbox)

Contents

  • 1 Description
  • 2 Usage
    • 2.1 List parameters
  • 3 Examples
  • 4 Tracking categories
  • 5 Redirects
  • 6 See also

Description

edit

The purpose of this template is to build an horizontal list with pairs of labels and items. The labels are typically regions, countries, or languages. The items are typically dates, but can be used for companies or people as well.

The template is most commonly used for tables, where the multiline format of {{Video game release}} may not be appropriate.

  1. You can specify any region, country or other label.
  2. Labels and items appear in the order in which you input them.
  3. Labels can be repeated with different items.

Usage

edit

Parameters are input as label/date pairs, and are displayed in the order they are given. Video game-specific aliases for regions such as NA, EU, AU or AUS, PAL, SEA, AS, SA, OC, and WW are supported, as well as all ISO 3166-1 alpha-3 codes and a smaller number of selected ISO 3166-1 alpha-2 codes.

Note that WP:VG/DATE asserts several guidelines/rules concerning where and when (and which) abbreviations may be used in video game infoboxes.

List parameters

edit

This template supports the following additional parameters for formatting the output list:

  • format: Video game release hlist is hardcoded to the horizontal format. Use {{Video game release}} for other formats.
  • class: a custom class for the <div>...</div> tags surrounding the list, e.g. plainlinks.
  • style: a custom CSS style for the <div>...</div> tags surrounding the list, e.g. font-size: 90%;.
  • list_style: a custom CSS style for the <ul>...</ul> tags around the list. The format is the same as for the |style= parameter.
  • item_style: a custom CSS style for all of the list items (the <li>...</li> tags). The format is the same as for the |style= parameter.
  • item1_style, item2_style, item3_style...: custom CSS styles for each of the list items. The format is the same as for the |style= parameter.
  • indent: this parameter indents the list. The value must be a number, e.g. 2. The indent is calculated in em, and is 1.6 times the value specified. If no indent is specified, the default is zero.

Examples

edit
Code Output
{{Video game release hlist|EU|September 11, 2015|NA|September 23, 2015}}
  • EU: September 11, 2015
  • NA: September 23, 2015
{{Video game release hlist|JP|February 8, 2011|WW|TBA}}
  • JP: February 8, 2011
  • WW: TBA
{{Video game release hlist|NA|October 5, 2009|PAL|October 6, 2009}}
  • NA: October 5, 2009
  • PAL: October 6, 2009
{{Video game release hlist|UK|July 19, 1999|WW|December 12, 1999}}
  • UK: July 19, 1999
  • WW: December 12, 1999
{{Video game release hlist|NA|January 1, 2016|EU|January 2, 2016|AU|January 4, 2016|SEA|January 13, 2016|AS|January 14, 2016|SA|January 15, 2016|OC|January 16, 2016|WW|January 17, 2016}}
  • NA: January 1, 2016
  • EU: January 2, 2016
  • AU: January 4, 2016
  • SEA: January 13, 2016
  • AS: January 14, 2016
  • SA: January 15, 2016
  • OC: January 16, 2016
  • WW: January 17, 2016

Tracking categories

edit
  • Category:Pages using vgrelease with named parameters (1) - Pages using the template with old named parameter syntax, i.e. NA=date. Convert to current syntax, i.e. NA|date.
  • Category:Pages using vgrelease with two parameter region (0) - Pages using the template with old "custom region" three parameter syntax, where the first two parameters represent an article and link label. These uses should be removed by combining the first and second parameter into a wikilink. I.e. combine North America|NA|date into [[North America|NA]]|date. Where possible, simply replace with the region code, i.e. NA|date
  • Category:Pages using vgrelease without a region (33) - Pages using the template without a region. These should be cleaned up either by specifying a region or removing the template.

Redirects

edit
  • {{Vgrh}}
  • {{Vgrelease hlist}}

See also

edit
  • {{Video game release}} – original template, outputting data pairs as an unbulleted list.
  • {{Vgrtbl}} – Formats dates to sort properly in sortable tables.
The above documentation is transcluded from Template:Video game release hlist/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Video_game_release_hlist/sandbox&oldid=822488251"
Last edited on 26 January 2018, at 17:29

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 26 January 2018, at 17:29 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop