Difference between revisions of "Template:Quote/doc"

From RimWorld Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
== Use ==
 
This template adds a [[wikipedia:block quotation|block quotation]] to an article page.
 
This template adds a [[wikipedia:block quotation|block quotation]] to an article page.
 +
 +
It is a simplified version of Wikipedia's [[wikipedia:Template:Blockquote|Template:Blockquote]].
  
 
== Parameters ==
 
== Parameters ==
 +
This template doesn't need the parameters to be named if kept in the right order:
 +
 +
<pre>{{quote|Quote text|A name|A source|Size}}</pre>
 +
 +
Nevertheless, they can be named if some values do not exist, or contain special characters (e.g. "<code>=</code>" inside a web address).
 +
 +
Note that the "source" will display a comma and a space in front of it, so it needs to be preceded by an "author".
 +
 
<pre>
 
<pre>
 
{{Quote
 
{{Quote
 
| text  =
 
| text  =
| sign =
+
| author =
 
| source =
 
| source =
| size =  
+
| size   =
 +
| large  =
 
}}
 
}}
 
</pre>
 
</pre>
  
*<code>text</code> is the text to quote.
+
* <code>text</code>: the text to quote.
**<code>quote</code> can be substituted for <code>text</code>
+
* <code>author</code>: its author.
*<code>sign</code> is its author.
+
* <code>source</code>: the source of the quote (internal or external links can be used).
**<code>cite</code> can be substituted for <code>sign</code>
+
* <code>size</code>: the prefered font size in pixels (should <u>not</u> be used in articles).
*<code>source</code> is the source of the quote (internal or external links can be used).
+
* <code>large</code>: used to display the quote in a bigger size (used on top of articles principally). Any value will activate it, but preferably use "yes".
*<code>size</code> is the prefered font size, entered as a number
 
 
 
Alternatively, the same parameters can be entered unnamed, in the following pattern:
 
 
 
<pre>{{quote|Quote text|A name|A source|size}}</pre>
 
  
 
== Examples ==
 
== Examples ==
=== Basic use ===
+
=== Unnamed parameters (normal size) ===
 
<pre>
 
<pre>
{{quote
+
{{Quote | Legends say that an old thrumbo is the wisest creature in the universe – it simply chooses not to speak | Thrumbo description| RimWorld }}
| text = Fast human-sized combat mechanoids built for medium and long-range combat. Their bodies are light, making them vulnerable targets at close range - especially in melee combat.
 
}}
 
 
</pre>
 
</pre>
 
produces:
 
produces:
{{quote
+
{{Quote | Legends say that an old thrumbo is the wisest creature in the universe – it simply chooses not to speak | Thrumbo description| RimWorld }}
| text = Fast human-sized combat mechanoids built for medium and long-range combat. Their bodies are light, making them vulnerable targets at close range - especially in melee combat.
+
Note the gap between the quote the following paragraph.
}}
 
  
=== Author displayed ===
+
=== Large ===
 
<pre>
 
<pre>
{{quote
+
{{Quote
| text = The best historians of the Ordo Historia believe that humanity first left its origin planet Earth about 3,400 years ago.
+
| text   = We want the Ludeon community to be enjoyable, informative, and inviting to as many people as possible, while also supporting respectful disagreement, unpopular views, and edgy content that is posted in good faith.
| sign = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
+
| author = Tynan Sylvester (RimWorld Developer)
 +
| source = "[https://ludeon.com/forums/index.php?topic=40838.msg405535#msg405535 Ludeon community rules]", ''ludeon.com/forums''
 +
| large  = yes
 
}}
 
}}
 
</pre>
 
</pre>
 
produces:
 
produces:
{{quote
+
{{Quote
| text = The best historians of the Ordo Historia believe that humanity first left its origin planet Earth about 3,400 years ago.
+
| text   = We want the Ludeon community to be enjoyable, informative, and inviting to as many people as possible, while also supporting respectful disagreement, unpopular views, and edgy content that is posted in good faith.
| sign = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
+
| author = Tynan Sylvester (RimWorld Developer)
 +
| source = "[https://ludeon.com/forums/index.php?topic=40838.msg405535#msg405535 Ludeon community rules]", ''ludeon.com/forums''
 +
| large  = yes
 
}}
 
}}
  
=== Author and source displayed ===
 
<pre>
 
{{quote
 
| text = We want the Ludeon community to be enjoyable, informative, and inviting to as many people as possible, while also supporting respectful disagreement, unpopular views, and edgy content that is posted in good faith.
 
| sign = Tynan Sylvester (RimWorld Developer)
 
| source = "[https://ludeon.com/forums/index.php?topic=40838.msg405535#msg405535 Ludeon community rules]", ludeon.com/forums
 
}}
 
