Template:Quote: Difference between revisions

From Daniel Larson Wiki
Jump to navigation Jump to search
(Added templatedata to give names parameters because some pillock decided to name them "1", "2", and "3")
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{| style="background:transparent"
 
|-
{{(!}} class="cquote pullquote" role="presentation" {{#if:{{{rtl|}}}|dir="rtl"}} style="{{#switch:{{{float|}}}
{{ #if: {{{3|}}} | {{!}} {{ #if: {{{2|}}} | rowspan="2" {{!}} }} [[File:{{{3}}}|64px]] }}
  | left = float:left
| style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: top;" |
  | right = float:right
| ''{{{1}}}''
  | #default = margin:auto
| style="color: #b2b7f2; font-size: 3.3em; font-family: 'Times New Roman',serif; font-weight: bold; padding: 4px 2px 2px; width: 0.5em; vertical-align: bottom;" | „
  }}; border-collapse: collapse; border: none; background-color: {{{bgcolor|transparent}}}; width: {{#if: {{{wide|}}} | 100% | {{{width|auto}}}}}; {{#if: {{{bgcolor|}}} | border: 1px solid #AAAAAA;}}"
{{#if: {{{2|}}} |  
{{!}} style="width: 20px; vertical-align: top; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{2|20px}}}}}}}}}}}}
{{!}}-
|10px=20px
{{!}} <!-- empty cell -->
|30px=60px
{{!}} style="text-align: right;" {{!}} <small>~ {{{2}}}</small>
|40px=80px
{{!}} <!-- empty cell to prevent potential rendering issues --> }}
|50px=100px
|}</includeonly><noinclude>Usage:<pre>{{Quote|quoted|source|image}}</pre>[[Category:Templates]]<templatedata>
|60px=120px
{
|#default=40px}}; font-family: {{#if:{{{rtl|}}}|Roman|'Times New Roman', Times}}, serif; font-weight: bold; line-height: .6em; text-align: left; padding: {{#if:{{{small|}}}|10px 2px|10px 10px}};" {{!}} {{#if:{{{rtl|}}}|”|“}}
"params": {
{{!}} style="vertical-align: top; border: none;{{#if:{{{rtl|}}}|direction:rtl;}} padding: {{#if:{{{small|}}}|4px 2px|4px 10px}}; {{#ifeq:{{{quotealign|}}}|center|text-align:center;}}" {{!}} {{trim quotes|{{{text|{{{content|{{{quotetext|{{{quote|{{{1|<includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly><noinclude>{{lorem ipsum}}</noinclude>}}}}}}}}}}}}}}}}}
"1": {
{{!}} style="width: 20px; vertical-align: bottom; border: none; color: {{{qcolor|#B2B7F2}}}; font-size: {{#switch:{{{size|{{{quotewidth|{{{width|{{{2|20px}}}}}}}}}}}}
"label": "Quote"
|10px=20px
},
|30px=60px
"2": {
|40px=80px
"label": "Author",
|50px=100px
"example": "Daniel Larson"
|60px=120px
},
|#default=40px}}; font-family: {{#if:{{{rtl|}}}|Roman|'Times New Roman', Times}}, serif; font-weight: bold; line-height: .6em; text-align: right; padding: {{#if:{{{small|}}}|10px 2px|10px 10px}};" {{!}} {{#if:{{{rtl|}}}|“|”}}
"3": {
{{!-}}
"label": "Image",
{{#if:{{{author|{{{personquoted|{{{source|{{{publication|{{{title|{{{quotesource|{{{4|{{{5|}}}}}}}}}}}}}}}}}}}}}}}}|{{#if:{{NAMESPACE}}||[[Category:Articles with attributed pull quotes]]}}
"example": "Image.png"
{{!}} colspan="3" class="cquotecite" style="border: none; padding-right: 4%; font-size: smaller; line-height:normal; text-align: right;" {{!}} <cite>—&#8202;{{#if:{{{author|{{{personquoted|{{{4|}}}}}}}}}|{{{author|{{{personquoted|{{{4}}}}}}}}}{{#if:{{{source|{{{publication|{{{title|{{{quotesource|{{{5|}}}}}}}}}}}}}}}|, {{{source|{{{publication|{{{title|{{{quotesource|{{{5}}}}}}}}}}}}}}}}}|{{#if:{{{source|{{{publication|{{{title|{{{quotesource|{{{5|}}}}}}}}}}}}}}}|{{{source|{{{publication|{{{title|{{{quotesource|{{{5}}}}}}}}}}}}}}}}}}}</cite>
}
}}
}
{{!)}}<!-- {{subst:FULLPAGENAME}} --><noinclude>
}
{{documentation}}
</templatedata></noinclude>
</noinclude>

Latest revision as of 04:49, 19 March 2024