Difference between revisions of "Template:Box"

From BlogNomic Wiki
Jump to navigation Jump to search
(default to blank)
 
(6 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;">{{{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>:
Line 13: Line 13:
  
 
Example in a gamestate table:
 
Example in a gamestate table:
{| class="wikitable sortable"
+
{| class="wikitable"
! District      !! Order !! Calendar !! Commons !! Innovations
 
 
|-
 
|-
| JonathanDark  ||    3 ||        9 || {{box|The Grazing Lands}} {{box|The Deserted Barracks}} || {{box|Shared Wisdom}} {{box|Indoor Gardens}}
+
! Thief            !! Florins !! Notoriety !! Inventory !! Injuries !! Arms
 
|-
 
|-
| Josh          ||    4 ||       11 || {{box|The Grazing Lands}} {{box|The Deserted Barracks}} || {{box|Shared Wisdom}}
+
| NadNavillus      || 109   ||   29    || {{box|Candlestick|gold}} || - || 0
 
|-
 
|-
| lemon          ||    4 ||       9 || {{box|The Grazing Lands}} {{box|The Grazing Lands}} || {{box|Shared Wisdom}} {{box|Indoor Gardens}}
+
| Clucky          || 115   ||   13    || {{box|Gold Ring|gold}} {{box|Loupe|skyblue}} || - || 0
 
|-
 
|-
| lendunistus    ||    4 ||       11 || {{box|The Grazing Lands}} {{box|The Grazing Lands}} || {{box|Shared Wisdom}}
+
| 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.