Template:Quotationbox: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<!--
* This is the template used to make quotationboxes. Use it when you want to insert a long quotation of an other author. If you only have a short quotation do to, please prefer the [[Template:Quotation |Quotation template]].
  N'insérer AUCUN blanc ou saut de ligne avant < noinclude > ou après < /noinclude >.
-->
* This is the template used to make comments. Don't use it too frequently, i.e. use the discussion page to discuss. This template is meant for authors to say something about the status of a section or maybe an article
* Please do not edit this template, unless you know what you do and you have a good idea on how templates work.
* Please do not edit this template, unless you know what you do and you have a good idea on how templates work.


== Usage for authors ==
== Usage for authors ==
You can get this banner by inserting the following template in your article (usually at the beginning):
You can get this banner by inserting the following template in your article (usually at the beginning):
* '''<nowiki>{{Quotationbox | Your message ..... }}</nowiki>'''
* '''<nowiki>{{Quotationbox |Your message ..... }}</nowiki>'''
[[fr:Modèle:Citation]]
* '''<nowiki>{{Quotationbox |1= Your message ..... }}</nowiki>''' (for use in the visual editor)
* '''<nowiki>{{Quotationbox |text= Your message ..... |auth= Citation information }}</nowiki>'''
 
Make sure to put the closing <nowiki>"}}"</nowiki> on a new line or the parser may produce bad XHTML for a reason I don't understand.
 
[[fr:Modèle:Citation encadrée]]
[[Category:Templates]]
[[Category:Templates]]
== Rendering in an article ==
== Rendering in an article ==
This is how the comment will appear in an article:
This is how the comment will appear in an article:
* Source:
;Source:
<nowiki>{{Quotationbox | Here is a nice quotation.  
<nowiki>{{Quotationbox | Here is a nice quotation.  
* Here is a nice quotation. Here is a nice quotation.  
* Here is a nice quotation. Here is a nice quotation.  
* Here is a nice quotation. }}</nowiki>
* Here is a nice quotation.
* Result:
}}</nowiki>
{{Quotationbox | Here is a nice quotation.  
;Result
<div style="padding:2px;border-style:dotted;border-width:thin;margin-left:1em;margin-right:1em;margin-top:0.5em;margin-bottom:0.5em;" class="citation">
Here is a nice quotation.  
* Here is a nice quotation. Here is a nice quotation.  
* Here is a nice quotation. Here is a nice quotation.  
* Here is a nice quotation. }}
* Here is a nice quotation.  
</noinclude>
</div>
<includeonly><div style="padding:2px;border-style:dotted;border-width:thin;margin-left:1em;margin-right:1em;margin-top:0.5em;margin-bottom:0.5em;" class="citation">''{{{1}}}''</div></includeonly>
</noinclude><includeonly>
<div style="padding:2px;border-style:dotted;border-width:thin;margin-left:1em;margin-right:1em;margin-top:0.5ex;margin-bottom:0.5ex;">
{{#if:{{{1|}}}|{{{1|}}}}}{{#if:{{{text}}}|{{{text|}}}}}{{#if:{{{auth|}}}|<br> - <em>{{{auth|}}}</em>}}</div></includeonly>

Latest revision as of 18:01, 8 July 2019

  • This is the template used to make quotationboxes. Use it when you want to insert a long quotation of an other author. If you only have a short quotation do to, please prefer the Quotation template.
  • Please do not edit this template, unless you know what you do and you have a good idea on how templates work.

Usage for authors

You can get this banner by inserting the following template in your article (usually at the beginning):

  • {{Quotationbox |Your message ..... }}
  • {{Quotationbox |1= Your message ..... }} (for use in the visual editor)
  • {{Quotationbox |text= Your message ..... |auth= Citation information }}

Make sure to put the closing "}}" on a new line or the parser may produce bad XHTML for a reason I don't understand.

Rendering in an article

This is how the comment will appear in an article:

Source

{{Quotationbox | Here is a nice quotation. * Here is a nice quotation. Here is a nice quotation. * Here is a nice quotation. }}

Result

Here is a nice quotation.

  • Here is a nice quotation. Here is a nice quotation.
  • Here is a nice quotation.