mNo edit summary |
No edit summary |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly> |
||
⚫ | |||
+ | <!-- Split description --> |
||
− | <onlyinclude><div style="display: inline-block; position: relative; border-radius: 0px; background-color:none; width: 300px; height: 420px; margin: 0px; overflow: hidden; float: {{#if:{{{left|}}}|left|right}};"> |
||
+ | {{#if:{{{description|}}}| |
||
+ | {{#vardefine:desc|{{#replace:{{{description}}}|{{!}}||}}}} <!-- Whole text description --> |
||
+ | {{#vardefine:nubegin|{{#rpos:{{#var:desc}}|{}}}} <!-- Number of character one before the { (wich marks the values) --> |
||
+ | {{#vardefine:start|{{#sub:{{#var:desc}}|0|{{#var:nubegin}}}}}} <!-- The first half of the text description til the { --> |
||
+ | {{#vardefine:remains|{{#explode:{{#var:desc}}|{|-1}}}} <!-- All the remaining character including the values --> |
||
+ | {{#vardefine:base|{{#explode:{{#var:remains}}|&|0}}}} <!-- The base value (first value in the {} block) --> |
||
+ | {{#vardefine:remains2|{{#explode:{{#var:remains}}|}|0}}}} <!-- Only the inner block of {}, so x|x --> |
||
+ | {{#vardefine:step|{{#explode:{{#var:remains2}}|;|-1}}}} <!-- The step value (second value in the {} block) --> |
||
+ | {{#vardefine:end|{{#explode:{{#var:desc}}|}|-1}}}} <!-- The second half of the text description after } --> |
||
+ | {{#vardefine:desc1|{{#replace:{{#var:start}}|{{!}}||}}}} <!-- Whole start description --> |
||
− | <!-- Card Image --> |
||
+ | {{#vardefine:nubegin1|{{#rpos:{{#var:desc1}}|{}}}} <!-- Number of character one before the { (wich marks the values) --> |
||
− | <div style="position: absolute; z-index: 0; top: 44px; left: 0px; right: 0; text-align: center;">[[File:{{{image|Card {{{name}}}.png}}}|220px|link={{{name}}}]]</div> |
||
+ | {{#ifeq:{{#var:nubegin1}}|-1|| |
||
+ | {{#vardefine:start|{{#sub:{{#var:desc1}}|0|{{#var:nubegin1}}}}}} <!-- The first half of the text description til the { --> |
||
+ | {{#vardefine:remains1|{{#explode:{{#var:desc1}}|{|-1}}}} <!-- All the remaining character including the values --> |
||
+ | {{#vardefine:base2|{{#explode:{{#var:remains1}}|&|0}}}} <!-- The base value (first value in the {} block) --> |
||
+ | {{#vardefine:remains3|{{#explode:{{#var:remains1}}|}|0}}}} <!-- Only the inner block of {}, so x|x --> |
||
+ | {{#vardefine:step2|{{#explode:{{#var:remains3}}|;|-1}}}} <!-- The step value (second value in the {} block) --> |
||
+ | {{#vardefine:mid|{{#explode:{{#var:desc1}}|}|-1}}}} |}} |}} <!-- The second half of the text description after } --> |
||
− | <!-- |
+ | <!-- Page Text --> |
− | {{#if:{{{ |
+ | {{#if:{{{cat|}}}|<span style="float:right; color: white; text-transform: uppercase; position: relative; font: bold 18px Montserrat;">{{#ifeq:{{{cat}}}|Armor / Weapon|[[File:WeaponAttack {{{champion|}}} Icon.png|40px|link={{{champion|}}}#Skills]]|[[File:Ability {{{cat}}}.png|40px|link={{{champion|}}}#Skills]]}} {{{cat}}}</span>||}} |
⚫ | |||
− | <!-- Card Name --> |
||
+ | <br><br> |
||
− | <div style="position: absolute; z-index: 2; top: 210px; left: 1px; right: 0; text-align: center; color: white; text-transform: uppercase; font-weight: bold; font-size: 15px; text-shadow: -1px 0 0.2em black, 0 1px 0.2em black, 1px 0 0.2em black, 0 -1px 0.2em black; font-family: TruenoRg;">{{{name|{{PAGENAME}}}}}</div> |
||
+ | '''Description'''<br> |
||
− | |||
+ | {{{description|}}} |
||
− | <!-- Card Rarity and Frame --> |
||
+ | <!-- Cards and tabs for rarities --> |
||
− | {{#if:{{{points|}}}| <div style="position: absolute; z-index: 2; top: 13px; left: 125px; right: 0;">[[File:TransparentChampion-icon.png|50px|link=|{{#switch:{{{points}}}| 1 = Common| 2 = Uncommon| 3 = Rare| 4 = Epic| 5 = Legendary}}]]</div> }} |
||
+ | <div style="text-align: right;"><tabber>Common= |
||
− | |||
+ | {{CardsOB67Box |
||
− | <div style="position: absolute; z-index: 1; top: 0px; left: 15px;">[[File:CardSkin Frame OB67 {{{frame type}}} {{#if:{{{points|}}}|{{#switch:{{{points}}}| 1 = Common| 2 = Uncommon| 3 = Rare| 4 = Epic| 5 = Legendary}}|Common|}}.png|270px|link=]]</div> |
||
+ | |name={{{name}}} |
||
− | |||
+ | |image={{{image}}} |
||
− | <!-- Description --> |
||
+ | |frame type={{{frame type}}} |
||
− | <div style="position: absolute; z-index: 1; height: 120px; top: 245px; left: 74px; right: 75px; word-wrap: break-word; text-align: center; color: black; font-size: 12px; font-family: TruenoRg;">{{{description}}}</div> |
||
+ | |champion={{#if:{{{champion|}}}|{{{champion|}}}|}} |
||
− | |||
+ | |points=1 |
||
− | <!-- Points Cost --> |
||
+ | |cooldown={{#if:{{{cooldown|}}}|{{{cooldown|}}}|}} |
||
− | {{#if:{{{points|}}} | <div title="Points" style="position: absolute; z-index: 1; top: 360px; left: 32px; right: 227px; text-align: center; color: white; font-size: 28px; font-weight: bold; font-family: TruenoRg;">{{{points}}}</div> }} |
||
+ | |startdescription={{#var:start}} |
||
− | |||
+ | |middescription={{#var:mid}} |
||
− | <!-- Cooldown --> |
||
+ | |enddescription={{#var:end}} |
||
− | {{#if:{{{cooldown|}}} | <div title="Cooldown" style="position: absolute; z-index: 2; top: 360px; left: 120px; right: 121px; text-align: center; color: black; font-size: 14px; font-weight: bold; font-family: TruenoRg;">[[File:Cooldown Icon.png|text-bottom|15px|link=]]{{{cooldown}}}</div> }} |
||
+ | |base={{#ifeq:{{#var:base}}||0|{{#var:base}}}} |
||
− | </div> |
||
+ | |step={{#ifeq:{{#var:step}}||0|{{#var:step}}}} |
||
⚫ | |||
+ | |base2={{#ifeq:{{#var:base2}}|||{{#var:base2}}}} |
||
+ | |step2={{#ifeq:{{#var:step2}}|||{{#var:step2}}}} |
||
+ | }} |
||
+ | |-|Uncommon= |
||
+ | {{CardsOB67Box |
||
+ | |name={{{name}}} |
||
+ | |image={{{image}}} |
||
+ | |frame type={{{frame type}}} |
||
+ | |champion={{#if:{{{champion|}}}|{{{champion|}}}|}} |
||
+ | |points=2 |
||
+ | |cooldown={{#if:{{{cooldown|}}}|{{{cooldown|}}}|}} |
||
+ | |startdescription={{#var:start}} |
||
+ | |middescription={{#var:mid}} |
||
+ | |enddescription={{#var:end}} |
||
+ | |base={{#ifeq:{{#var:base}}||0|{{#var:base}}}} |
||
+ | |step={{#ifeq:{{#var:step}}||0|{{#var:step}}}} |
||
+ | |base2={{#ifeq:{{#var:base2}}|||{{#var:base2}}}} |
||
+ | |step2={{#ifeq:{{#var:step2}}|||{{#var:step2}}}} |
||
+ | }} |
||
+ | |-|Rare= |
||
+ | {{CardsOB67Box |
||
+ | |name={{{name}}} |
||
+ | |image={{{image}}} |
||
+ | |frame type={{{frame type}}} |
||
+ | |champion={{#if:{{{champion|}}}|{{{champion|}}}|}} |
||
+ | |points=3 |
||
+ | |cooldown={{#if:{{{cooldown|}}}|{{{cooldown|}}}|}} |
||
+ | |startdescription={{#var:start}} |
||
+ | |middescription={{#var:mid}} |
||
+ | |enddescription={{#var:end}} |
||
+ | |base={{#ifeq:{{#var:base}}||0|{{#var:base}}}} |
||
+ | |step={{#ifeq:{{#var:step}}||0|{{#var:step}}}} |
||
+ | |base2={{#ifeq:{{#var:base2}}|||{{#var:base2}}}} |
||
+ | |step2={{#ifeq:{{#var:step2}}|||{{#var:step2}}}} |
||
+ | }} |
||
+ | |-|Epic= |
||
+ | {{CardsOB67Box |
||
+ | |name={{{name}}} |
||
+ | |image={{{image}}} |
||
+ | |frame type={{{frame type}}} |
||
+ | |champion={{#if:{{{champion|}}}|{{{champion|}}}|}} |
||
+ | |points=4 |
||
+ | |cooldown={{#if:{{{cooldown|}}}|{{{cooldown|}}}|}} |
||
+ | |startdescription={{#var:start}} |
||
+ | |middescription={{#var:mid}} |
||
+ | |enddescription={{#var:end}} |
||
+ | |base={{#ifeq:{{#var:base}}||0|{{#var:base}}}} |
||
+ | |step={{#ifeq:{{#var:step}}||0|{{#var:step}}}} |
||
+ | |base2={{#ifeq:{{#var:base2}}|||{{#var:base2}}}} |
||
+ | |step2={{#ifeq:{{#var:step2}}|||{{#var:step2}}}} |
||
+ | }} |
||
+ | |-|Legendary= |
||
+ | {{CardsOB67Box |
||
+ | |name={{{name}}} |
||
+ | |image={{{image}}} |
||
+ | |frame type={{{frame type}}} |
||
+ | |champion={{#if:{{{champion|}}}|{{{champion|}}}|}} |
||
+ | |points=5 |
||
+ | |cooldown={{#if:{{{cooldown|}}}|{{{cooldown|}}}|}} |
||
+ | |startdescription={{#var:start}} |
||
+ | |middescription={{#var:mid}} |
||
+ | |enddescription={{#var:end}} |
||
+ | |base={{#ifeq:{{#var:base}}||0|{{#var:base}}}} |
||
+ | |step={{#ifeq:{{#var:step}}||0|{{#var:step}}}} |
||
+ | |base2={{#ifeq:{{#var:base2}}|||{{#var:base2}}}} |
||
+ | |step2={{#ifeq:{{#var:step2}}|||{{#var:step2}}}} |
||
+ | }}</tabber></div> |
||
+ | </includeonly> |
||
⚫ |
Revision as of 16:45, 10 January 2021
Documentation
[purge]
Documentation
Code
{{CardsOB67 |name=<<name>> |image=<<image file>> |frame type=<<frame type>> |champion=<<champion>> |description=<<description>> }}
Usage
- name: The name of this card.
- image file: Picture of the Card with file extension.
- frame type: Look of the Frame. Could be one of this:
- Silver (standard)
- Gold
- champion: Champion`s name.
- description: The in-game description of the card.
Example
{{CardsOB67 |name=End Of An Era |image=Card End Of An Era.jpg |cat=Hardening |champion=Yagorath |frame type=Silver |description=Increase the efficacy of Hardening by {20{{!}}20}% but reduce its duration by {10{{!}}10}%. }}
Result
End Of An Era is one of the Cards available to Yagorath in Paladins.
Description
Increase the efficacy of Hardening by {20|20}% but reduce its duration by {10|10}%.
A Change of Faith is one of the Cards available to Vora in Paladins.
Description
Reduce the Cooldown of Tendril by {0.6|0.6}s after hitting an enemy with Dark Siphon.