</pre>
 
produces:
 
{{quote
 
| text = We want the Ludeon community to be enjoyable, informative, and inviting to as many people as possible, while also supporting respectful disagreement, unpopular views, and edgy content that is posted in good faith.
 
| sign = Tynan Sylvester (RimWorld Developer)
 
| source = "[https://ludeon.com/forums/index.php?topic=40838.msg405535#msg405535 Ludeon community rules]", ludeon.com/forums
 
}}
 
 
=== Size ===
 
=== Size ===
 +
{{error|Not to be used in articles.}}
 
<pre>
 
<pre>
{{quote
+
{{Quote
| text = We realize this may be a lot to take in. However, don’t worry. People just like you live full lives in our universe, and our studies have indicated that the great majority of cryptosleepers do adapt within a few years and make good lives for themselves. So - welcome!  
+
| text   = We realize this may be a lot to take in. However, don’t worry. People just like you live full lives in our universe, and our studies have indicated that the great majority of cryptosleepers do adapt within a few years and make good lives for themselves. So - welcome!  
| sign = "Welcome!"
+
| author = "Welcome!"
 
| source = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
 
| source = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
| size = 10
+
| size   = 10
 
}}
 
}}
 
</pre>
 
</pre>
 
produces:
 
produces:
{{quote
+
{{Quote
| text = We realize this may be a lot to take in. However, don’t worry. People just like you live full lives in our universe, and our studies have indicated that the great majority of cryptosleepers do adapt within a few years and make good lives for themselves. So - welcome!  
+
| text   = We realize this may be a lot to take in. However, don’t worry. People just like you live full lives in our universe, and our studies have indicated that the great majority of cryptosleepers do adapt within a few years and make good lives for themselves. So - welcome!  
| sign = "Welcome!"
+
| author = "Welcome!"
 
| source = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
 
| source = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
| size = 10
+
| size   = 10
 
}}
 
}}
<includeonly>
+
 
[[Category:Templates]]
+
<noinclude>[[Category:Template documentation]]</noinclude>
</includeonly>
+
<includeonly>[[Category:Formatting templates]]</includeonly>

Latest revision as of 13:50, 17 August 2022

Use[edit]

This template adds a block quotation to an article page.

It is a simplified version of Wikipedia's Template:Blockquote.

Parameters[edit]

This template doesn't need the parameters to be named if kept in the right order:

{{quote|Quote text|A name|A source|Size}}

Nevertheless, they can be named if some values do not exist, or contain special characters (e.g. "=" inside a web address).

Note that the "source" will display a comma and a space in front of it, so it needs to be preceded by an "author".

{{Quote
| text   =
| author =
| source =
| size   =
| large  =
}}
  • text: the text to quote.
  • author: its author.
  • source: the source of the quote (internal or external links can be used).
  • size: the prefered font size in pixels (should not be used in articles).
  • large: used to display the quote in a bigger size (used on top of articles principally). Any value will activate it, but preferably use "yes".

Examples[edit]

Unnamed parameters (normal size)[edit]

{{Quote | Legends say that an old thrumbo is the wisest creature in the universe – it simply chooses not to speak | Thrumbo description| RimWorld }}

produces:

Legends say that an old thrumbo is the wisest creature in the universe – it simply chooses not to speak

—  Thrumbo description,   RimWorld

Note the gap between the quote the following paragraph.

Large[edit]

{{Quote
| text   = We want the Ludeon community to be enjoyable, informative, and inviting to as many people as possible, while also supporting respectful disagreement, unpopular views, and edgy content that is posted in good faith.
| author = Tynan Sylvester (RimWorld Developer)
| source = "[https://ludeon.com/forums/index.php?topic=40838.msg405535#msg405535 Ludeon community rules]", ''ludeon.com/forums''
| large  = yes
}}

produces:

We want the Ludeon community to be enjoyable, informative, and inviting to as many people as possible, while also supporting respectful disagreement, unpopular views, and edgy content that is posted in good faith.

— Tynan Sylvester (RimWorld Developer),  "Ludeon community rules", ludeon.com/forums

Size[edit]

Not to be used in articles.

{{Quote
| text   = We realize this may be a lot to take in. However, don’t worry. People just like you live full lives in our universe, and our studies have indicated that the great majority of cryptosleepers do adapt within a few years and make good lives for themselves. So - welcome! 
| author = "Welcome!"
| source = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
| size   = 10
}}

produces:

We realize this may be a lot to take in. However, don’t worry. People just like you live full lives in our universe, and our studies have indicated that the great majority of cryptosleepers do adapt within a few years and make good lives for themselves. So - welcome!

— "Welcome!",  Cryptosleep Revival Briefing