Difference between revisions of "Template:Tile"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) Tag: Manual revert |
Bumsakalaka (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
| center = | | center = | ||
| bottom = align-self: flex-end; | | bottom = align-self: flex-end; | ||
| align-self: flex-start; }} display: inline-block; padding: 0 {{{padding-right|{{{3|11px}}}}}} {{{padding-bottom|{{{4|15px}}}}}} {{{padding-left|0}}}; white-space: normal; align-items: center;"><div>{{{text|}}}</div></div> |  {{#if: {{{count|}}} | {{#replace:<translate><!--T:1--> ×COUNT</translate>|COUNT|{{{count}}} }} | {{{textbehind|{{{2|}}}}}} }}{{#if: {{{countextra|}}} | <nowiki/> <nowiki/>{{{countextra|}}} }}{{#if: {{{config|}}} | <br /><span style="font-size:smaller; font-weight: bold"><div style="white-space: normal; max-width: calc({{{width|{{{size|110px}}}}}} + 10px);">{{{config}}}</div></span> }} }}{{#if: {{{textunder|}}} | <br />{{{textunder}}} }}</div></includeonly><noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}} | | align-self: flex-start; }} display: inline-block; padding: 0 {{{padding-right|{{{3|11px}}}}}} {{{padding-bottom|{{{4|15px}}}}}} {{{padding-left|0}}}; white-space: normal; align-items: center;"><div>{{{text|}}}</div></div> |  {{#if: {{{count|}}} | {{#replace:<translate><!--T:1--> ×COUNT</translate>|COUNT|{{{count}}} }} | {{{textbehind|{{{2|}}}}}} }}{{#if: {{{countextra|}}} | <nowiki/> <nowiki/>{{{countextra|}}} }}{{#if: {{{config|}}} | <br /><span style="font-size:smaller; font-weight: bold"><div style="white-space: normal; max-width: calc({{{width|{{{size|110px}}}}}} + 10px);">{{{config}}}</div></span> }} }}{{#if: {{{textunder|}}} | <br />{{{textunder}}} }}{{OldNumberedParametersWarning|1{{#if: {{{1|}}} ||NULL}}={{{1|}}}|2{{#if: {{{2|}}} ||NULL}}={{{2|}}}|3{{#if: {{{3|}}} ||NULL}}={{{3|}}}|4{{#if: {{{4|}}} ||NULL}}={{{4|}}}|5{{#if: {{{5|}}} ||NULL}}={{{5|}}}|template=Tile }}</div></includeonly><noinclude><languages />{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}} | ||
{{Breadcrumbs | {{Breadcrumbs | ||
|link1={{EditorManualLink}} | |link1={{EditorManualLink}} |
Latest revision as of 10:49, 20 April 2024
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-left
(optional) left padding of image - default is0px
padding-right
or3
or 3rd (optional) right padding of image - default is11px
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)link
(Optional) - link for imagealign
(Optional) - vertical align of text on right side of imagealignimage
(Optional) - [bottom
|-empty-] vertical align of whole object tile/text/config to bottom when requested- 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 depends on translation. Forcount=2
the output in English is×2
countextra
(optional) extra text showed after count, for example<ref>...
or other text
- 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
- Text behind image without formatting
textbehind
or2
(optional) - text showed behind tile image without formatting
- Text under image (and under optional config section) without formatting
textunder
(optional) - text showed under tile image without formatting,
Examples
{{BeginTileList}} {{Tile|Inns_And_Cathedrals_C3_Tile_D.png}} {{Tile|Inns_And_Cathedrals_C3_Tile_C.png|config=({{TextP}})|size=50px|alignimage=bottom}} {{Tile|Inns_And_Cathedrals_C3_Tile_A.png|config=({{TextP}})|size=50px|alignimage=center}} {{Tile|Inns_And_Cathedrals_C3_Tile_B.png|count=1|countextra=<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_G.png}} Test backward compatibility, by new, count is not generated! {{Tile|Inns_And_Cathedrals_C3_Tile_H.png|text=''|config=Text under tile}} {{Tile|Inns_And_Cathedrals_C3_Tile_A.png|text=''|config=Text under tile but very long}} {{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}}}} {{Tile|Inns_And_Cathedrals_C3_Tile_H.png|width=400px|size=90px|align=center|link={{InnsCathedralsLink|linkonly=true}}}} {{Tile|Inns_And_Cathedrals_C3_Tile_H.png|width=400px|size=90px|align=center|link={{InnsCathedralsLink|linkonly=true|anchor=inn}}}} {{EndTileList}}
Test backward compatibility
Test backward compatibility, by new, count is not generated!
Long text under image when
Vertical centered text.
Long text under image when
text
is usedFootnotes
For Icons explanation and licensing please visit Icons page.