Difference between revisions of "Template:Tile/en"
Jump to navigation
Jump to search
(Updating to match new version of source page) |
(Updating to match new version of source page) Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{text|}}} | <div style="display: flex; align-items: center; max-width: {{{width|100%}}};">}}<div style="align-self: flex-start; display: inline-block; padding-right: {{{padding-right|{{{3|1ex}}}}}}; padding-bottom: {{{padding-bottom|{{{4|15px}}}}}}; white-space: nowrap; align-items: center">{{#if: {{{textbefore|}}} | <div style="display:inline-block; padding-right: 1ex;">{{{textbefore}}}</div> }}{{#if: {{{image|{{{1|}}}}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}|[[File:{{{image|{{{1}}}}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}]]{{#if:{{{text|}}} | {{#if: {{{config|}}} | <br /><span style="font-size:smaller; font-weight: bold; | <includeonly>{{#if: {{{text|}}} | <div style="display: flex; align-items: center; max-width: {{{width|100%}}};">}}<div style="align-self: flex-start; display: inline-block; padding-right: {{{padding-right|{{{3|1ex}}}}}}; padding-bottom: {{{padding-bottom|{{{4|15px}}}}}}; white-space: nowrap; align-items: center">{{#if: {{{textbefore|}}} | <div style="display:inline-block; padding-right: 1ex;">{{{textbefore}}}</div> }}{{#if: {{{image|{{{1|}}}}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}|[[File:{{{image|{{{1}}}}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}]]{{#if:{{{text|}}} | {{#if: {{{config|}}} | <br /><span style="font-size:smaller; font-weight: bold;"><div style="white-space: normal; max-width: calc({{{width|110px}}} + 10px);">{{{config}}}</div> </span> }} }} }}{{#if: {{{text|}}} | </div><div style="{{#switch: {{{align}}} | ||
| center = | | center = | ||
| bottom = align-self: flex-end; | | bottom = align-self: flex-end; |
Revision as of 14:45, 14 March 2023
Description
Tile included in Tile Distribution.
Params
image
or1
or 1st (required) image name2
or 2nd (optional) text on right side of image with vertical align = middle of imagepadding-right
or3
or 3rd (optional) right padding of image - default is15px
padding-bottom
or4
or 4th (optional) bottom padding of image - default is15px
size
or5
or 5th (optional) size of image - default is-empty-
means full widthwidth
(Optional) - max width of tile with text (available when parametertext
is defined)- Text on right side of image (use only one parameter)
text
(optional) - text on right side of image of tile with vertical align =center
of image, when used, parametersconfig
andcount
are ignored!- or
count
(optional) count of tiles as number, output depend on translation in English like ×2 when count is 2
- Text under image
config
(optional) configuration of tile - text showed below tile image, for example{{Feature|name=Garden|edition=C3}}
, that tile contains Garden and generate there Garden
- Text before image
textbefore
(optional) - text showed before tile image
Examples
{{BeginTileList}} {{Tile|Inns_And_Cathedrals_C3_Tile_D.png}} {{Tile|Inns_And_Cathedrals_C3_Tile_C.png|config=({{TextP}})|50px}} {{Tile|Inns_And_Cathedrals_C3_Tile_E.png|count=1<ref>Example footnote 1</ref>|config=({{TextF}})<ref>Example footnote 2</ref>}} {{Tile|Inns_And_Cathedrals_C3_Tile_E.png|count=1|config=({{TextF}})|size=50px}} {{Tile|Inns_And_Cathedrals_C3_Tile_F.png|config=({{TextP}})|text=This is text with<br />multiple lines<br />and another line and <br />another line.}} {{Tile|Inns_And_Cathedrals_C3_Tile_G.png|width=200px|text=This is text with multiple lines and another line and another line.}} {{Tile|Inns_And_Cathedrals_C3_Tile_F.png|config={{Feature|edition=C3|name=City}} + {{Feature|edition=C3|name=Road}} + {{Feature|edition=C3|name=Farmhouse|type=short}}}} {{Tile|Inns_And_Cathedrals_C3_Tile_G.png|x1}} Test backward compatibility {{Tile|Inns_And_Cathedrals_C3_Tile_H.png|text=''|config=Text under tile}} {{Tile|Inns_And_Cathedrals_C3_Tile_I.png|width=100px|size=90px|text=''|config=Very long text under tile}} {{Tile|Inns_And_Cathedrals_C3_Tile_G.png|width=400px|size=90px|text=Long text because it is rule for this tile, which describe all possibilities.|textbefore={{IconBook}}}} {{Tile|Inns_And_Cathedrals_C3_Tile_J.png|width=400px|size=90px|align=center|text=Vertical centered text.|textbefore={{IconBook}}}} {{EndTileList}}
Test backward compatibility
Footnotes
For Icons explanation and licensing please visit Icons page.