Module:Card/Layout/doc

From Artifact Wiki
Jump to: navigation, search

This is the documentation page for Module:Card/Layout

Documentation for Module:Card/Layout [edit] [edit doc]

This module defines the design for all cards to ensure consistency across the Wiki. It is currently seperated in two layouts: The first one is used for Spells, Improvements and Items; the second one for Heroes and Spells.

Preview


Tidehunter

This card is not in the database yet.
Description BG.png
[refresh card]

Rebel Decoy

This card is not in the database yet.
Description BG.png
[refresh card]

Mystic Flare

This card is not in the database yet.
Description BG.png
[refresh card]

Assault Ladders

This card is not in the database yet.
Description BG.png
[refresh card]

Shiva's Guard

This card is not in the database yet.
Description BG.png
[refresh card]

Usage


Within modules:

1 -- At the start of the program, one of the following:
2 -- For Spells, Improvements and Items:
3 local getCardLayout = require('Module:Card/Layout').getCardLayout1
4 -- For Heroes and Creatures:
5 local getCardLayout = require('Module:Card/Layout').getCardLayout2
1 -- Where you need the layout, one of the following (the parameters might not be up to date):
2 -- For Spells, Improvements and Items:
3 local cardLayout = getCardLayout(width, color, lane, mana, name, imageFile, iconName, iconCaption, iconLink, heroName, description, improvementFile, rarity)
4 -- For Heroes and Creatures:
5 local cardLayout = getCardLayout(width, color, lane, mana, name, imageFile, iconName, iconCaption, iconLink, heroName, description, improvementFile, rarity)