Editing Template:Quote/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
== Use ==
+
== Usage ==
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]].
+
* Copy and paste:
  
== Parameters ==
+
<pre>{{quote|citing phrase or stament|name}}</pre>
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>
+
=== Example ===
  
Nevertheless, they can be named if some values do not exist, or contain special characters (e.g. "<code>=</code>" inside a web address).
+
<pre>{{quote|This is the original text|A name|A source}}</pre>
  
Note that the "source" will display a comma and a space in front of it, so it needs to be preceded by an "author".
+
Gives:
  
<pre>
+
{{quote|This is the original text|A name|A source}}
{{Quote
+
 
| text   =
+
They can also be used to quote non-people, and accept links
| author =
+
 
| source =
+
<pre>{{quote|The best historians of the Ordo Historia believe that humanity first left its origin planet Earth about 3,400 years ago.|"The basics"|[[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]}}</pre>
| size  =
+
 
| large  =
+
Gives:
}}
+
 
</pre>
+
{{quote|The best historians of the Ordo Historia believe that humanity first left its origin planet Earth about 3,400 years ago.|"The basics"|[[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]}}
 +
 
 +
The fourth parameter sets font size.
 +
<pre>{{quote|This text is smaller|A small name|A small source|10}}</pre>
  
* <code>text</code>: the text to quote.
+
Gives:
* <code>author</code>: its author.
 
* <code>source</code>: the source of the quote (internal or external links can be used).
 
* <code>size</code>: the prefered font size in pixels (should <u>not</u> be used in articles).
 
* <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".
 
  
== Examples ==
+
{{quote|This text is smaller|A small name|A small source|10}}
=== Unnamed parameters (normal size) ===
 
<pre>
 
{{Quote | Legends say that an old thrumbo is the wisest creature in the universe – it simply chooses not to speak | Thrumbo description| RimWorld }}
 
</pre>
 
produces:
 
{{Quote | 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 ===
 
<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.
 
| 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>
 
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.
 
| author = Tynan Sylvester (RimWorld Developer)
 
| source = "[https://ludeon.com/forums/index.php?topic=40838.msg405535#msg405535 Ludeon community rules]", ''ludeon.com/forums''
 
| large  = yes
 
}}
 
  
=== Size ===
+
Lastly, parameters can be set by name instead of by argument position.
{{error|Not to be used in articles.}}
 
 
<pre>
 
<pre>
{{Quote
+
{{quote|text=This is text|cite=this is the name|source=this is the source|size=10}}
| 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!
+
{{quote|quote=This is also the text|sign=this is also the name}}</pre>
| author = "Welcome!"
 
| source = [[Lore#Cryptosleep Revival Briefing|Cryptosleep Revival Briefing]]
 
| size   = 10
 
}}
 
</pre>
 
produces:
 
{{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
 
}}
 
  
<noinclude>[[Category:Template documentation]]</noinclude>
+
Gives:
<includeonly>[[Category:Formatting templates]]</includeonly>
+
{{quote|text=This is text|cite=this is the name|source=this is the source|size=10}}
 +
{{quote|quote=This is also the text|sign=this is also the name}}

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: