Template:Quote2: Difference between revisions

From Subnautica Wiki
(Fixed font)
Tag: sourceedit
m (remove includeonly)
Tag: 2017 source edit
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<div class="image" style=" background: #0D2337;
<div class="image" style=" background: #0D2337;
border: 1.5px solid #0f5376;
border: 1.5px solid #0f5376;
Line 8: Line 7:
padding: 20px 30px 20px 90px;
padding: 20px 30px 20px 90px;
position: relative;
position: relative;
max-width: 380px;
width: 55%;
margin: 0 0 1em;
margin: 0 0 1em;
min-height: 94px;">
min-height: 94px;">
Line 14: Line 13:
left: 5px;
left: 5px;
top: 50%;
top: 50%;
margin-top: -35px;">[[File:QuoteBar.png]]</div>
margin-top: -35px;">[[File:QuoteBar.png|link=]]</div>
<div class="icon" style=" position: absolute;
<div class="icon" style=" position: absolute;
left: 30px;
left: 30px;
top: 50%;
top: 50%;
margin-top: -25px;">[[File:TestQuoteIcon.png]]</div>
margin-top: -25px;">[[File:TestQuoteIcon.png|link=]]</div>
<div class="content">
<div class="content">
<p style=" margin: 0 0 .6em;
<p style=" margin: 0 0 .6em;
font-family: PTSans-Regular;
font-family: 'PT Sans', sans-serif;
font-size: 14px;" {{#if:{{{3|}}}|title="Source:&nbsp;{{{3}}}"|}}>
font-size: 14px;" {{#if:{{{3|}}}|title="Source:&nbsp;{{{3}}}"|}}>
{{{1|}}}</p>
''{{#ifexist: {{{1|}}}|[[{{{1|ERROR: Text is not in input and is missing!}}}]]|{{{1|ERROR: Text is not in input and is missing!}}}}}''</p>
<p style=" margin: 0 0 .6em;
<p style=" margin: 0 0 .6em;
font-family: PTSans-Regular;
font-family: 'PT Sans', sans-serif;
font-size: 14px;">
font-size: 14px;">
&#8213; {{#ifexist:{{{2|}}}|[[{{{2|Unknown}}}]]|{{{2|Unknown}}}}}{{#if:{{{3|}}}|, [[{{{3}}}|{{#ifexist: {{{4|}}}|{{{4|{{{3}}}}}}|{{{4|{{{3}}}}}}}}]]}}</p></div>
&#8213; {{{2|}}}{{#if:{{{3|}}}|, {{{3}}}}}</p></div>
<div class="icon" style=" position: absolute;
<div class="icon" style=" position: absolute;
right: 6px;
right: 6px;
top: 50%;
top: 50%;
transform: rotate(180deg);
transform: rotate(180deg);
margin-top: -35px;">[[File:QuoteBar.png]]
margin-top: -35px;">[[File:QuoteBar.png|link=]]
</div>
</div>
</div>
</div>
</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Templates]]
</noinclude>
</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