Template:Resize box: Difference between revisions

From Japanese Mahjong Wiki
Jump to navigation Jump to search
(Created Template: Resize Box, to provide a rescaleable preview for resizeable contents.)
 
mNo edit summary
 
Line 1: Line 1:
<onlyinclude><includeonly>{{Resize box/start}}{{{1|}}}{{Resize box/end}}</includeonly></onlyinclude>
<onlyinclude><includeonly>{{Resize box/start}}{{{1|}}}{{Resize box/end}}</includeonly></onlyinclude>
<noinclude>{{Doc}}</noinclude>
<noinclude>{{Resize box/doc}}</noinclude>

Latest revision as of 17:56, 2 January 2023

Description

A container to provide a rescaleable preview for resizeable contents.

Preview

Drag the triangle on bottom-right corner to see the effect...

I'm a box.

Usage

Simple usage:

{{Resize box| {{template_name}} }}

For contents containing reserved characters (e.g. =):

{{Resize box/start}}
    Preview contents...
    <div class="mw-collapsible">I contain some reserved characters...</div>
{{Resize box/end}}