Difference between revisions of "Template:Tile/en"

From Wikicarpedia
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(43 intermediate revisions by the same user not shown)
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;"><div style="white-space: normal; max-width: calc({{{width|110px}}} + 10px);">{{{config}}}</div> </span> }} }} }}{{#if: {{{text}}} | </div><div style="{{#switch: {{{align}}}  
<includeonly>{{#if: {{{text|}}} | <div style="display: flex; align-items: center; max-width: {{{width|100%}}};">}}<div style="flex-shrink: 0; align-self: {{#switch: {{{alignimage}}}
| bottom = flex-end;
| center = center;
| flex-start; }}display: inline-block; padding: 0 {{{padding-right|{{{3|11px}}}}}} {{{padding-bottom|{{{4|15px}}}}}} {{{padding-left|0}}}; white-space: nowrap; align-items: center">{{#if: {{{textbefore|}}} | <div style="display:inline-block; padding-right: 11px;">{{{textbefore}}}</div> }}{{#if: {{{image|{{{1|}}}}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}|[[File:{{{image|{{{1}}}}}}{{#if: {{{size|{{{5|}}}}}} | {{!}}{{{size|{{{5}}}}}} }}{{#if: {{{link|}}} | {{!}}link={{{link}}} }}]]{{#if: {{{text|}}} | {{#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}}} }} }} }}{{#if: {{{text|}}} | </div><div style="{{#switch: {{{align}}}  
| center =  
| center =  
| bottom = align-self: flex-end;
| bottom = align-self: flex-end;
| align-self: flex-start; }} display: inline-block; padding-right: {{{padding-right|{{{3|1ex}}}}}}; padding-bottom: {{{padding-bottom|{{{4|15px}}}}}}; white-space: normal; align-items: center;"><div>{{{text}}}</div></div> | &thinsp;{{#if: {{{count|}}} | {{#replace:×COUNT|COUNT|{{{count}}} }} | {{{2|×1}}} }} {{#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> }} }}</div></includeonly><noinclude><languages />{{Breadcrumbs
| 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> | &thinsp;{{#if: {{{count|}}} | {{#replace:×COUNT|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
|link1={{EditorManualLink}}
|link1={{EditorManualLink}}
}}
}}
Line 11: Line 15:
* <code>image</code> or <code>1</code> or 1st (required) image name
* <code>image</code> or <code>1</code> or 1st (required) image name
* <code>2</code> or 2nd (optional) text on right side of image with vertical align = middle of image
* <code>2</code> or 2nd (optional) text on right side of image with vertical align = middle of image
* <code>padding-right</code> or <code>3</code> or 3rd (optional) right padding of image - default is <code>15px</code>
* <code>padding-left</code> (optional) left padding of image - default is <code>0px</code>
* <code>padding-right</code> or <code>3</code> or 3rd (optional) right padding of image - default is <code>11px</code>
* <code>padding-bottom</code> or <code>4</code> or 4th (optional) bottom padding of image - default is <code>15px</code>
* <code>padding-bottom</code> or <code>4</code> or 4th (optional) bottom padding of image - default is <code>15px</code>
* <code>size</code> or <code>5</code> or 5th (optional) size of image - default is <code>-empty-</code> means full width
* <code>size</code> or <code>5</code> or 5th (optional) size of image - default is <code>-empty-</code> means full width
* <code>width</code> (Optional) - max width of tile with text (available when parameter <code>text</code> is defined)
* <code>width</code> (Optional) - max width of tile with text (available when parameter <code>text</code> is defined)
* <code>link</code> (Optional) - link for image
* <code>align</code> (Optional) - vertical align of text on right side of image
* <code>alignimage</code> (Optional) - [<code>bottom</code>|-empty-] vertical align of whole object tile/text/config to bottom when requested
* '''Text on right side of image (use only one parameter)'''
* '''Text on right side of image (use only one parameter)'''
** <code>text</code> (optional) - text on right side of image of tile with vertical align = <code>center</code> of image, when used, parameters <code>config</code> and <code>count</code> are '''ignored'''!
** <code>text</code> (optional) - text on right side of image of tile with vertical align = <code>center</code> of image, when used, parameters <code>config</code> and <code>count</code> are '''ignored'''!
** or
** or
** <code>count</code> (optional) count of tiles as number, output depend on translation in English like ×2 when count is 2
** <code>count</code> (optional) count of tiles as number, output depends on translation. For <code><nowiki>count=2</nowiki></code> the output in English is <code>×2</code>
** <code>countextra</code> (optional) extra text showed after count, for example <code><nowiki><ref>...</nowiki></code> or other text
* '''Text under image'''
* '''Text under image'''
** <code>config</code> (optional) configuration of tile - text showed below tile image, for example <code><nowiki>{{Feature|name=Garden|edition=C3}}</nowiki></code>, that tile contains Garden and generate there {{Feature|name=Garden|edition=C3}}
** <code>config</code> (optional) configuration of tile - text showed below tile image, for example <code><nowiki>{{Feature|name=Garden|edition=C3}}</nowiki></code>, that tile contains Garden and generate there {{Feature|name=Garden|edition=C3}}
* '''Text before image'''
* '''Text before image'''
** <code>textbefore</code> (optional) - text showed before tile image
** <code>textbefore</code> (optional) - text showed before tile image
* '''Text behind image without formatting'''
** <code>textbehind</code> or <code>2</code> (optional) - text showed behind tile image without formatting
* '''Text under image (and under optional config section) without formatting'''
** <code>textunder</code> (optional) - text showed under tile image without formatting,


