Actions

Template

Difference between revisions of "PullQuote"

From Stephentown Genealogy: Roots & More

m
Line 1: Line 1:
 
<blockquote class="toccolours" style="float:none; padding: 10px 15px 10px 15px; display:table;"> {{{1|{{Lorem}}}}}
 
<blockquote class="toccolours" style="float:none; padding: 10px 15px 10px 15px; display:table;"> {{{1|{{Lorem}}}}}
  
{{#if:{{{2|Author}}}
+
{{#if: {{{2|<noinclude>Author</noinclude>}}}
  |<p style="text-align: right;"> — {{{2}}}{{#if:{{{3|Title}}}
+
  |<p style="text-align: right;"> — {{{2}}}{{#if:{{{3|<noinclude>Title</noinclude>}}}
 
   |, ''{{{3}}}''
 
   |, ''{{{3}}}''
  }}{{#if:{{{4|Publication}}}
+
  }}{{#if:{{{4|<noinclude>Publication</noinclude>}}}
 
   |, {{{4}}}
 
   |, {{{4}}}
 
  }}</p>
 
  }}</p>

Revision as of 01:55, 18 June 2018

Cras imperdiet arcu nibh, vitae consectetur tellus tempus nec. Aliquam.

— {{{2}}}, {{{3}}}, {{{4}}}


Usage

{{PullQuote}} formats a light left border for short quoted material and has options for Author, Title and Publication data.

  • You should not put quotation marks around the quote.


  • {{Quotation|Quoted material|Author|Title|Publication}}

Template:Quotation

  • {{Quotation|Quoted material|Author||skip italics to use '' '' for italics}}

Template:Quotation

  • {{Quotation|Quoted material|Author|Title|}}

Template:Quotation


  • {{Quotation|Quoted material}}

Template:Quotation

The equal sign (=)

If any of the parameters include an equal sign, this will make the template not recognize the parameter properly. To fix this the parameter needs to be prefixed with "1=", "2=", etc., depending on which parameter this applies to.

TemplateData

Template:TemplateDataHeader

<templatedata> {

 "description": "insert description here",
 "params": {
   "1": {
     "label": "Quoted material",
     "description": "",
     "type": "string",
     "required": true
   },
   "2": {
     "label": "Author",
     "description": "",
     "type": "string",
     "required": false
   },
   "3": {
     "label": "Title",
     "description": "",
     "type": "string",
     "required": false
   },
   "4": {
     "label": "Publication",
     "description": "Use <ref> and Template:Cite book etc.",
     "type": "string",
     "required": false
   }
 }

} </templatedata>

See also

Template:Quotation templates see also