Vorlage:Tweet: Unterschied zwischen den Versionen

K
168 Versionen von wpen:Template:Tweet importiert
(spacing)
K (168 Versionen von wpen:Template:Tweet importiert)
 
(23 dazwischenliegende Versionen von 10 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>{{Quote box|style={{#if: {{{block|}}}|margin-top:0.5em;margin-bottom:0.8em;|}}|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|}}}}}}}<!--
<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: {{{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|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}||{{Formatting error|Invalid <u>date</u> parameter.<br />|nocategory={{{nocategory|}}}}}}}<!--
  -->{{#if: {{{text|}}}||{{Formatting error|Missing <u>text</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|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}|show=format}} | dmy
         ||{{#ifeq: {{extract|{{{date|}}}|show=format}} | mdy
         ||{{#ifeq: {{extract|{{{date|{{#if:{{{id|}}}|{{TwitterSnowflake|{{{id}}}}}}}}}}|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|}}}}}
             ||{{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: {{{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 role="presentation" style="line-height: 1em; width: 100%;">
     <table role="presentation" style="line-height: 1em; width: 100%;">
Zeile 20: 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>
Zeile 47: Zeile 47:
     |}}
     |}}
     <div style="color: #4C545C;">
     <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= {{#invoke:String|replace|{{{text}}}|%s+| |plain=false}} }} }}
             |{{#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}}}}}} }}
         }}}}}}
         }}}}}}
     </div>
     </div>