Template:Place: Difference between revisions
Appearance
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 |
||
| Line 1: | Line 1: | ||
<!-- ============================================ | <!-- ============================================ | ||
Vorlage:Place v260205r1 | |||
Unified dimensional placement for Preprint v7.17 | Unified dimensional placement for Preprint v7.17 | ||
| Line 21: | Line 21: | ||
|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:{{{bg|}}}| style="background-color:{{{bg}}};padding:0.5em;"}}>{{#if:{{{link|}}}|[[{{{link}}}|{{{content|}}}]]|{{{content|}}}}}</span> | |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:{{{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|}}}"|}}{{#if:{{{portrait|}}}| data-portrait="{{{portrait|}}}"|}}}> | |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> | ||
<noinclude> | |||
== Documentation == | == Documentation == | ||
Revision as of 18:47, 8 February 2026
Place: Invalid type "" - must be IC, OC, 2C, or LH{{#switch:
|IC=
|OC=
|2C=
|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)
- portrait (optional): "top" or "bottom" — portrait placement override (OC/LH only)