Template:Quote: Difference between revisions

m (Added a working user name, 1px border like eyecatch. Alas it is not possible to recolour links, i.e. the user name.)
mNo edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| style="background: #E8E8E8; border: 1px solid #D8D8D8;"
<includeonly>{{#if: {{{4|}}}|{{indent|{{{1}}}}}|}}{| style="background: #E8E8E8; border: 1px solid #D8D8D8;"
| style="background:white; padding-bottom:2px; padding-left: 8px; padding-right:8px; white-space:nowrap;" | <span style="color: black; font-weight: bold;">[[User:{{{1}}}|{{{1}}}]]</span>
| style="background:white; padding-bottom:2px; padding-left: 8px; padding-right:8px; white-space:nowrap;" | <span style="color: black; font-weight: bold;">[[User:{{#if: {{{4|}}}|{{{2}}}|{{{1}}}}}|{{#if: {{{4|}}}|{{{2}}}|{{{1}}}}}]]</span>
| style="padding-bottom: 2px; width: 100%;" | ''{{{2}}}''
| style="padding-bottom: 2px; width: 100%;" | ''{{#if: {{{4|}}}|{{{3}}}|{{{2}}}}}''
| style="white-space:nowrap;" | {{#if: {{{3|}}}|''{{{3}}}''|}}
| style="white-space:nowrap;" | {{#if: {{{4|}}}|{{#switch: {{{4}}}
|}</includeonly><noinclude>
| - =  
Should any quoting of longer texts need to be done, use this template.
| ''{{{4}}}''
 
}}|{{#if: {{{3|}}}|''{{{3}}}''|}}}}
==Syntax==
|}</includeonly><noinclude>{{{{PAGENAME}}/doc}}[[Category:Template]]</noinclude>
The template can have '''2''' or '''3 parameters''':
#{{m|quote{{!}}<user>{{!}}<quote>}} - User with his quote.
#{{m|quote{{!}}<user>{{!}}<quote>{{!}}<source>}} - Add a right-aligned reference.
 
    '''<user>''' =  The name (nick) of the user you are quoting.
    '''<quote>''' =  The user's quoted text.
  '''<source>''' =  From where the quote originated, usually add a reference link.
 
==Examples==
<nowiki>{{quote|DerIdiot|...}}</nowiki>
{{quote|DerIdiot|...}}
 
<nowiki>{{quote|Ninjamask|...|see [http://www.google.com Google] Homepage}}</nowiki>
{{quote|Ninjamask|...|see [http://www.google.com Google] Homepage}}
 
[[Category:Template]]</noinclude>

Latest revision as of 12:16, 10 May 2009

Should any quoting of longer texts need to be done, use this template.

Syntax

The template can have 2 to 4 parameters:

  1. {{quote|<user>|<quote>}} - User with his quote.
  2. {{quote|<user>|<quote>|<source>}} - Add a right-aligned reference.
  3. {{quote|<#>|<user>|<quote>|<source>}} - Indentation only for quotes with <source>.
    <user> =  The name (nick) of the user you are quoting.
   <quote> =  The user's quoted text.
  <source> =  From where the quote originated, usually add a reference link.
       <#> =  Number 0 (min) to 6 (max), defines indentation level.
Note Due to coding restrictions specification of the indent level is only possible if you define a <source>, if you do not have one, then enter a - (minus) as placeholder (it will be replaced by with nothing)!

Examples

{{quote|Der Idiot|...}}
Der Idiot ...
{{quote|Ninjamask|...|see [http://www.google.com Google] Homepage}}
Ninjamask ... blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah ... see Google Homepage
{{quote|1|Foo2|...|-}} - Indent level 1, <source> = "empty" placeholder - used!
Foo2 blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
{{quote|2|Alien|...|Wikipedia}} - Indent level 2 with <source>!
Alien blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah Wikipedia
MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.