Template:Quote: Difference between revisions

m
Added indentation parameter.
mNo edit summary
m (Added indentation parameter.)
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|}}}|''{{{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.


==Syntax==
==Syntax==
The template can have '''2''' or '''3 parameters''':
The template can have '''2''' to '''4 parameters''':
#{{m|quote{{!}}<user>{{!}}<quote>}} - User with his quote.
#{{m|quote{{!}}<user>{{!}}<quote>}} - User with his quote.
#{{m|quote{{!}}<user>{{!}}<quote>{{!}}<source>}} - Add a right-aligned reference.
#{{m|quote{{!}}<user>{{!}}<quote>{{!}}<source>}} - Add a right-aligned reference.
#{{m|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.
     '''<user>''' =  The name (nick) of the user you are quoting.
     '''<quote>''' =  The user's quoted text.
     '''<quote>''' =  The user's quoted text.
   '''<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'''!}}


==Examples==
==Examples==
Line 21: Line 25:
  <nowiki>{{quote|Ninjamask|...|see [http://www.google.com Google] Homepage}}</nowiki>
  <nowiki>{{quote|Ninjamask|...|see [http://www.google.com Google] Homepage}}</nowiki>
{{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!
{{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|}}
<nowiki>{{quote|1|Alien|...|Wikipedia}}</nowiki> - Indent level 1 with<source>!
{{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|Wikipedia}}


[[Category:Template]]</noinclude>
[[Category:Template]]</noinclude>
1,633

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.