Jump to content

Template:Table2C: Difference between revisions

From transformal GmbH
No edit summary
No edit summary
 
Line 1: Line 1:
<!-- ============================================
<!-- ============================================
     Vorlage:TableOC v260213r2
     Vorlage:Table2C v260213r2
     Outer column table wrapper for Preprint v7.17.2
     Two-column spanning table wrapper for Preprint v7.17.2
    Uses hybrid wrapper approach (IA4)
      
      
     Usage:
     Usage:
       {{TableOC}}
       {{Table2C}}
       {| class="wikitable"
       {| class="wikitable"
       ...
       ...
       |}
       |}
       {{TableOC/End}}
       {{Table2C/End}}
     ============================================ -->
     ============================================ -->
<div class="preprint-table-oc-wrapper place-oc{{#ifeq:{{{size|}}}|small|&#32;place-small|}}"{{#if:{{{id|}}}| id="{{{id|}}}"|}}{{#if:{{{portrait|}}}| data-portrait="{{{portrait|}}}"|}}{{#if:{{{landscape|}}}| data-landscape="{{{landscape|}}}"|}}><noinclude>
<table class="preprint-2c-wrapper{{#ifeq:{{{size|}}}|small|&#32;place-small|}}"{{#if:{{{id|}}}| id="{{{id}}}"}}>{{#if:{{{1|}}}|<caption>{{{1}}}</caption>|}}
<tr><td><noinclude>
== Documentation ==
== Documentation ==


Wraps existing tables to place them in the outer column (margin).
Wraps existing tables to span both columns (full width).


=== Usage ===
=== Usage ===
<pre>
<pre>
{{TableOC}}
{{Table2C}}
{| class="wikitable"
{| class="wikitable" style="width:100%"
|-
|-
| Small margin table
| Wide table content
|}
|}
{{TableOC/End}}
{{Table2C/End}}
</pre>
</pre>


Font size: body default on desktop; 0.75em on Minerva (automatic).
Uses hybrid wrapper technique for reliable 2C spanning.
Optional: `size=small` for 0.875em (0.75em on Minerva).


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

Latest revision as of 12:11, 2 March 2026

Documentation

Wraps existing tables to span both columns (full width).

Usage

{{Table2C}}
{| class="wikitable" style="width:100%"
|-
| Wide table content
|}
{{Table2C/End}}

Uses hybrid wrapper technique for reliable 2C spanning.