Template:Place: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- ============================================
<!-- ============================================
     Vorlage:Place v260205r1
     Vorlage:Place v260210r2
     Unified dimensional placement for Preprint v7.17
     Unified dimensional placement for Preprint v7.17
      
      
Line 11: Line 11:
       size=    (optional) normal/small (OC only, default: normal)
       size=    (optional) normal/small (OC only, default: normal)
       bg=      (optional) Background color (HTML code)
       bg=      (optional) Background color (HTML code)
      portrait= (optional) Portrait placement: top/bottom (OC/LH only)
     ============================================ -->
     ============================================ -->
<!-- Validate type parameter -->
<!-- Validate type parameter -->
Line 19: Line 18:
}}{{#switch:{{{type|}}}
}}{{#switch:{{{type|}}}
|IC=<div class="place-ic{{#if:{{{bg|}}}| place-bg}}"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption|}}}"|}}{{#if:{{{bg|}}}| style="background-color:{{{bg}}};padding:0.5em;"}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</div>
|IC=<div class="place-ic{{#if:{{{bg|}}}| place-bg}}"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption|}}}"|}}{{#if:{{{bg|}}}| style="background-color:{{{bg}}};padding:0.5em;"}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</div>
|OC=<span class="place-oc{{#ifeq:{{{size|}}}|small|&#32;place-small|}}{{#if:{{{bg|}}}|&#32;place-bg|}}"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption|}}}"|}}{{#if:{{{portrait|}}}| data-portrait="{{{portrait|}}}"|}}{{#if:{{{bg|}}}| style="background-color:{{{bg}}};padding:0.5em;"}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</span>
|OC=<span class="place-oc{{#ifeq:{{{size|}}}|small|&#32;place-small|}}{{#if:{{{bg|}}}|&#32;place-bg|}}"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption|}}}"|}}{{#if:{{{bg|}}}| style="background-color:{{{bg}}};padding:0.5em;"}}{{#if:{{{portrait|}}}| data-portrait="{{{portrait|}}}"|}}{{#if:{{{landscape|}}}| data-landscape="{{{landscape|}}}"|}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</span>
|2C=<table class="preprint-2c-wrapper"{{#if:{{{id|}}}| id="{{{id}}}"}}>{{#if:{{{caption|}}}|<caption>{{{caption}}}</caption>|}}<tr><td><div class="place-2c">{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</div></td></tr></table>
|2C=<table class="preprint-2c-wrapper"{{#if:{{{id|}}}| id="{{{id}}}"}}>{{#if:{{{caption|}}}|<caption>{{{caption}}}</caption>|}}<tr><td><div class="place-2c">{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</div></td></tr></table>
|LH=<span class="place-lh"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption|}}}"|}}{{#if:{{{portrait|}}}| data-portrait="{{{portrait|}}}"|}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</span>
|LH=<span class="place-lh"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption|}}}"|}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</span>
<noinclude>
}}<noinclude>
== Documentation ==
== Documentation ==


Line 41: Line 40:
* '''size''' (optional): "small" for 0.875em (OC only)
* '''size''' (optional): "small" for 0.875em (OC only)
* '''bg''' (optional): Background color (HTML code)
* '''bg''' (optional): Background color (HTML code)
* '''portrait''' (optional): "top" or "bottom" — portrait placement override (OC/LH only)


[[Category:Preprint]]
[[Category:Preprint]]
</noinclude>
</noinclude>