Template:Quote2: Difference between revisions

From Subnautica Wiki
No edit summary
Tag: sourceedit
m (remove includeonly)
Tag: 2017 source edit
 
(40 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div class="image" style=" background: #0D2337;
<div class="quote" style="position:relative;width:57%;background: #091826;padding:3px 24px 3px 0;border-radius:5px;z-index:-1; margin-bottom:10px;"><span class="hoverimage" style="position:absolute;left:0px;top:0px;z-index:-1;">http://vignette3.wikia.nocookie.net/subnautica/images/6/6c/Quotebg.png</span>
border: 1.5px solid #0f5376;
:<span style="margin-left:0px;" {{#if:{{{3|}}}|title="Source:&nbsp;{{{3}}}"|}}>''"{{{1}}}"''</span>
border-radius: 40px;
:<span style="padding-left:0px;"> &#8213;{{{2}}}{{#if:{{{3|}}}|<sup class="noprint">[[{{{3|}}}|[src]]]</sup>}}</span></div><noinclude>
box-shadow: inset 0 0 30px 2px #063e5a;

box-sizing: border-box;
==Usage instructions==
color: #fff;
<pre><nowiki>{{Quote2|quote|attribution|source}}</nowiki></pre>
padding: 20px 30px 20px 90px;

position: relative;
*If any text is assigned to the ''source'' field, it will be rendered as a browser [[Wikipedia:Tooltip|tooltip]].
width: 55%;

margin: 0 0 1em;
==Example==
min-height: 94px;">
====Code====
<div class="icon" style=" position: absolute;
<code><nowiki>{{Quote2|Broadcasting of automated short-range distress signal failed. Life pod communications relay offline. |Intro}}</nowiki></code>
left: 5px;

top: 50%;
====Result====
margin-top: -35px;">[[File:QuoteBar.png|link=]]</div>
{{Quote2|Broadcasting of automated short-range distress signal failed. Life pod communications relay offline. |Intro}}
<div class="icon" style=" position: absolute;

left: 30px;
[[Category:Templates|{{PAGENAME}}]]</noinclude>
top: 50%;
margin-top: -25px;">[[File:TestQuoteIcon.png|link=]]</div>
<div class="content">
<p style=" margin: 0 0 .6em;
font-family: 'PT Sans', sans-serif;
font-size: 14px;" {{#if:{{{3|}}}|title="Source:&nbsp;{{{3}}}"|}}>
{{{1|}}}</p>
<p style=" margin: 0 0 .6em;
font-family: 'PT Sans', sans-serif;
font-size: 14px;">
&#8213; {{{2|}}}{{#if:{{{3|}}}|, {{{3}}}}}</p></div>
<div class="icon" style=" position: absolute;
right: 6px;
top: 50%;
transform: rotate(180deg);
margin-top: -35px;">[[File:QuoteBar.png|link=]]
</div>
</div>
<noinclude>
{{Documentation}}
[[Category:Templates]]
</noinclude>

Latest revision as of 09:09, 3 April 2022

QuoteBar.png
TestQuoteIcon.png

QuoteBar.png

Usage instructions

{{Quote2|quote|attribution|source}}
  • If any text is assigned to the source field, it will be rendered as a browser tooltip.

Example

Code

{{Quote2|Fresh Quote!|Creator|TheyCallMeSpy}}
{{Quote2|This is designed for PDA pop-up logs. And it can expand! Sound cool?|Creator|TheyCallMeSpy}}
{{Quote2|Stalker, come to bite this shiny thing!|Stalker}}
{{Quote2|Detecting an extended debris field.|Dialogue}}

Result

QuoteBar.png
TestQuoteIcon.png

Fresh Quote!

― Creator, TheyCallMeSpy

QuoteBar.png
QuoteBar.png
TestQuoteIcon.png

This is designed for PDA pop-up logs. And it can expand! Sound cool?

― Creator, TheyCallMeSpy

QuoteBar.png
QuoteBar.png
TestQuoteIcon.png

Stalker, come to bite this shiny thing!

― Stalker

QuoteBar.png
QuoteBar.png
TestQuoteIcon.png

Detecting an extended debris field.

― Dialogue

QuoteBar.png