Template:Quote: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
| 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="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%;" | ''{{#if: {{{4|}}}|{{{3}}}|{{{2}}}}}''
| style="padding-bottom: 2px; width: 100%;" | ''{{#if: {{{4|}}}|{{{3}}}|{{{2}}}}}''
| style="white-space:nowrap;" | {{#if: {{{4|}}}|''{{{4}}}''|{{#if: {{{3|}}}|''{{{3}}}''|}}}}
| style="white-space:nowrap;" | {{#if: {{{4|}}}|{{#switch: {{{4}}}
| - = &nbsp;
| ''{{{4}}}''
}}|{{#if: {{{3|}}}|''{{{3}}}''|}}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
Should any quoting of longer texts need to be done, use this template.
Should any quoting of longer texts need to be done, use this template.
Line 17: Line 20:
   '''<source>''' =  From where the quote originated, usually add a reference link.
   '''<source>''' =  From where the quote originated, usually add a reference link.


{{eyecatch|Note|Due to some coding restrictions specification of the indent level is only possible if you define a <source>, if you do not have one, then simply keep that parameter '''empty'''!}}
{{eyecatch|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 a invisible non-breaking space)!}}


==Examples==
==Examples==
Line 26: Line 29:
{{quote|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 [http://www.google.com Google] Homepage}}
{{quote|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 [http://www.google.com Google] Homepage}}


  <nowiki>{{quote|2|Foo2|...|-}}</nowiki> - Indent level 2, <source> is empty!
  <nowiki>{{quote|2|Foo2|...|-}}</nowiki> - Indent level 2, <source> placeholder - used!
{{quote|2|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|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|-}}



Revision as of 16:58, 6 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>.
       <#> =  Number 0 (min) to 6 (max), defines indentation level.
    <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.
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 a invisible non-breaking space)!

Examples

{{quote|DerIdiot|...}}
DerIdiot ...
{{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|2|Foo2|...|-}} - Indent level 2, <source> 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|1|Alien|...|Wikipedia}} - Indent level 1 with <source>!
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 Wikipedia