Difference between revisions of "Template:ExpansionDescription"

From Wikicarpedia
Jump to navigation Jump to search
Tag: Manual revert
(added parameter link to image)
 
Line 2: Line 2:
<div style="display: flex; flex-flow: row nowrap; justify-content: stretch; align-items: center;">
<div style="display: flex; flex-flow: row nowrap; justify-content: stretch; align-items: center;">
<div style="flex: 0 0 50px; padding: 10px 15px 10px 0px;">
<div style="flex: 0 0 50px; padding: 10px 15px 10px 0px;">
<div style="float: none; text-align:center;">[[File:{{{image}}}|none|x50px]]</div>
<div style="float: none; text-align:center;">[[File:{{{image}}}|none|x50px|link=]]</div>
</div>
</div>
<div style="flex: 1 1 100%;">
<div style="flex: 1 1 100%;">

Latest revision as of 19:50, 10 May 2024

Description

Generate box with expansion description in colors specific for expansion. It read text between tags <section begin="description" /> and <section begin="description" />, which has to be defined on page, where template is called. Check Bards of Carcassonne Bards of Carcassonne.

Params

  • text (required) Text of description
  • image (required) Name of image, mainly expansion symbol, in the future in color of text, now just transpa
  • color (optional) Color of text inside the box
  • backgroundcolor (optional) Background color inside the box
  • bordercolor (optional) Border bolor of the box

Examples

Examples are used for show usage of colors. Text is read from description section on page, from which is template called. So here in template it creates loop and error message.

{{ExpansionDescription|image=Symbol_BardsOfCarcassonne.png}}

Symbol BardsOfCarcassonne.png

Template loop detected: Template:ExpansionDescription

{{ExpansionDescription|color=#572f00|backgroundcolor=#fff5e8|bordercolor=#9f5400|image=Symbol_BardsOfCarcassonne.png}}

Symbol BardsOfCarcassonne.png

Template loop detected: Template:ExpansionDescription