Difference between revisions of "Template:CampaignQuestHeader"
Jump to navigation
Jump to search
>Seraii |
>Discoomastar |
||
| Line 36: | Line 36: | ||
<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 | | | {{#ifexist: {{PAGENAME}}/Normal | | | ||
| − | <div style="position: relative; top: 0px; left: 0px; display:inline-block;"> | + | <div style="position: relative; top: 0px; left: 0px; display:inline-block;">{{#css: |
| − | + | .CQH-thumbnail { | |
| + | 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 45: | Line 54: | ||
<div class="panel-body" style="padding:5px"> | <div class="panel-body" style="padding:5px"> | ||
{{#ifeq: {{{PreviousQuest|}}}| | | | {{#ifeq: {{{PreviousQuest|}}}| | | | ||
| − | <div style="position:absolute;bottom: | + | <div style="position:absolute;bottom:-2empx;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 51: | Line 60: | ||
}} | }} | ||
{{#ifeq: {{{NextQuest|}}}| | | | {{#ifeq: {{{NextQuest|}}}| | | | ||
| − | <div style="position:absolute;bottom: | + | <div style="position:absolute;bottom:-2empx;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 79: | Line 88: | ||
<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> | ||
| − | {{{Dialogue|}}} | + | {{#css: |
| + | |||
| + | .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><!-- | ||
| + | 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. | ||
| + | --></div> | ||
</div> | </div> | ||
}} | }} | ||
</div>[[Category:Quests]] [[Category:Campaign Quests]]</includeonly> | </div>[[Category:Quests]] [[Category:Campaign Quests]]</includeonly> | ||
Revision as of 08:15, 17 May 2019
This template defines the table "CampaignQuestHeaders". This table has not been created yet.