Template:POTD default: Difference between revisions

From Daniel Larson Wiki
Jump to navigation Jump to search
(Replaced content with " </noinclude>")
Tags: Replaced Reverted
m (Reverted edits by 107.189.28.199 (talk) to last revision by YungCyraxx)
Tag: Rollback
 
Line 1: Line 1:
 
{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{POTD navigation}}|}}
<div style="box-sizing: border-box; margin:0.5em; width: 600px; border: 3px #ccccff solid; padding: 11px; text-align: center; background-color: white;">
    <div style="margin-bottom: 0.3em; font-size: 150%;"><!--
    -->[[Wikipedia:Picture of the day|Picture of the day]]
    </div>
    <div {{#ifexpr: {{{size|300}}} < 400 | style="display: inline-block; width: <!-- hardcode tall image to 300px -->{{#if:{{{tall|}}}|300|{{{size|300}}}}}px; vertical-align: middle;"}}><!--
    -->{{#if: {{{wide|}}}
            |{{wide image|border=no|{{{image|No-image.svg}}}|{{{size}}}px|4=550px|dir={{{dir|}}}|alt={{{alttext|{{{texttitle}}}}}} }}
            |{{#if: {{{tall|}}}
                |{{tall image|{{{image|No-image.svg}}}|270<!-- {{tall image}} adds 30px -->|alt={{{alttext|{{{texttitle}}}}}} }}
                |{{#if:{{{image2|}}}|<div>}}[[File:{{{image1|{{{image|No-image.svg}}}}}}|{{{size|350}}}px{{#if:{{{thumbtime1|{{{thumbtime|}}}}}}|{{!}}thumbtime={{{thumbtime1|{{{thumbtime}}}}}}}}|{{{alt1|{{{alttext|{{{texttitle}}}}}}}}}{{#if:{{{imagelink1|{{{imagelink|}}}}}}|{{!}}link=File:{{{imagelink1|{{{imagelink|}}}}}}|}}]]{{#if:{{{image2|}}}|</div><div style="margin-top:0.5em;">[[File:{{{image2|No-image.svg}}}|{{{size|350}}}px{{#if:{{{thumbtime2|}}}|{{!}}thumbtime={{{thumbtime2}}}}}|{{{alt2}}}{{#if:{{{imagelink2|}}}|{{!}}link=File:{{{imagelink2}}}|}}]]</div>}}
            }}
        }}
    </div>
    <div style="{{#ifexpr: {{{size|300}}} < 400 | display: inline-block; margin-left: 4px; width: {{#if:{{{tall|}}}|264|{{#expr:564-{{{size|300}}}}}}}px; vertical-align: middle; | padding-top: 0.3em;}}"><!--
    -->{{{caption}}}<!--
    -->{{#if:{{{credit|}}}
            |<small style="display: block; margin-top: 0.8em;"><!--
              -->{{{credit}}}<!--
          --></small>
        }}
        <div class="noprint" style="margin-top: 0.2em; font-size: 85%;"><!--
        -->[[Wikipedia:Picture of the day/{{CURRENTMONTHNAME}} {{CURRENTYEAR}}|Archive]] – [[Wikipedia:Featured pictures|More featured pictures...]]
        </div>
    </div>
</div><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 01:39, 4 January 2024