Template:Place: Difference between revisions
OlafLangmack (talk | contribs) No edit summary |
OlafLangmack (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<!-- ============================================ | <!-- ============================================ | ||
Vorlage:Place | Vorlage:Place v260208r2 | ||
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) | ||
============================================ --> | ============================================ --> | ||
<!-- 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| place-small|}}{{#if:{{{bg|}}}| place-bg|}}"{{#if:{{{id|}}}| id="{{{id}}}"}}{{#if:{{{caption|}}}| data-caption="{{{caption | |OC=<span class="place-oc{{#ifeq:{{{size|}}}|small| place-small|}}{{#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|}}}}}</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 | |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) | ||
[[Category:Preprint]] | [[Category:Preprint]] | ||
</noinclude> | </noinclude> | ||