टेम्पलेट:Quote/doc: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>SMcCandlish
reorganizing
imported>SMcCandlish
→‎Synopsis: rewriting to reflect actual usage needs
लाइन 11:
 
=== Synopsis ===
'''Unnamed (positional) parameters'''
<code><nowiki>{{quote|phrase|person|source}}</nowiki></code>
This markup will fail if any parameter contains an equals sign (<code>=</code>).
 
;Basic use:
'''Numbered (positional) parameters'''
<code><nowiki>{{quote|1=phrase|2=person|3=source}}</nowiki></code>
 
<code><nowiki>{{quoteQuote|phrasetext=Quoted material. |person|sourceauthor=Attribution}}</nowiki></code>
'''Named parameters'''
 
<code><nowiki>{{quote|text=phrase|author=person|source=source}}</nowiki></code>
;Typical uses:
 
#<code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015): {{quote |text=Quoted material.<ref>...</ref>}}</nowiki></code>
#<code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015):<ref>...</ref> {{quote |text=Quoted material.}}</nowiki></code>
#<code><nowiki>One expert noted: {{quote |text=Quoted material. |author=Pat Doe, "A New Model of Underwater Basketweaving" (2015)<ref>...</ref>}}</nowiki></code>
 
=== Parameters ===
 
{{para|text}} a.k.a. {{para|1}} The material being quoted, without quotation marks around it. It is always safest to name this parameter (rather than use an unnamed positional parameter), because any inclusion of the {{=}} character (e.g. in a URL in a source citation) will otherwise break the template.
 
{{para|author}} a.k.a. {{para|2}} Attribution information that will appear below the quotation.
 
{{para|source}} a.k.a. {{para|3}} Title of the major work the quote appears in. This parameter (which immediately follows the output of {{para|author}}) is rarely used, and auto-italicizes all content within it. It is used for the title (alone) of a book, periodical, filmic work, stage production or the like, not for minor works {{crossref|(see [[#Attribution]], below, for details)}}.
 
==Attribution==