Difference between revisions of "Template:Box"

From BlogNomic Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<div style="border:2px outset {{#if: {{{2|}}}|{{{2}}}|#eee}};margin:2px;padding:4px;display:inline-block;text-align:center;background-color:{{#if: {{{2|}}}|{{{2}}}|#eee}};border-radius:0.5em;line-height:120%;font-family:serif;font-variant:small-caps;">{{{1}}}</div><noinclude>
+
<div style="border:2px outset {{#if: {{{2|}}}|{{{2}}}|#eee}};margin:0.05em;padding:0.2em;display:inline-block;text-align:center;background-color:{{#if: {{{2|}}}|{{{2}}}|#eee}};border-radius:0.5em;line-height:1em;font-family:serif;font-variant:small-caps;">{{{1}}}</div><noinclude>
 
==Usage==
 
==Usage==
  

Revision as of 11:13, 17 August 2023

{{{1}}}

Usage

This is a template to wrap a piece of text in a round-bordered box, as more token-feeling alternative to a plain comma-separated list in a gamestate table.

Basic usage is {{box|The Grazing Lands}}:

The Grazing Lands

You can add a specific colour as a second argument, as either a hex value or a word, eg. {{box|Indoor Gardens|#cde6cd}} {{box|Desperate Measures|beige}}:

Indoor Gardens
Desperate Measures

Example in a gamestate table:

District Order Calendar Commons Innovations
JonathanDark 3 9
The Grazing Lands
The Deserted Barracks
Shared Wisdom
Indoor Gardens
Josh 4 11
The Grazing Lands
The Deserted Barracks
Shared Wisdom
lemon 4 9
The Grazing Lands
The Grazing Lands
Shared Wisdom
Indoor Gardens
lendunistus 4 11
The Grazing Lands
The Grazing Lands
Shared Wisdom