Difference between revisions of "Template:Box"

From BlogNomic Wiki
Jump to navigation Jump to search
(trying out a new template)
 
(default to blank)
 
(8 intermediate revisions by the same user not shown)
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 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==
  
 
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.
 
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 <code><nowiki>{{box|The Grazing Lands}}</nowiki></code>:
+
Basic usage is <code><nowiki>{{box|Grazing Lands}}</nowiki></code>:
  
{{box|The Grazing Lands}}
+
{{box|Grazing Lands}}
  
 
You can add a specific colour as a second argument, as either a hex value or a word, eg. <code><nowiki>{{box|Indoor Gardens|#cde6cd}} {{box|Desperate Measures|beige}}</nowiki></code>:
 
You can add a specific colour as a second argument, as either a hex value or a word, eg. <code><nowiki>{{box|Indoor Gardens|#cde6cd}} {{box|Desperate Measures|beige}}</nowiki></code>:
  
 
{{box|Indoor Gardens|#cde6cd}} {{box|Desperate Measures|beige}}
 
{{box|Indoor Gardens|#cde6cd}} {{box|Desperate Measures|beige}}
 +
 +
Example in a gamestate table:
 +
{| class="wikitable"
 +
|-
 +
! Thief            !! Florins !! Notoriety !! Inventory !! Injuries !! Arms
 +
|-
 +
| NadNavillus      ||  109    ||    29    || {{box|Candlestick|gold}} || - || 0
 +
|-
 +
| Clucky          ||  115    ||    13    || {{box|Gold Ring|gold}} {{box|Loupe|skyblue}}  || - || 0
 +
|-
 +
| JonathanDark    ||  121    ||    22    || {{box|Loupe|skyblue}} || - || 0
 +
|}
 +
 +
For a circular version of this template, see [[:Template:Chip]].
 +
 +
[[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.