Difference between revisions of "Template:ElementDescription"

From The Fansus
Jump to: navigation, search
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="element-description" style="background-color: #fefffc; border-radius: 6px; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6); display: inline-block; margin-left: 50px; width: 550px; position: relative;">
+
<includeonly><div class="element-description" style="background-color: #fefffc; border-radius: 6px; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6); display: inline-block; margin-left: 50px; width: 550px; position: relative; text-align: left;">
   <div class="element-description-image" style="height: 90px; margin-bottom: 26px; overflow: hidden; width: 90px; position: relative; right: 30px; top: 5px; border: solid 2px #000000; border-radius: 6px; box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6); transform: rotate(-4deg); z-index: 10;">{{#ifexist: {{{image|}}} | [[{{{image}}}|90x90px]] | [[File:FNORD.png|90x90px|link=]] }}</div>
+
   <div class="element-description-image" style="height: 90px; margin-bottom: 26px; overflow: hidden; position: absolute; width: 90px; left: -30px; top: 5px; border: solid 2px #000000; border-radius: 6px; box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6); transform: rotate(-4deg); z-index: 10;">{{#ifexist: {{{image|}}} | [[{{{image}}}|90x90px]] | [[File:FNORD.png|90x90px|link=]] }}</div>
   <div class="element-description-body" class="overflow: hidden; position: relative;">
+
   <div class="element-description-body" style="min-height: 110px; overflow: hidden; padding: 0px 10px 10px 75px; position: relative;">
 
     <div class="paper-texture" style="position: absolute; bottom: 0px; top: 0; right: 0; left: 0; opacity: 0.2; pointer-events: none;"></div>
 
     <div class="paper-texture" style="position: absolute; bottom: 0px; top: 0; right: 0; left: 0; opacity: 0.2; pointer-events: none;"></div>
     <div class="element-description-title" style="font-family: 'Philosopher', serif; font-size: 24px; font-weight: 900; height: 24px; line-height: 1; position: absolute; top: 5px; left: 75px;">{{{title|title}}}</div>
+
     <div class="element-description-title" style="font-family: 'Philosopher', serif; font-size: 24px; font-weight: 900; line-height: 1; margin: 10px 0;">{{{title|title}}}</div>
     <div class="element-description-description" 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|description.}}}</div>
+
     <div class="element-description-description" style="overflow: hidden; font-family: 'Philosopher', serif; font-size: 18px; font-weight: normal; color: #64A9A4; line-height: 1.1;">{{{description|description.}}}</div>
 
   </div>
 
   </div>
 
   <div class="element-description-aspects" style="background-color: #ddd5be; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; box-sizing: border-box; color: #348694; display: flex; flex-direction: row-reverse; font-family: 'Philosopher', serif; font-size: 22px; font-weight: bold; padding: 7px; position: relative; overflow: hidden;">
 
   <div class="element-description-aspects" style="background-color: #ddd5be; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; box-sizing: border-box; color: #348694; display: flex; flex-direction: row-reverse; font-family: 'Philosopher', serif; font-size: 22px; font-weight: bold; padding: 7px; position: relative; overflow: hidden;">
Line 13: Line 13:
 
             |{{{aspect{{#var: i }}}}}
 
             |{{{aspect{{#var: i }}}}}
 
           }}
 
           }}
           <div style="display: inline-block; margin-left: 10px;">[[File:{{#var: aspect}}.png|frameless|32x32px|link=:Category:{{#var: aspect}}|{{#var: aspect}}]] <span style="vertical-align: middle;">{{{quantity{{#var: i }}|}}}</span></div>
+
           <div style="display: inline-block; margin-left: 10px;">[[File:{{#var: aspect}}.png|frameless|32x32px|link=:Category:{{#var: aspect}} {{#switch: {{{fansus|}}}|1=|2=(Vol. II)|3=(Vol. III)}}|{{#var: aspect}}]] <span style="vertical-align: middle;">{{{quantity{{#var: i }}|}}}</span></div>
 
           {{#vardefine: i
 
           {{#vardefine: i
 
             |{{#expr:{{#var: i }} + 1}}
 
             |{{#expr:{{#var: i }} + 1}}
Line 22: Line 22:
 
</div></includeonly><noinclude>The '''ElementDescription''' template can be used to insert a Cultist Simulator-styled full description element (e.g. an acquaintance, an expedition, etc.).
 
</div></includeonly><noinclude>The '''ElementDescription''' template can be used to insert a Cultist Simulator-styled full description element (e.g. an acquaintance, an expedition, etc.).
  
'''Usage:''' Copy the code below, adding as many aspects and quantities as you wish. Quantities are optional, and leaving them out implies a quantity of one.
+
'''Usage:''' Copy the code below, adding as many aspects and quantities as you wish. Quantities are optional, and leaving them out implies a quantity of one. If the element belongs to a Fansus other than the first one, also specify the fansus argument with the number (1, 2, 3...).
  
 
<pre>{{ElementDescription
 
<pre>{{ElementDescription
Line 30: Line 30:
 
|aspect0    =
 
|aspect0    =
 
|quantity0  =
 
|quantity0  =
 +
|fansus      =
 
}}</pre>
 
}}</pre>
  
Line 43: Line 44:
 
|aspect3    = Knock
 
|aspect3    = Knock
 
|quantity3  = 10
 
|quantity3  = 10
 +
|fansus      = 2
 
}}</pre>
 
}}</pre>
  
Line 55: Line 57:
 
|aspect4    = Knock
 
|aspect4    = Knock
 
|quantity4  = 10
 
|quantity4  = 10
}}</noinclude>
+
|fansus      = 2
 +
}}
 +
 
 +
[[Category:Top-level templates]]</noinclude>

Latest revision as of 12:18, 28 August 2018

The ElementDescription template can be used to insert a Cultist Simulator-styled full description element (e.g. an acquaintance, an expedition, etc.).

Usage: Copy the code below, adding as many aspects and quantities as you wish. Quantities are optional, and leaving them out implies a quantity of one. If the element belongs to a Fansus other than the first one, also specify the fansus argument with the number (1, 2, 3...).

{{ElementDescription
|image       =
|title       =
|description =
|aspect0     =
|quantity0   =
|fansus      =
}}

Example:

{{ElementDescription
|image       = File:Neville.png
|title       = Neville, a Key
|description = In his dreams, Neville sees the flaws where the world and its ways can be opened.
|aspect0     = Mortal
|aspect1     = Follower
|aspect2     = Disciple
|aspect3     = Knock
|quantity3   = 10
|fansus      = 2
}}
FNORD.png
Neville, a Key
In his dreams, Neville sees the flaws where the world and its ways can be opened.
Mortal
Follower
Disciple
Exalted
Knock 10