% if (typeof card !== 'undefined') {
var release_map = {
's01c': 'Clash of the Gods',
's01d': 'Demo (Set 01)',
's01n': 'Nemesis',
's01p': 'Promos (Set 01)',
's01r': 'Cthulhu Rises',
};
%>
<% if (card.num.toLowerCase().indexOf('d') > -1 ) { %>
<% } %>
<% if (card.num.toLowerCase().indexOf('d') > -1 ) { %>
<% } %>
- Name
- <%= card.name %>
- Number
- <%= card.num.toUpperCase() %>
- Release
- <%- release_map[card.num.toLowerCase().substr(0,4)] %>
<% if (card.pantheon !== '') { %>
- Pantheon
<% } %>
<% if (card.race.indexOf(' ') !== -1) { %>
- Races
- <%= card.race %>
<% } else if (card.race !== '') { %>
- Race
- <%= card.race %>
<% } %>
<% if (card.type.indexOf(' ') !== -1) { %>
- Types
- <%= card.type %>
<% } else if (card.type !== '') { %>
- Type
- <%= card.type %>
<% } %>
<% if (card.element.indexOf(' ') !== -1) { %>
- Elements
-
<%
card.element.split(/\s+/).forEach(function(el) {
%>
<%
});
%>
<% } else if (card.element !== '') { %>
- Element
<% } %>
<% if (card.attack !== '') { %>
- Attack
<% } %>
<% if (card.defense !== '') { %>
- Defense
<% } %>
<% if (card.power !== '') { %>
- Power
<% } %>
- Image
- <%= card.credit %>
<% if (card.ability_name !== '') { %>
- Ability
-
- <%- card.ability_name %>
- <%-
card.ability_text
.replace(/EMPOWER/g, '')
.replace(/{CHAOS}/g, '')
.replace(/{LAW}/g, '')
.replace(/{AIR}/g, '')
.replace(/{EARTH}/g, '')
.replace(/{FIRE}/g, '')
.replace(/{WATER}/g, '')
.replace(/{OLD_ONES}/g, '')
%>
<% } else if (card.ability_text !== ''){ %>
- Ability
- <%- card.ability_text.replace('EMPOWER', '') %>
<% } %>
<% if (card.flavor !== '') { %>
- Flavor
- <%- card.flavor %>
<% } %>
<% if ((card.wp && card.wp !== '') || (card.lc && card.lc !== '')) { %>
- Learn More
-
<% if (card.wp && card.wp !== '') { %>
Wikipedia
<% } %>
<% if (card.wp && card.wp !== '' && card.lc && card.lc !== '') { %>
·
<% } %>
<% if (card.lc && card.lc !== '') { %>
Lovecraft Wiki
<% } %>
<% } %>
- Copyright
- © <%= card.copyright_year %> <%= card.copyright_owner %>
<% } %>