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

Content deleted Content added
imported>SMcCandlish
imported>SMcCandlish
→‎Parameters: clearer documentation
लाइन 18:
{{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 otherwise any inclusion of the {{=}} character (e.g. in a URL in a source citation) will break the template.
 
{{para|author}} a.k.a. {{para|2}} – Author/speaker attribution information that will appear below the quotation, and preceded with an attribution dash.
 
{{para|title}} a.k.a. {{para|3}} – Title of the work the quote appears in. This parameter immediately follows the output of {{para|author}} (and an auto-generated comma);, if one is provided. itIt does not auto-italicize. Major works (books, plays, albums, feature films, etc.) should be italicized; minor works (articles, chapters, poems, songs, TV episodes, etc.) go in quotation marks {{crossref|(see [[MOS:TITLES]])}}. BothSecondary citation information can be givenprovided atin once:a fourth parameter, {{para|source|"The Aerodynamics of Shaved Weasels", <nowiki>''Perspectives on Mammal Barbering''</nowiki>, 2016}}., Alternativelybelow, secondarywhich informationwill canappear beafter providedthe in a fourth parameter, belowtitle.
 
{{para|source}} a.k.a. {{para|4}} – Can optionally be used for additional source information, after {{para|title}}, like so: {{para|title|"The Aerodynamics of Shaved Weasels"}}{{para|source|<nowiki>''Perspectives on Mammal Barbering''</nowiki>, 2016}}; a comma will be auto-generated between the two parameters. If {{para|source}} is used without {{para|title}}, it simply acts as {{para|title}}. <small>(This parameter was added primarily to ease conversion from misuse of the [[pull quote]] template {{tlx|Quote frame}} for block quotation, but it may aid in cleaner meta-data implementation later.)</small>
 
{{para|character}} a.k.a. {{para|char}} – to attribute fictional speech to a fictional character, {{em|with}} other citation information. Can also be used to attribute real speech to a specific speaker, e.g. in a roundtable/panel transcript, a band interview, etc. This parameter outputs "[{{Var|Character's name}}], in" after the attribution dash and before the output of the parameters above, thus one or more of those parameters must also be supplied. If you need to cite a fictional speaker in an article about a single work of fiction, where repeating the author and title information would be redundant, you can just use the {{para|author}} parameter instead of {{para|character}}.
 
Technically, all citation information can be given in a single parameter, as in:
{{para|source|Anonymous interview subject, in Jane G. Arthur, "The Aerodynamics of Shaved Weasels", <nowiki>''Perspectives on Mammal Barbering''</nowiki> (2016), Bram Xander Yojimbo (ed.)}}
But this is a bit messy, and will impede later efforts to generate metadata from quotation citations the way we are already doing with source citations. This is much more usable:
<code><nowiki>|character=Anonymous interview subject |author=Jane G. Arthur |title="The Aerodynamics of Shaved Weasels" |source=''Perspectives on Mammal Barbering'' (2016), Bram Xander Yojimbo (ed.)</nowiki></code>
Later development can assign a CSS <code>class</code> and so forth to these separate parameters, upon which scripts would be able to operate (e.g. to look up things in WikiQuote).
 
==Reference citations==