Template:LocationAttr/doc

Revision as of 11:51, 19 February 2010 by dragon>FlyingRagnar (Created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The LocationAttr template is used to display location attributes which do not fit in any other location template category. These attributes include save locations, zoom point locations, and lottery locations.

Usage

In almost all cases, using this template should be preceded by an Other notable attributes heading on the article it is being transcluded onto. This is because there is no label marking the table data within this template. This is consistent with other location templates.

Header

A header call to this template should be the first usage of this template on any page.

{{LocationAttr|header|float=right}}
  • header: A required parameter which marks this as the start of an teleportal table.
  • float: The float parameter is optional. It represents the CSS float style and should be 'left', 'right', or 'center'. The default is left.

Entries

Each entry in the location attribute table is represented by a single template call.

{{LocationAttr|entry|info=The game can be saved in this location.|game=[[Dragon Warrior]]|console=NES}}
  • entry: A required parameter which marks this as a single location attribute table entry.
  • info: General info about the attribute.
  • game: The game this attribute represents. This parameter can contain multiple games if applicable.
  • console: The console version of the game. Note: This parameter should contain multiple console values separated by commas if the game and info parameters are the same.

Footer

The footer call marks the end of the location attribute table.

{{LocationAttr|footer}}
  • footer: A required parameter marking the template as the footer.

Example

Sample

      {{{text}}}

      {{{text}}}

      {{{text}}}

      {{{text}}}

Code

{{LocationAttr|header}}
{{LocationAttr|entry|info=This is a location where the game can be saved.|game=[[Dragon Warrior II]]|console=NES}}
{{LocationAttr|entry|info=This is a zoom point location.|game=[[Dragon Warrior III]]|console=GBC}}
{{LocationAttr|footer}}