Template:Quote: Difference between revisions
From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (test?) |
m (added usage info and a category) |
||
Line 2: | Line 2: | ||
:<span {{#if:{{{3|}}}|title="Source: {{{3}}}"|}}>{{#if:{{{noquote|}}}||"}}''{{{1}}}''{{#if:{{{trans|}}}||"}}</span> | :<span {{#if:{{{3|}}}|title="Source: {{{3}}}"|}}>{{#if:{{{noquote|}}}||"}}''{{{1}}}''{{#if:{{{trans|}}}||"}}</span> | ||
:―{{{2}}}<span class="noprint">{{#if:{{{audio|}}}| — [[File:Gnome-speakernotes.png|20px|(audio)]][[Media:{{{audio}}}|Listen]] <small>([[:File:{{{audio}}}|file info]])</small>|}}{{#if:{{{url|}}}|<sup class="plainlinks">[{{{url|}}} <nowiki>[src]</nowiki>]</sup>|{{#if:{{{3|}}}|<sup>[[{{{3|}}}|[src]]]</sup>|}}}}</span></div><noinclude>__NOTOC__ | :―{{{2}}}<span class="noprint">{{#if:{{{audio|}}}| — [[File:Gnome-speakernotes.png|20px|(audio)]][[Media:{{{audio}}}|Listen]] <small>([[:File:{{{audio}}}|file info]])</small>|}}{{#if:{{{url|}}}|<sup class="plainlinks">[{{{url|}}} <nowiki>[src]</nowiki>]</sup>|{{#if:{{{3|}}}|<sup>[[{{{3|}}}|[src]]]</sup>|}}}}</span></div><noinclude>__NOTOC__ | ||
=== Usage Instructions === | |||
'''Code''': <nowiki>{{Quote|dialogue|attribution|source}}</nowiki> | |||
* In case the source is an url, add an optional parameter, |url=, where you enter the source url. | |||
* The source is optional. If you leave that parameter blank, it will not show up on your page. | |||
* If any text is assigned to the source field, it will be rendered as a browser tooltip. | |||
=== Examples === | |||
==== URL Source ==== | |||
'''Code''': <nowiki>{{Quote|I am your father.|Darth Vader|url=http://starwars.wikia.com/wiki/Star_Wars_Episode_V:_The_Empire_Strikes_Back}}</nowiki> | |||
'''Result''': {{Quote|I am your father.|Darth Vader|url=http://starwars.wikia.com/wiki/Star_Wars_Episode_V:_The_Empire_Strikes_Back}} | |||
=== See also === | |||
*[[:Template:Dialogue]] (for unsourced dialogue) | |||
*[[:Template:Dialogue2]] (for sourced dialogue) | |||
[[Category:Utility templates|{{PAGENAME}}]]</noinclude> |
Revision as of 18:28, 9 May 2014
- "{{{1}}}"
- ―{{{2}}}
Usage Instructions
Code: {{Quote|dialogue|attribution|source}}
- In case the source is an url, add an optional parameter, |url=, where you enter the source url.
- The source is optional. If you leave that parameter blank, it will not show up on your page.
- If any text is assigned to the source field, it will be rendered as a browser tooltip.
Examples
URL Source
Code: {{Quote|I am your father.|Darth Vader|url=http://starwars.wikia.com/wiki/Star_Wars_Episode_V:_The_Empire_Strikes_Back}}
Result:
- "I am your father."
- ―Darth Vader
See also
- Template:Dialogue (for unsourced dialogue)
- Template:Dialogue2 (for sourced dialogue)