== Examples ==
== Examples ==
<pre><nowiki>{{BeginTileList}}
<pre><nowiki>{{BeginTileList}}
{{Tile|Inns_And_Cathedrals_C3_Tile_D.png}}
{{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_C.png|config=({{TextP}})|size=50px|alignimage=bottom}}
{{Tile|Inns_And_Cathedrals_C3_Tile_B.png|count=1<ref>Example footnote 1</ref>|config=({{TextF}})<ref>Example footnote 2</ref>}}
{{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_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_F.png|config=({{TextP}})|text=This is text with<br />multiple lines<br />and another line and <br />another line.}}
Line 34: Line 48:
{{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_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|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_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_A.png|text=''|config=Text under tile but very long}}
Line 39: Line 54:
{{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_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_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}}
{{EndTileList}}
</nowiki></pre>
</nowiki></pre>
Line 44: Line 61:
{{BeginTileList}}
{{BeginTileList}}
{{Tile|Inns_And_Cathedrals_C3_Tile_D.png}}
{{Tile|Inns_And_Cathedrals_C3_Tile_D.png}}
{{Tile|Inns_And_Cathedrals_C3_Tile_C.png|config=({{TextP}})|size=50px}}
{{Tile|Inns_And_Cathedrals_C3_Tile_C.png|config=({{TextP}})|size=50px|alignimage=bottom}}
{{Tile|Inns_And_Cathedrals_C3_Tile_B.png|count=1<ref>Example footnote 1</ref>|config=({{TextF}})<ref>Example footnote 2</ref>}}
{{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_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_F.png|config=({{TextP}})|text=This is text with<br />multiple lines<br />and another line and <br />another line.}}
Line 51: Line 69:
{{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_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|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_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_A.png|text=''|config=Text under tile but very long}}
Line 56: Line 75:
{{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_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_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|text=Vertical centered text.|textunder=Long text under image when <code>text</code> is used}}
{{Tile|Inns_And_Cathedrals_C3_Tile_H.png|width=400px|size=90px|align=center|textunder=Long text under image without <code>text</code> in parameters}}
{{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}}
{{EndTileList}}


{{FootnoteIconPara}}
{{FootnoteIconPara}}
 
</noinclude>
{{#switch: {{PAGELANGUAGE}}
| en = [[Category:Translatable_templates]] [[Category:Editor Manual]]
|
}}</noinclude>

Latest revision as of 10:49, 20 April 2024

Description

Tile included in Tile Distribution.

Params

  • image or 1 or 1st (required) image name
  • 2 or 2nd (optional) text on right side of image with vertical align = middle of image
  • padding-left (optional) left padding of image - default is 0px
  • padding-right or 3 or 3rd (optional) right padding of image - default is 11px
  • padding-bottom or 4 or 4th (optional) bottom padding of image - default is 15px
  • size or 5 or 5th (optional) size of image - default is -empty- means full width
  • width (Optional) - max width of tile with text (available when parameter text is defined)
  • link (Optional) - link for image
  • align (Optional) - vertical align of text on right side of image
  • alignimage (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, parameters config and count are ignored!
    • or
    • count (optional) count of tiles as number, output depends on translation. For count=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 or 2 (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}}
Inns And Cathedrals C3 Tile D.png
Inns And Cathedrals C3 Tile C.png
(P)
Inns And Cathedrals C3 Tile A.png
(P)
Inns And Cathedrals C3 Tile B.png ×1 [1]
(F)[2]
Inns And Cathedrals C3 Tile E.png ×1
(F)
Inns And Cathedrals C3 Tile F.png
(P)
This is text with
multiple lines
and another line and
another line.
Inns And Cathedrals C3 Tile G.png
This is text with multiple lines and another line and another line.
Inns And Cathedrals C3 Tile G.png x1
Test backward compatibility
Inns And Cathedrals C3 Tile G.png
Test backward compatibility, by new, count is not generated!
Inns And Cathedrals C3 Tile H.png
Text under tile
Inns And Cathedrals C3 Tile A.png
Text under tile but very long
Inns And Cathedrals C3 Tile I.png
Very long text under tile
Official clarification from the publisher
Inns And Cathedrals C3 Tile G.png
Long text because it is rule for this tile, which describe all possibilities.
Official clarification from the publisher
Inns And Cathedrals C3 Tile J.png
Vertical centered text.
Inns And Cathedrals C3 Tile H.png
Long text under image when text is used
Vertical centered text.

Long text under image when text is used
Inns And Cathedrals C3 Tile H.png
Long text under image without text in parameters
Inns And Cathedrals C3 Tile H.png
Inns And Cathedrals C3 Tile H.png

Footnotes

For Icons explanation and licensing please visit Icons page.


  1. Example footnote 1
  2. Example footnote 2