Difference between revisions of "Template:Box"

From BlogNomic Wiki
Jump to navigation Jump to search
(trying out max-width:min-content)
(default to blank)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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;max-width:min-content">{{{1}}}</div><noinclude>
+
<div style="border:2px outset rgba(255,255,255, 0.4);margin:0.05em;padding:0.4em;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;max-width:min-content">{{{1|&nbsp;}}}</div><noinclude>
 
==Usage==
 
==Usage==
  
Line 23: Line 23:
 
| JonathanDark    ||  121    ||    22    || {{box|Loupe|skyblue}} || - || 0
 
| JonathanDark    ||  121    ||    22    || {{box|Loupe|skyblue}} || - || 0
 
|}
 
|}
 +
 +
For a circular version of this template, see [[:Template:Chip]].
 +
 
[[Category:Display templates]]
 
[[Category:Display templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:07, 15 August 2024

 

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|Grazing Lands}}:

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:

Thief Florins Notoriety Inventory Injuries Arms
NadNavillus 109 29
Candlestick
- 0
Clucky 115 13
Gold Ring
Loupe
- 0
JonathanDark 121 22
Loupe
- 0

For a circular version of this template, see Template:Chip.