Difference between revisions of "Template:Tile"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Meepledrone (talk | contribs) m (Updated vertical alignment) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{text|}}} | <div style="display: flex">}}<div style="display: inline-block; padding-right: {{{padding-right|{{{3|15px}}}}}}; padding-bottom: {{{padding-bottom|{{{4|15px}}}}}}; white-space: nowrap; | <includeonly>{{#if: {{{text|}}} | <div style="display: flex; align-items: center;">}}<div style="display: inline-block; padding-right: {{{padding-right|{{{3|15px}}}}}}; padding-bottom: {{{padding-bottom|{{{4|15px}}}}}}; white-space: nowrap;">{{#if: {{{1|}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}|[[File:{{{1}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}]]}}{{#if: {{{text|}}} | </div><div style="display: inline-block; padding-right: {{{padding-right|{{{3|15px}}}}}}; padding-bottom: {{{padding-bottom|{{{4|15px}}}}}}; white-space: normal">{{{text}}}</div> | {{{2|x1}}} }}</div></includeonly><noinclude>{{Breadcrumbs | ||
|link1={{EditorManualLink}} | |link1={{EditorManualLink}} | ||
}} | }} | ||
Line 21: | Line 21: | ||
{{Tile|Inns_And_Cathedrals_C3_Tile_E.png|1x<br />(F)|size=50px}} | {{Tile|Inns_And_Cathedrals_C3_Tile_E.png|1x<br />(F)|size=50px}} | ||
{{Tile|Inns_And_Cathedrals_C3_Tile_F.png|text=This is text with<br />multiple lines<br />and another line and <br />another line.}} | {{Tile|Inns_And_Cathedrals_C3_Tile_F.png|text=This is text with<br />multiple lines<br />and another line and <br />another line.}} | ||
{{Tile|Inns_And_Cathedrals_C3_Tile_G.png|text=This is text with multiple lines and another line and another line.}} | |||
{{EndTileList}} | {{EndTileList}} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 30: | Line 31: | ||
{{Tile|Inns_And_Cathedrals_C3_Tile_E.png|1x<br />(F)|size=50px}} | {{Tile|Inns_And_Cathedrals_C3_Tile_E.png|1x<br />(F)|size=50px}} | ||
{{Tile|Inns_And_Cathedrals_C3_Tile_F.png|text=This is text with<br />multiple lines<br />and another line and <br />another line.}} | {{Tile|Inns_And_Cathedrals_C3_Tile_F.png|text=This is text with<br />multiple lines<br />and another line and <br />another line.}} | ||
{{Tile|Inns_And_Cathedrals_C3_Tile_G.png|text=This is text with multiple lines and another line and another line.}} | |||
{{EndTileList}} | {{EndTileList}} | ||
[[Category:Editor Manual]] | [[Category:Editor Manual]] | ||
</noinclude> | </noinclude> |
Revision as of 22:16, 11 December 2022
Description
Tile included in Tile Distribution.
Params
text
(optional) text showed on right side of tile in block of text. When set, parameter2
is skipped.1
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 widthtext
(optional) - text on right side of image of tile with vertical align = top of image
Examples
{{BeginTileList}} {{Tile|Inns_And_Cathedrals_C3_Tile_C.png|1x<br />(P)|50px}} {{Tile|Inns_And_Cathedrals_C3_Tile_D.png|1x<br /> }} {{Tile|Inns_And_Cathedrals_C3_Tile_E.png|1x<br />(F)}} {{Tile|Inns_And_Cathedrals_C3_Tile_E.png|1x<br />(F)|size=50px}} {{Tile|Inns_And_Cathedrals_C3_Tile_F.png|text=This is text with<br />multiple lines<br />and another line and <br />another line.}} {{Tile|Inns_And_Cathedrals_C3_Tile_G.png|text=This is text with multiple lines and another line and another line.}} {{EndTileList}}