Difference between revisions of "Template:CampaignQuestHeader"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Discoomastar
>Canim44
(#css → #widget/css)
 
(29 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
|ChapterName=String
 
|ChapterName=String
 
|Location=String
 
|Location=String
|Part=Integer
+
|Part=String
 
|SectionName=String
 
|SectionName=String
 
|LocationName=String
 
|LocationName=String
Line 14: Line 14:
 
|PreviousQuest=String
 
|PreviousQuest=String
 
|Summary=Wikitext (size=3000)
 
|Summary=Wikitext (size=3000)
}}</noinclude><includeonly><!--
+
}}</noinclude><includeonly>{{#widget:Template/CampaignQuestHeader/css}}<!--
  
 
-->{{#cargo_store:
 
-->{{#cargo_store:
Line 32: Line 32:
  
 
--><div class="panel" style="margin:auto;max-width:800px">
 
--><div class="panel" style="margin:auto;max-width:800px">
<div class="panel-heading" style="height:25px">
+
<div class="panel-heading">
 
<div style="font-size:small"><div>Campaign: [[Campaign_Quests#Chapter_{{{Chapter}}}:_{{{ChapterName}}}|{{{ChapterName}}}]]</div> </div>
 
<div style="font-size:small"><div>Campaign: [[Campaign_Quests#Chapter_{{{Chapter}}}:_{{{ChapterName}}}|{{{ChapterName}}}]]</div> </div>
 
<div>{{#if: {{{NextQuest2|}}}|<div style="font-size:small">EX: [[{{{NextQuest2}}}]]</div>}}
 
<div>{{#if: {{{NextQuest2|}}}|<div style="font-size:small">EX: [[{{{NextQuest2}}}]]</div>}}
{{#ifexist: {{PAGENAME}}/Normal | |
+
{{Exists|page={{PAGENAME}}/Normal|then=|else=
<div style="position: relative; top: 0px; left: 0px; display:inline-block;">{{#css:
+
<div style="position: relative; top: 0px; left: 0px; display:inline-block;">
.CQH-thumbnail {
+
<div class="CQH-thumbnail">[[File:{{{ThumbnailImage|}}}.png|link=]]</div>
position: relative;
 
top: 0px;
 
left: 0px;
 
}
 
.CQH-thumbnail img {
 
max-width:70vw;
 
height:auto;
 
}
 
}}<div class="CQH-thumbnail">[[File:{{{ThumbnailImage|}}}.png|link=]]</div>
 
 
<div style="position: absolute;width:100%;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 99;color: #fff;text-shadow: -1px -1px 1px #000000, 1px -1px 1px #000000, -1px 1px 1px #000000, 1px 1px 1px #000000;font-size:.8em;">
 
<div style="position: absolute;width:100%;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 99;color: #fff;text-shadow: -1px -1px 1px #000000, 1px -1px 1px #000000, -1px 1px 1px #000000, 1px 1px 1px #000000;font-size:.8em;">
 
<div style="font-size:small">{{#ifeq:{{{Chapter|}}} | | |  Chapter {{{Chapter|?}}} / {{{Location|?}}}-{{{Part|?}}}}}</div>
 
<div style="font-size:small">{{#ifeq:{{{Chapter|}}} | | |  Chapter {{{Chapter|?}}} / {{{Location|?}}}-{{{Part|?}}}}}</div>
Line 54: Line 45:
 
<div class="panel-body" style="padding:5px">
 
<div class="panel-body" style="padding:5px">
 
{{#ifeq: {{{PreviousQuest|}}}| | |
 
{{#ifeq: {{{PreviousQuest|}}}| | |
<div style="position:absolute;bottom:-10em;font-size:smaller">
+
<div style="position:absolute;font-size:smaller">
 
<div style="font-weight:bold">Previous Quest</div>
 
<div style="font-weight:bold">Previous Quest</div>
 
<div>[[{{{PreviousQuest}}}]]</div>
 
<div>[[{{{PreviousQuest}}}]]</div>
Line 60: Line 51:
 
}}
 
}}
 
{{#ifeq: {{{NextQuest|}}}| | |
 
{{#ifeq: {{{NextQuest|}}}| | |
<div style="position:absolute;bottom:-10em;right:5px;font-size:smaller;text-align:right">
+
<div style="position:absolute;right:5px;font-size:smaller;text-align:right">
 
<div style="font-weight:bold">Next Quest</div>
 
<div style="font-weight:bold">Next Quest</div>
 
<div>[[{{{NextQuest}}}]]</div>
 
<div>[[{{{NextQuest}}}]]</div>
Line 67: Line 58:
 
<!-- TODO -->
 
<!-- TODO -->
 
</div>
 
</div>
{{#ifexist: {{PAGENAME}}/Normal |
+
{{Exists|page={{PAGENAME}}/Normal|then=
 
<div class="quest-container" style="margin-top:2em">
 
<div class="quest-container" style="margin-top:2em">
 
{{#tag:tabber|
 
{{#tag:tabber|
 
Normal=
 
Normal=
 
<div>{{:{{PAGENAME}}/Normal}}</div>
 
<div>{{:{{PAGENAME}}/Normal}}</div>
 +
{{Exists|page={{PAGENAME}}/Hard|then=
 
{{!}}-{{!}}
 
{{!}}-{{!}}
 
Hard=
 
Hard=
 
<div>{{:{{PAGENAME}}/Hard}}</div>
 
<div>{{:{{PAGENAME}}/Hard}}</div>
 
}}
 
}}
</div> | {{{Content|}}}
+
{{Exists|page={{PAGENAME}}/Very Hard|then=
 +
{{!}}-{{!}}
 +
Very Hard=
 +
<div>{{:{{PAGENAME}}/Very Hard}}</div>
 +
}}
 +
}}
 +
</div>|else={{{Content|}}}
 
}}
 
}}
 
{{#if:{{{Summary|}}} |  
 
{{#if:{{{Summary|}}} |  
 
<div style="padding:1em;">
 
<div style="padding:1em;">
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Summary</p>
+
<p style="margin:2em auto 15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Summary</p>
 
{{{Summary|}}}
 
{{{Summary|}}}
 
</div>
 
</div>
Line 88: Line 86:
 
<div style="padding:1em;">
 
<div style="padding:1em;">
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Dialogue</p>
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Dialogue</p>
{{#css:
+
<div class="story-dialogue"><div>{{{Dialogue|}}}
 
 
.story-dialogue div > p {
 
    display: flex;
 
    margin-bottom: 1em;
 
    margin-top: 1.5em;
 
}
 
 
 
 
 
.story-dialogue div > p > span,
 
.story-dialogue div > p > a {
 
    margin-right: 1em;
 
    margin-top: -.5em;
 
    flex-shrink: 0;
 
}
 
 
 
}}<div class="story-dialogue"><div>{{{Dialogue|}}}
 
 
</div><!--
 
</div><!--
 
This extra div is apparently needed for stuff to work right. Just leave it. Also, the above line break is needed to make sure the last line doesn't wrap improperly.
 
This extra div is apparently needed for stuff to work right. Just leave it. Also, the above line break is needed to make sure the last line doesn't wrap improperly.

Latest revision as of 22:24, 22 February 2020

This template defines the table "CampaignQuestHeaders". This table has not been created yet.