Vorlage:Tweet: Unterschied zwischen den Versionen

Boldly updating to use {{Quote box}} internally. I've checked the testcases and tested manually. If this breaks an article though, feel free to revert.
(Undid revision 984195793 by Anne drew Andrew and Drew (talk))
(Boldly updating to use {{Quote box}} internally. I've checked the testcases and tested manually. If this breaks an article though, feel free to revert.)
Zeile 1: Zeile 1:
<includeonly><blockquote class="{{#if:{{{left|}}}|floatleft|floatright}}" style="max-width: 100%; width: 500px; min-width: 220px; background-color: #F9F9F9; padding: 10px; border-radius: 4px; border: 1px solid #dbdbdb; font-size: .9375rem; line-height: 1.3333;
<includeonly>{{Quote box|align={{#if: {{{left|}}}|left|{{#if: {{{block|}}}|none|right}}}}|width={{#if: {{{block|}}}|{{{width|500px}}}|{{{width|220px}}}}}|quote={{#if: {{{name|}}}||{{Formatting error|Missing <u>name</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
    {{#if: {{{block|}}}
        |display: block; margin: 12.25px 40px; max-width: {{{width|500px}}};
        |{{#if: {{{left|}}}
            |clear: left; float: left; margin: 0.5em 1.4em 0.8em 0;
            |clear: right; float: right; margin: 0.5em 0 0.8em 1.4em;
        }} max-width: {{{width|220px}}};
    }}">
    {{#if: {{{name|}}}||{{Formatting error|Missing <u>name</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#if: {{{username|}}}||{{Formatting error|Missing <u>username</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#if: {{{username|}}}||{{Formatting error|Missing <u>username</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#if: {{{date|}}}||{{Formatting error|Missing <u>date</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#if: {{{date|}}}||{{Formatting error|Missing <u>date</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
Zeile 19: Zeile 11:
         ||{{Formatting error|<u>reference</u> or <u>ID</u> parameter required.<br>|nocategory={{{nocategory|}}}}}
         ||{{Formatting error|<u>reference</u> or <u>ID</u> parameter required.<br>|nocategory={{{nocategory|}}}}}
     }}
     }}
     <table role="presentation" style="line-height: 1em; width: 100%; font-size: 90%;">
     <table role="presentation" style="line-height: 1em; width: 100%;">
         <tr>
         <tr>
             {{#if: {{{image|}}}
             {{#if: {{{image|}}}
Zeile 32: Zeile 24:
         </tr>
         </tr>
         <tr>
         <tr>
             <td style="color: #4C545C; white-space: nowrap; font-size: .0.822rem;">@{{{username|}}}</td>
             <td style="color: #4C545C; white-space: nowrap;">@{{{username|}}}</td>
         </tr>
         </tr>
     </table>
     </table>
     {{#if: {{{replyto|}}}|
     {{#if: {{{replyto|}}}|
         <div style="color: #4C545C; font-size: 85%;">
         <div style="color: #4C545C; font-size: 95%;">
            Replying to @{{{replyto|}}}
Replying to @{{{replyto|}}}
         </div>
         </div>
     |}}
     |}}
     {{#if: {{{lang|{{{language|}}}}}}
     {{#if: {{{lang|{{{language|}}}}}}
         |<div style='font-size: 90%; color: #1c2022; text-align: left'>
         |<div style='color: #1c2022; text-align: left'>
            {{lang-{{{lang|{{{language|}}}}}}|{{{text|}}}}}
{{lang-{{{lang|{{{language|}}}}}}|{{{text|}}}}}
         </div>
         </div>
         |<div style='font-size: 90%; color: #1c2022; text-align: left'>
         |<div style='color: #1c2022; text-align: left'>
            {{{text|}}}
{{{text|}}}
         </div>
         </div>
     }}
     }}
     {{#if: {{{translation|}}}|
     {{#if: {{{translation|}}}|
         <hr style="height: 0; border: 0; border-top: 1px solid #aaa; margin: 10px 0 10px 0;">
         <hr style="height: 0; border: 0; border-top: 1px solid #aaa; margin: 10px 0 10px 0;">
         <div style="font-size: 90%;">
         <div>
            {{{translation|}}}
{{{translation|}}}
         </div>
         </div>
     |}}
     |}}
     <div style="color: #4C545C; font-size: 90%;">
     <div style="color: #4C545C;">
        {{{date|}}}<!--
{{{date|}}}<!--
     -->{{{reference|{{{ref
     -->{{{reference|{{{ref
             |{{#tag:ref|{{cite tweet|user= {{{username}}} |author= {{{name|}}} |number= {{{ID|{{{id|}}}}}} |date= {{{date}}} |title= {{#invoke:String|replace|{{{text}}}|%s+| |plain=false}} }} }}
             |{{#tag:ref|{{cite tweet|user= {{{username}}} |author= {{{name|}}} |number= {{{ID|{{{id|}}}}}} |date= {{{date}}} |title= {{#invoke:String|replace|{{{text}}}|%s+| |plain=false}} }} }}
         }}}}}}
         }}}}}}
     </div>
     </div>
</blockquote></includeonly><noinclude>
}}
</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>