Difference between revisions of "Template:Quote"
m |
m |
||
Line 1: | Line 1: | ||
<blockquote class="templatequote">{{{text|{{{quote|{{{1|<noinclude><span style="color:blue">'''''Quote''': {{lorem ipsum}}''</span></noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}}}}{{#if:{{{sign|{{{cite|{{{2|<noinclude>TRUE</noinclude>}}}}}}}}} | <blockquote class="templatequote">{{{text|{{{quote|{{{1|<noinclude><span style="color:blue">'''''Quote''': {{lorem ipsum}}''</span></noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}}}}{{#if:{{{sign|{{{cite|{{{2|<noinclude>TRUE</noinclude>}}}}}}}}} | ||
− | |<div class="templatequotecite">—{{{sign|{{{cite|{{{2|<noinclude>[[Someone's full name| | + | |<div class="templatequotecite">—{{{sign|{{{cite|{{{2|<noinclude>[[Someone's full name|Username]]</noinclude>}}}}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}} |
|, <cite>{{{source|{{{3|<noinclude>Source</noinclude>}}}}}}</cite> | |, <cite>{{{source|{{{3|<noinclude>Source</noinclude>}}}}}}</cite> | ||
}}</div> | }}</div> | ||
Line 10: | Line 10: | ||
* Copy and paste: | * Copy and paste: | ||
− | <pre>{{quote|citing phrase or stament| | + | <pre>{{quote|citing phrase or stament|username}}</pre> |
=== Example === | === Example === | ||
− | <pre>{{quote|This is the original text|Username}}</pre> | + | <pre>{{quote|This is the original text|[[User:Username|Username}}</pre> |
Gives: | Gives: | ||
− | {{quote|This is the original text|Username}} | + | {{quote|This is the original text|[[User:Username]]|source}} |
{{documentation}} | {{documentation}} | ||
<!-- Add cats and interwikis to the /doc subpage, not here! --> | <!-- Add cats and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 07:16, 23 September 2017
Quote: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
—Username, Source
Usage
- Copy and paste:
{{quote|citing phrase or stament|username}}
Example
{{quote|This is the original text|[[User:Username|Username}}
Gives:
This is the original text
—User:Username, source
Use
This template adds a block quotation to an article page.
It is a simplified version of Wikipedia's Template:Blockquote.
Parameters
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
Unnamed parameters (normal size)
{{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
{{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.
Size
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!
The above documentation is transcluded from Template:Quote/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |