Difference between revisions of "Template:Story"

From A3! Wiki
(Replaced the {{{text}}} with a {{#switch}}, so you don't need to add the colour of the text, it will be changed based on the {{{troupe}}} value)
Line 13: Line 13:
 
<div class="flex-title" style="margin: auto; max-width: 14rem; padding: 1rem;">[[File:{{{image|}}}|x300px|center|link=]]</div>
 
<div class="flex-title" style="margin: auto; max-width: 14rem; padding: 1rem;">[[File:{{{image|}}}|x300px|center|link=]]</div>
 
<div class="flex-title">
 
<div class="flex-title">
   <div class="flex-title storynav-title" style="background: {{#if: {{{troupe|}}} |var(--{{lc:{{{troupe|}}}}}) | var(--default-light) }}; {{#if: {{{text|}}} | {{#switch: {{{text|}}} | w | white=color: white; | #default= }} | }}">{{{title|}}}</div>
+
   <div class="flex-title storynav-title" style="background: {{#if: {{{troupe|}}} |var(--{{lc:{{{troupe|}}}}}) | var(--default-light) }}; {{#switch: {{{troupe}}}|masumi|banri|juza|omi|tsumugi|tasuku|homare|hisoka|azuma=color: white;|#default=}}">{{{title|}}}</div>
   <div class="grid-chapters {{#if: {{{troupe|}}} | grid-{{lc:{{{troupe|}}}}} | }}">
+
   <div class="grid-chapters {{#if: {{{troupe|}}} | grid-{{lc:{{{troupe|}}}}} |}}">
 
{{{chapters|}}}
 
{{{chapters|}}}
   </div></div></div></includeonly><noinclude>
+
   </div>
 +
</div>
 +
</div>
 +
</includeonly>
 +
<noinclude>
  
 
<pre>
 
<pre>
Line 93: Line 97:
  
 
{{Story
 
{{Story
|troupe=AUTUMN
+
|troupe=juza
 
|image=Prologue.png
 
|image=Prologue.png
 
|title=Prologue
 
|title=Prologue

Revision as of 19:09, 9 January 2023


{{Story
|troupe= (not case sensitive)
|image=Prologue.png
|title=
|chapters=<div>Chapter 1<br>A Very Long Title</div>
<div>Chapter 2<br>Something</div>
<div>Chapter 3<br>Something</div>
<div>Chapter 4<br>Something</div>
}}
Prologue.png
Prologue
Chapter 1
A Very Long Title
Chapter 2
Something
Chapter 3
Something
Chapter 4
Something




Prologue.png
Prologue
Chapter 1
A Very Long Title
Chapter 2
Something
Chapter 3
Something
Chapter 4
Something


Prologue.png
Prologue
Chapter 1
A Very Long Title
Chapter 2
Something
Chapter 3
Something
Chapter 4
Something