Difference between revisions of "Template:Feature"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) (Marked this version for translation) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 30: | Line 30: | ||
| Castle = {{Piece|name=CastleToken|edition{{#if:{{{edition|}}} | | NULL }}={{{edition|}}}|variant={{{variant|short}}}|linkname{{#if:{{{linkname|}}}||NULL}}={{{linkname|}}}|anchor{{#if:{{{anchor|}}} | | {{#if:{{{linkname|}}} || NULL}} }}={{#if: {{{anchor|}}} | {{{anchor|}}} | {{#if: {{{linkname|}}} | | castles }} }}|formating={{{formating|}}}|text{{#if:{{{text|}}} | | NULL }}={{{text|}}}|size{{#if:{{{size|}}} | | NULL }}={{{size|}}} }} | | Castle = {{Piece|name=CastleToken|edition{{#if:{{{edition|}}} | | NULL }}={{{edition|}}}|variant={{{variant|short}}}|linkname{{#if:{{{linkname|}}}||NULL}}={{{linkname|}}}|anchor{{#if:{{{anchor|}}} | | {{#if:{{{linkname|}}} || NULL}} }}={{#if: {{{anchor|}}} | {{{anchor|}}} | {{#if: {{{linkname|}}} | | castles }} }}|formating={{{formating|}}}|text{{#if:{{{text|}}} | | NULL }}={{{text|}}}|size{{#if:{{{size|}}} | | NULL }}={{{size|}}} }} | ||
| CastleOnRoad = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|CastleLordsLink}}}|image=CastleLords_C1_TileC.png|size={{{size|65px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:106--> Castle on road</translate> }}} }} | | CastleOnRoad = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|CastleLordsLink}}}|image=CastleLords_C1_TileC.png|size={{{size|65px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:106--> Castle on road</translate> }}} }} | ||
| CastleRoad = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|CastleLordsLink}}}|image=CastleLords_C1_TileC.png|size={{{size|65px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:272--> Castle road</translate> }}} }} | |||
| CatharsSymbol = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|CatharsLink}}}|image=Symbol_Cathars_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:127--> Cathars</translate> | <translate><!--T:128--> Cathars Symbol</translate> }} }}} }} | | CatharsSymbol = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|CatharsLink}}}|image=Symbol_Cathars_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:127--> Cathars</translate> | <translate><!--T:128--> Cathars Symbol</translate> }} }}} }} | ||
| Cemetery = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | cemeteries }} }}}|linkname={{{linkname|GhostsCastlesCemeteriesLink}}}|image=Scoring_C3_Cemetery.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:118--> Cemetery</translate> }}} }} | | Cemetery = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | cemeteries }} }}}|linkname={{{linkname|GhostsCastlesCemeteriesLink}}}|image=Scoring_C3_Cemetery.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:118--> Cemetery</translate> }}} }} | ||
Line 566: | Line 567: | ||
| short = <translate><!--T:64--> Robber's Son</translate> | | short = <translate><!--T:64--> Robber's Son</translate> | ||
| <translate><!--T:95--> Robber's Son Symbol</translate> }} }}} }} | | <translate><!--T:95--> Robber's Son Symbol</translate> }} }}} }} | ||
| SeasonsSymbol = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|SeasonsLink}}} | |||
|image={{#switch: {{{edition}}} | |||
| Feature_Seasons_C1.png }} | |||
|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:273--> Seasons</translate> | <translate><!--T:274--> Seasons Symbol</translate>}} }}} }} | |||
| School = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | school }} }}}|linkname={{{linkname|SchoolLink}}}|image=School_C1_Tiles_Front.jpg|size={{{size|100px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:182--> School</translate> }}} }} | |||
| Shed = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|BaseGameLink}}}|image=Feature_Shed_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:216--> Shed</translate> }}} }} | | Shed = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|BaseGameLink}}}|image=Feature_Shed_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:216--> Shed</translate> }}} }} | ||
| Sheds = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|{{#switch: {{{edition}}} | | Sheds = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|{{#switch: {{{edition}}} | ||
Line 579: | Line 585: | ||
| Feature_Sheep_C2.png }} | | Feature_Sheep_C2.png }} | ||
|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:28--> Sheep</translate> }}} }} | |size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:28--> Sheep</translate> }}} }} | ||
| Shrine = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | shrines }} }}}|linkname={{{linkname|CountKingRobberLink}}} | | Shrine = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | shrines }} }}}|linkname={{{linkname|CountKingRobberLink}}} | ||
|image={{#switch: {{{edition}}} | |image={{#switch: {{{edition}}} | ||
Line 617: | Line 622: | ||
| {{#ifeq: {{{variant}}} | short | <translate><!--T:32--> Foundation</translate> | <translate><!--T:33--> Tower Foundation</translate>}} }} }}} }} | | {{#ifeq: {{{variant}}} | short | <translate><!--T:32--> Foundation</translate> | <translate><!--T:33--> Tower Foundation</translate>}} }} }}} }} | ||
| Travellers = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|TollkeepersLink}}}|image=Tollkeepers_C2_Travellers.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:107--> Travellers</translate> }}} }} | | Travellers = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|TollkeepersLink}}}|image=Tollkeepers_C2_Travellers.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:107--> Travellers</translate> }}} }} | ||
| Tunnel = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|TunnelLink}}}|image=Feature_Tunnel_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:34--> Tunnel</translate> }}} }} | | Tunnel = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | tunnel }}}}}|linkname={{{linkname|TunnelLink}}}|image=Feature_Tunnel_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:34--> Tunnel</translate> }}} }} | ||
| TunnelRoad = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|TunnelLink}}}|image=Feature_Tunnel_Road_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:35--> Tunnel Road</translate> }}} }} | | TunnelRoad = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|TunnelLink}}}|image=Feature_Tunnel_Road_C1.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:35--> Tunnel Road</translate> }}} }} | ||
| Village = {{ItemLink|editionwarning=true|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|{{#switch: {{{edition}}} | | Village = {{ItemLink|editionwarning=true|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|{{#switch: {{{edition}}} | ||
Line 1,266: | Line 1,271: | ||
|| || colspan="4"| {{CastleLordsLink}} | || || colspan="4"| {{CastleLordsLink}} | ||
{{ItemExampleRow|template=Feature|name=CastleOnRoad|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=CastleOnRoad|short=empty|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=CastleRoad|short=empty|abbr=empty|image=true}} | |||
|- style="background-color: #cccccc; position:sticky; top: calc({{BreadcrumbWidth}} + 30px); z-index:2;" | |- style="background-color: #cccccc; position:sticky; top: calc({{BreadcrumbWidth}} + 30px); z-index:2;" | ||
Line 1,348: | Line 1,354: | ||
{{ItemExampleRow|template=Feature|name=RobbersSonSymbol|edition=C2|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=RobbersSonSymbol|edition=C2|short=empty|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=RobbersSonSymbol|edition=C1|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=RobbersSonSymbol|edition=C1|short=empty|abbr=empty|image=true}} | ||
|- style="background-color: #cccccc; position:sticky; top: calc({{BreadcrumbWidth}} + 30px); z-index:2;" | |||
|| || colspan="4"| {{SeasonsLink}} | |||
{{ItemExampleRow|template=Feature|name=SeasonsSymbol|edition=C1|short=true|abbr=empty|image=true}} | |||
|- style="background-color: #cccccc; position:sticky; top: calc({{BreadcrumbWidth}} + 30px); z-index:2;" | |- style="background-color: #cccccc; position:sticky; top: calc({{BreadcrumbWidth}} + 30px); z-index:2;" |
Latest revision as of 11:05, 1 May 2024
Unknown feature
{{{name}}}
Description
Features showed on tiles.
Params
name
(required) key name of featuretext
(optional) when want to use different text as feature name, for example plural or different grammar formformating
(optional) formating style for text likelowercase
edition
(optional/required) which edition rules and image to usevariant
(optional) [short
|abbr
|image
|imagename
|imagelink
| -empty- ] variant of output, check examples tablelinkname
(optional) Expansion Link template name if want to use different as default link, for example if feature used in other expansion like original one, like Universal Crop Circle in Halflingsanchor
(optional) when want to use different anchor as defaultsize
(optional) forvariant=image
andvariant=imageantext
change default size of image, options like50px
,x50px
or50x50px
Usage:
config
in{{Tile|..|config={{Feature|name=Well}} }}
- Link to Feature description with translated name of Feature
- Image of feature
Possible future version can read those data from some kind of database. Currently it is hardcoded. But when it will replaced by mentioned database approach, it will not need to update any Wiki page for it, because it's called by variables defined in this template.
Todo
The Watchtowers Watchtowers types with scoring- The Wonders of Humanity Missing symbols for features on wonder tiles (monastery, meeple, road, city)
The Markets of Leipzig Individual symbols of Leipzig's quarters
Official expansion features
Fan expansion features
- 29. Feature Wandering Preachers
- 19. An apple day: File:Symbol_AnAppleADay.png
- 20. White Dragon: Symbol_WhiteDragon.png
- 21. File:Symbol_TheRainbow.png
- 22. File:Symbol_Bastides.png
- 23. File:Symbol_WildBoars.png
- 24. File:Symbol_Horse.png
- 25. Symbol_DragonHunters.png
- 26. File:Symbol_Seasons_C1.png
- 28. File:Feat_HouseDeadEndStreet.png
Attention
For unknown reason in Castle which is generated by Template:Piece parameter linkname={{{linkname|}}
is interpered in Piece is set. So it send to ItemLink empty linkname
. It's need to make small hack linkname{{#if: {{{linkname|}} | | NULL}}={{{linkname|}}}
to create unnused parameter linknameNULL
.
Params
name
Required. Name of feature.edition
Optional. For expansions with edition depend rule pages, likeC1
,C2
,C3
variant
Optional. Some features can have definedshort
variant of name Fair except original Capatup Fair, orabbr
for G for Garden.count
Optional. Prepend count of feature with text{{{count}}}×
. Whentype=abbr
, then there is no space between count and feature.linkname
Optional. Overwrite original linkname based on Feature. Usable when want to link Fan expansions, or other expansion like initial expansion of feature.anchor
. Optional. Requested anchor if different like predefined. Predefined anchor is ignored whenlinkname
is set.