Difference between revisions of "Template:Box"
Jump to navigation
Jump to search
(default to blank) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="border:2px outset | + | <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| }}}</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| | + | Basic usage is <code><nowiki>{{box|Grazing Lands}}</nowiki></code>: |
− | {{box| | + | {{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 | + | {| 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.