Template:Textbox
From A KoL Wiki
[edit]
{{Textbox}}
{{#if:{{{center|}}}|<div style="text-align:center;">}}<div style="display:inline-block;border:1px solid #C4C4C4;{{#ifeq:{{{rounded|yes}}}|yes|border-radius:4px 4px 4px 4px;}}color:#000000;padding:2px;width:{{{width|150}}}px;{{#if:{{{justify|}}}|text-align:{{{justify}}};}}">{{#if:{{{1|}}}|{{{1}}}|}}</div>{{#if:{{{center|}}}|</div>}}
A template to create a rectangle simulating a text-entry box, to better approximate the game interface.
Usage
{{textbox|
default text}}
Other options can be:
center=yes
to turn on centering of the box itself, on its own line.justify=center
to center the text content. You can also specifyjustify=left
orjustify=right
.rounded=no
to turn off corner-rounding.width=n
to force the width to be n rather than the default of 150px.
Examples
- {{textbox}}
- {{textbox|some text}}
- some text
- {{textbox|center=yes}}
- {{textbox|some centered text|justify=center}}
- some centered text
- {{textbox|rounded=no}}
- {{textbox|width=50}}