Template:Place: Difference between revisions
OlafLangmack (talk | contribs) Created page with "<!-- ============================================ Template:Place v260205r1 Unified dimensional placement for Preprint v7.17 Parameters: type= (required) IC, OC, 2C, or LH content= (required) Content to place id= (optional) Identifier for indexing caption= (optional) Index caption (for script collection) link= (optional) Anchor reference (makes content clickable) size= (optional) normal/small (OC..." |
OlafLangmack (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- ============================================ | <!-- ============================================ | ||
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) | ||
============================================ --> | ============================================ --> | ||
<!-- 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|}}}"|}}{{#if:{{{portrait|}}}| data-portrait="{{{portrait|}}}"|}}{{#if:{{{ | |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:{{{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:{{{ | |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> | ||