Difference between revisions of "Template:Quote"

From Project: Gorgon Wiki
Jump to: navigation, search
m
(Replaced icon with Item icon, to allow for flexibility. Will rewrite documentation soon.)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<blockquote style="font-style:italic; padding:0 2em 0 1em; margin:1em 0 1em 3.5em; border-left:1px solid #ddd;">
+
<blockquote style="font-style:italic;padding:0 2em 0 1em;margin:1em 0 1em 3.5em;border-left:1px solid #ddd;position:relative;">
  <div style="position: absolute; margin-top:-0.2em; margin-left:-1em; font:bold 3em Times New Roman, Times, Georgia, serif; color:#ddd;">“</div>
+
{{ #if: {{{icon|}}}
 +
| <div style="position:absolute;left:-32px;top:0;margin-left:-8px;"><span class="extimage32px">{{Item icon|{{{icon|}}}}}</span> </div>
 +
| <div style="position:absolute;margin-top:-0.2em;margin-left:-1em;font:bold 3em Times New Roman, Times, Georgia, serif;color:#ddd;">“</div>
 +
}}
 
{{{1|Example quoted text.}}}{{#if: {{{source|}}} |
 
{{{1|Example quoted text.}}}{{#if: {{{source|}}} |
 
<p style="text-align:right; font-size:0.9em;">— {{ #switch: {{ lc: {{{source|}}} }}
 
<p style="text-align:right; font-size:0.9em;">— {{ #switch: {{ lc: {{{source|}}} }}
Line 8: Line 11:
 
}}</p> | }}
 
}}</p> | }}
 
</blockquote><noinclude>
 
</blockquote><noinclude>
{{clear}}
+
{{clear}}__NOTOC__
 
==Description==
 
==Description==
Use this template to quote in-game text and developer text. Often used at top of an NPC article to add a little flavour (lore) to the page. Can also be used to quote developers from blogs/interviews. TLDR: to quote "official" text.
+
'''Quote in-game text (NPC talk, lore items, etc) and official sources'''. Often used at top of an NPC article to add a little flavour (lore) to the page. Can also be used to quote developers from blogs/interviews.
 +
 
 +
==Syntax==
 +
<pre>
 +
{{Quote|source=<source>|icon=<code>|
 +
<quote text>
 +
}}
 +
</pre>
 +
 
 +
==Parameters==
 +
; source
 +
: '''Optional'''. Note that this can contain a link, so you can link to dev blog, or to any other wiki page.
 +
; icon
 +
: OPTIONAL. An icon can be floated to the left, instead of the quote character. Use the codes from [[Item Icons Guide]].
  
 
==Examples==
 
==Examples==
 +
A basic quote without a source:
 
<pre>
 
<pre>
 
{{Quote|
 
{{Quote|
 +
Quoted message goes here.
 +
}}
 +
</pre>
 +
 +
Quoting an NPC, using source to link to their wiki article:
 +
<pre>
 +
{{Quote|source=[[Ukorga]]|
 
Well, well, look what the snow blew in.
 
Well, well, look what the snow blew in.
 
}}
 
}}
 
</pre>
 
</pre>
  
 +
Quoting a developer blog post:
 +
<pre>
 +
{{Quote|source=[http://projectgorgon.com/2014/05/design-issues-still-needing-improvement/ Developer blog]|
 +
I’m leaving the Rage system alone for now, until we have more players grouping up. (...)
 +
}}
 +
</pre>
 +
 +
Quoting an in-game book. Note that we have two named parameters now:
 +
<pre>
 +
{{Quote|source=Second Journal|icon=How To Be An Artist|
 +
Sherzat has gone mad. I tried to reason with her and was banished from our new home! (...)
 +
}}
 +
</pre>
 
{{Link Template Demos}}
 
{{Link Template Demos}}
  
 
[[Category:Formatting templates|Quote]]
 
[[Category:Formatting templates|Quote]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:00, 22 September 2020

Example quoted text.


Description

Quote in-game text (NPC talk, lore items, etc) and official sources. Often used at top of an NPC article to add a little flavour (lore) to the page. Can also be used to quote developers from blogs/interviews.

Syntax

{{Quote|source=<source>|icon=<code>|
<quote text>
}}

Parameters

source
Optional. Note that this can contain a link, so you can link to dev blog, or to any other wiki page.
icon
OPTIONAL. An icon can be floated to the left, instead of the quote character. Use the codes from Item Icons Guide.

Examples

A basic quote without a source:

{{Quote|
Quoted message goes here.
}}

Quoting an NPC, using source to link to their wiki article:

{{Quote|source=[[Ukorga]]|
Well, well, look what the snow blew in.
}}

Quoting a developer blog post:

{{Quote|source=[http://projectgorgon.com/2014/05/design-issues-still-needing-improvement/ Developer blog]|
I’m leaving the Rage system alone for now, until we have more players grouping up. (...)
}}

Quoting an in-game book. Note that we have two named parameters now:

{{Quote|source=Second Journal|icon=How To Be An Artist|
Sherzat has gone mad. I tried to reason with her and was banished from our new home! (...)
}}

Template Demos

There are demonstrations for this template, see Quote Template Demos.