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:{{{height|}}}|height:{{{height}}}px;}}{{#if:{{{justify|}}}|text-align:{{{justify}}};}}">{{#if:{{{1|}}}|{{{1}}}|​}}{{#if:{{{dropdown|}}}|<span style="display:inline-block;float:right;vertical-align: middle;position: relative; bottom: 4px;"><div style="border:0;padding:0;font-size:8px;height:8px;">▲</div><div style="border:0;padding:0;font-size:8px;height:6px;">▼</div></span>}}</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.height=n
to force the height to be npx rather than one line.dropdown=yes
to add little arrows on the right to make it look more like a drop-down box
Examples
- {{textbox}}
-
- {{textbox|some text}}
- some text
- {{textbox|center=yes}}
-
- {{textbox|some centered text|justify=center}}
- some centered text
- {{textbox|some text|justify=center|dropdown=yes}}
- some text▲▼
- {{textbox|rounded=no}}
-
- {{textbox|width=50}}
-