Difference between revisions of "Template:Card with description"

From The Fansus
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
<div style="font-family: 'Philosopher', serif; font-size: 24px; font-weight: 900; height: 24px; line-height: 1; position: absolute; top: 5px; left: 75px;">{{{title}}}</div>
 
<div style="font-family: 'Philosopher', serif; font-size: 24px; font-weight: 900; height: 24px; line-height: 1; position: absolute; top: 5px; left: 75px;">{{{title}}}</div>
 
<div style="height 100px; width: 470px; overflow: hidden; position: absolute; top: 35px; left: 75px; font-family: 'Philosopher', serif; font-size: 18px; font-weight: normal; color: #64A9A4; line-height: 1.1;">{{{description}}}</div>
 
<div style="height 100px; width: 470px; overflow: hidden; position: absolute; top: 35px; left: 75px; font-family: 'Philosopher', serif; font-size: 18px; font-weight: normal; color: #64A9A4; line-height: 1.1;">{{{description}}}</div>
<div style="background-color: #ddd5be; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; box-sizing: border-box; display: flex; flex-direction: row-reverse; height: 46px; padding: 7px; position: relative;">{{Aspect|{{{Aspect1}}}||30}}</div>
+
<div style="background-color: #ddd5be; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; box-sizing: border-box; display: flex; flex-direction: row-reverse; height: 46px; padding: 7px; position: relative;">{{Aspect|{{{Aspect1}}}|{{{quantity}}}|30}}{{#if:{{{Aspect2|}}}|<div style="padding-right: 5px">{{Aspect|{{{Aspect2}}}|{{{quantity2}}}|30}}</div>}}</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>
Line 13: Line 13:
 
| description =
 
| description =
 
| Aspect1    =
 
| Aspect1    =
 +
| quantity    =
 +
| Aspect2    =
 +
| quantity2  =
 
}}</pre>
 
}}</pre>
  
Line 20: Line 23:
 
| title      = Neville, an acquaintance
 
| title      = Neville, an acquaintance
 
| description = Neville pauses before he speaks, and flinches easily. He laughs whenever he thinks you've made a joke. [You might be able to recruit this acquaintance as a follower.]
 
| description = Neville pauses before he speaks, and flinches easily. He laughs whenever he thinks you've made a joke. [You might be able to recruit this acquaintance as a follower.]
| Aspect1    = Moth
+
| Aspect1     = Knock
 +
| quantity    = 3
 +
| Aspect2     = Moth
 +
| quantity2  = 5
 +
}}
 +
 
 +
<pre>{{Card with description
 +
| image      =
 +
| title      =
 +
| description =
 +
| Aspect1    =
 +
| quantity    =
 +
}}</pre>
 +
 
 +
{{Card with description
 +
| image      = File:Neville.png
 +
| title      = Neville, an acquaintance
 +
| description = Neville pauses before he speaks, and flinches easily. He laughs whenever he thinks you've made a joke. [You might be able to recruit this acquaintance as a follower.]
 +
| Aspect1    = Knock
 +
| quantity    = 3
 
}}
 
}}

Latest revision as of 06:48, 18 July 2018


{{Card with description
| image       =
| title       =
| description =
| Aspect1     =
| quantity    =
| Aspect2     =
| quantity2   =
}}

example card:

FNORD.png
Neville, an acquaintance
Neville pauses before he speaks, and flinches easily. He laughs whenever he thinks you've made a joke. [You might be able to recruit this acquaintance as a follower.]
Knock3
Moth5


{{Card with description
| image       =
| title       =
| description =
| Aspect1     =
| quantity    =
}}
FNORD.png
Neville, an acquaintance
Neville pauses before he speaks, and flinches easily. He laughs whenever he thinks you've made a joke. [You might be able to recruit this acquaintance as a follower.]
Knock3