NewsUnrealEdForumsFilesModsFragBU

Skin

BeyondUnreal


Personal tools

Template:WeaponsTableDoc

From Liandri Archives

Revision as of 13:25, 14 February 2016 by Neon Knight (talk | contribs) (Created page with "This set of templates, consisting in three templates with the names '''WeaponsTableHeader''', '''WeaponsTableRow''' and '''WeaponsTableFooter''', was made with the intention of g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This set of templates, consisting in three templates with the names WeaponsTableHeader, WeaponsTableRow and WeaponsTableFooter, was made with the intention of giving all the map pages an uniform look. There's another set of templates, called "PickupTables", made specifically for anything that isn't a weapon or their respective ammo.

How to add

The basic layout, for one set of weapon/ammo, is the following:

{{WeaponsTableHeader}}
{{WeaponsTableRow|
weapon=|
wamnt=|
aamnt=|
wloc=|
aloc=|}}
{{WeaponsTableFooter}}

The header and footer lines need no explanation. The row has five attributes:

  • weapon is the name of the weapon. The template encloses this value with brackets automatically, regardless if there is or not a page for that weapon.
  • wamnt is short for "Weapon amount" and indicates how many weapon pickups for that weapon are present in the map.
  • aamnt is short for "Ammo amount" and indicates how many ammo packs for that weapon are present in the map.
  • wloc is an optional attribute indicating where the weapon pickups are located in the map.
  • aloc is an optional attribute indicating where the ammo packs are located in the map.

Hence, something like this (taken from this page):

{{WeaponsTableHeader}}
{{WeaponsTableRow|
weapon=BioRifle|
wamnt=1|
aamnt=1|
wloc=Central area, upper level, near the Central-East entrances.|
aloc=Near the weapon.}}
{{WeaponsTableFooter}}

Will output this:

Weapon Count Ammo Weapon Location Ammo Location
BioRifle 1 1 Central area, upper level, near the Central-East entrances. Near the weapon.

If you need more than one weapon, you must add another WeaponsTableRow call. For example, aside of the BioRifle, there's also the Shock Rifle. Hence, by adding another WeaponsTableRow with the information regarding the Shock Rifle:

{{WeaponsTableHeader}}
{{WeaponsTableRow|
weapon=BioRifle|
wamnt=1|
aamnt=1|
wloc=Central area, upper level, near the Central-East entrances.|
aloc=Near the weapon.}}
{{WeaponsTableRow|
weapon=Shock Rifle|
wamnt=1|
aamnt=4|
wloc=Central area, lower level, in the Northeast corner.|
aloc=2x Near the weapon. 1x Central-East area, upper floor. 1x North area, upper floor, northwest corner.}}
{{WeaponsTableFooter}}

The output will be the following:

Weapon Count Ammo Weapon Location Ammo Location
BioRifle 1 1 Central area, upper level, near the Central-East entrances. Near the weapon.
Shock Rifle 1 4 Central area, lower level, in the Northeast corner. 2x Near the weapon. 1x Central-East area, upper floor. 1x North area, upper floor, northwest corner.