Vorlage:Place: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „<!-- ============================================ Vorlage: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) n…“ |
Keine Bearbeitungszusammenfassung |
||
| (3 dazwischenliegende Versionen derselben Benutzerin werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<!-- ============================================ | <!-- ============================================ | ||
Vorlage:Place | Vorlage:Place v260210r2 | ||
Unified dimensional placement for Preprint v7.17 | Unified dimensional placement for Preprint v7.17 | ||
| Zeile 11: | Zeile 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 --> | ||
| Zeile 19: | Zeile 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 == | ||
| Zeile 41: | Zeile 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> | ||
Aktuelle Version vom 10. Februar 2026, 10:17 Uhr
Place: Invalid type "" - must be IC, OC, 2C, or LH
Documentation
Usage
{{Place|type=OC|content=Margin note text}}
{{Place|type=LH|content=→|link=#section}}
{{Place|type=IC|content=Emphasized block}}
{{Place|type=2C|content=[[File:wide-image.png]]}}
Parameters
- type (required): IC, OC, 2C, or LH
- content (required): Text, images, or mixed
- id (optional): Identifier for index collection
- caption (optional): Caption text for index generation
- link (optional): Makes content clickable (e.g., #anchor)
- size (optional): "small" for 0.875em (OC only)
- bg (optional): Background color (HTML code)