Vorlage:Tweet: Unterschied zwischen den Versionen

K
168 Versionen von wpen:Template:Tweet importiert
(Wikipedia is not Twitter. We are not supposed to be re-creating their whole UI to clash with Wikipedia's existing default styling for quotes and other templates, especially for font family which is purposely left unspecified; see MOS:FONTFAMILY and the talk page)
K (168 Versionen von wpen:Template:Tweet importiert)
 
(36 dazwischenliegende Versionen von 13 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly><blockquote class="{{#if:{{{left|}}}|floatleft|floatright}}" style="transform: rotate(0deg); 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|style={{#if: {{{block|}}}|margin:1rem 40px;|}}|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|}}}
  -->{{#if: {{{username|}}}||{{Formatting error|Missing <u>username</u> parameter.<br />|nocategory={{{nocategory|}}}}}}}<!--
        |display:block; margin:12.25px 40px; max-width: {{{width|500px}}};
  -->{{#if: {{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}||{{Formatting error|Invalid <u>date</u> parameter.<br />|nocategory={{{nocategory|}}}}}}}<!--
        |{{#if: {{{left|}}}
  -->{{#if: {{{text|}}}||{{Formatting error|Missing <u>text</u> parameter.<br />|nocategory={{{nocategory|}}}}}}}<!--
            |clear:left; float:left; margin:0.5em 1.4em 0.8em 0;
  -->{{#ifeq: {{extract|{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}|show=format}} | dmy
            |clear:right; float:right; margin:0.5em 0 0.8em 1.4em;
         ||{{#ifeq: {{extract|{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}|show=format}} | mdy
        }} max-width: {{{width|220px}}};
             ||{{Formatting error|<u>date</u> parameter should be [[MOS:DATE|reformatted]] to look like:<br />''1 Jan 1970'' or ''Jan 1, 1970''<br />or removed.<br />|nocategory={{{nocategory|}}}}}
    }}">
    {{#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: {{{date|}}}||{{Formatting error|Missing <u>date</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#if: {{{text|}}}||{{Formatting error|Missing <u>text</u> parameter.<br>|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#ifeq: {{extract|{{{date|}}}|show=format}} | dmy
         ||{{#ifeq: {{extract|{{{date|}}}|show=format}} | mdy
             ||{{Formatting error|<u>date</u> parameter should be [[MOS:DATE|reformatted]] to look like:<br>''1 Jan 1970'' or ''Jan 1, 1970''.<br>|nocategory={{{nocategory|}}}}}
           }}
           }}
     }}<!--
     }}<!--
  -->{{#if: {{{ID|{{{id|{{{reference|{{{ref|}}}}}}}}}}}}
  -->{{#if: {{{ID|{{{id|{{{reference|{{{ref|}}}}}}}}}}}}
         ||{{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 style="line-height:1em; width:100%; font-size:90%;">
     <table role="presentation" style="line-height: 1em; width: 100%;">
         <tr>
         <tr>
             {{#if: {{{image|}}}
             {{#if: {{{image|}}}
                 |<td rowspan=2 style="padding-right:5px; width:28px;">
                 |<td rowspan=2 style="padding-right: 5px; width: 28px;">
                     <div style="height: 28px; width: 28px; padding: 0; border-radius: 50%; overflow: hidden;">
                     <div style="height: 28px; width: 28px; padding: 0; border-radius: 50%; overflow: hidden;">
                         [[File:{{{image|}}}|left|28px]]
                         [[File:{{{image|}}}|left|28px]]
Zeile 28: Zeile 20:
                 </td>
                 </td>
             |}}
             |}}
             <th style="text-align:left; white-space:nowrap;">{{{name|}}}</th>    
             <th style="text-align: left; white-space: nowrap;">{{{name|}}}</th>
             <td style="text-align:right; color:#4C545C;">[[Twitter]]</td>
             <td style="text-align: right; color: #4C545C;">[[Twitter]]</td>
         </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|}}}|
         <p style="color:#4C545C; font-size:85%;">
         <div style="color: #4C545C; font-size: 95%;">
            Replying to @{{{replyto|}}}
Replying to @{{{replyto|}}}
         </p>
         </div>
     |}}
     |}}
     {{#if: {{{lang|{{{language|}}}}}}
     {{#if: {{{lang|{{{language|}}}}}}
         |<p style='font-size:90%;color:#1c2022;text-align:left'>
         |<div style='color: #1c2022; text-align: left'>
            {{lang-{{{lang|{{{language|}}}}}}|{{{text|}}}}}
{{lang-{{{lang|{{{language|}}}}}}|{{{text|}}}}}
         </p>
         </div>
         |<p style='font-size:90%;color:#1c2022;text-align:left'>
         |<div style='color: #1c2022; text-align: left'>
            {{{text|}}}
{{{text|}}}
         </p>
         </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;">
         <p style="font-size:90%;" lang="en">
         <div>
            {{{translation|}}}
{{{translation|}}}
         </p>
         </div>
     |}}
     |}}
     <p style="color:#4C545C; font-size:90%;">
     <div style="color: #4C545C;">
        {{{date|}}}<!--
{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}<!--
     -->{{{reference|{{{ref
     -->{{{reference|{{{ref
             |{{#tag:ref|{{cite tweet|user= {{{username}}} |author= {{{name|}}} |number= {{{ID|{{{id|}}}}}} |date= {{{date}}} |title= {{{text}}} }} }}
             |{{#tag:ref|{{cite tweet|user= {{{username}}} |author= {{{name|}}} |last= {{{last|}}} |first= {{{first|}}} |author-link= {{{author-link|}}} |number= {{{ID|{{{id|}}}}}} |date= {{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}} |title= {{#invoke:String|replace|{{{text}}}|%s+| |plain=false}} |archive-url= {{{archive-url|}}} |archive-date= {{{archive-date|}}} |url-status= {{{url-status|}}} |ref={{{cite-id|}}} }} | name={{{ref-name|Tweet{{{username}}}}}} }}
         }}}}}}
         }}}}}}
     </p>
     </div>
</blockquote></includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>