Difference between revisions of "Template:Feature"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 200: | Line 200: | ||
| 50px }} }}} | | 50px }} }}} | ||
|formating={{{formating|}}}|text={{{text|<translate><!--T:63--> Shield Crop Circle</translate> }}} }} | |formating={{{formating|}}}|text={{{text|<translate><!--T:63--> Shield Crop Circle</translate> }}} }} | ||
| CropCircleUniversal = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|crop_circle}}}|linkname={{{linkname|HalflingsLink}}}|image={{#switch: {{{edition}}} | | CropCircleUniversal = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | crop_circle }} }}}|linkname={{{linkname|HalflingsLink}}}|image={{#switch: {{{edition}}} | ||
| C1 = Feature_Crop_Circle_Universal_C1.png | | C1 = Feature_Crop_Circle_Universal_C1.png | ||
| Feature_Crop_Circle_Universal_C2.png }} | | Feature_Crop_Circle_Universal_C2.png }} | ||
Line 362: | Line 362: | ||
| HauntedCastle = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | castles }} }}}|linkname={{{linkname|GhostsCastlesCemeteriesLink}}}|image=Scoring_C3_Haunted_Castle.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:120--> Castle</translate> | <translate><!--T:121--> Haunted Castle</translate>}}}}} }} | | HauntedCastle = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | castles }} }}}|linkname={{{linkname|GhostsCastlesCemeteriesLink}}}|image=Scoring_C3_Haunted_Castle.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:120--> Castle</translate> | <translate><!--T:121--> Haunted Castle</translate>}}}}} }} | ||
| HauntedCastleRuins = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|GhostsCastlesCemeteriesLink}}}|image=Feature_HauntedCastleRuins_C3.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:231--> Castle ruins</translate> | <translate><!--T:232--> Haunted Castle Ruins</translate>}}}}} }} | | HauntedCastleRuins = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|GhostsCastlesCemeteriesLink}}}|image=Feature_HauntedCastleRuins_C3.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:231--> Castle ruins</translate> | <translate><!--T:232--> Haunted Castle Ruins</translate>}}}}} }} | ||
| Hill = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{# | | Hill = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#ifeq: {{{linkname|}}} | HalflingsLink | special_symbols | hill }} }}}|linkname={{{linkname|HillsSheepLink}}}|image={{#switch: {{{edition}}} | ||
| C1 = Feature_Hill_C1.png | | C1 = Feature_Hill_C1.png | ||
| Feature_Hill_C2.png }} | | Feature_Hill_C2.png }} | ||
Line 574: | Line 574: | ||
| Feature_Sheds_C3.png }} | | Feature_Sheds_C3.png }} | ||
|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:115--> Sheds</translate> }}} }} | |size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:115--> Sheds</translate> }}} }} | ||
| Sheep = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{# | | Sheep = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#ifeq: {{{linkname|}}} | HalflingsLink | special_symbols | sheep }} }}}|linkname={{{linkname|HillsSheepLink}}}|image={{#switch: {{{edition}}} | ||
| C1 = Feature_Sheep_C1.png | | C1 = Feature_Sheep_C1.png | ||
| Feature_Sheep_C2.png }} | | Feature_Sheep_C2.png }} | ||
Line 594: | Line 594: | ||
| SignpostStraightArrow = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|SignpostsLink}}}|image=Feature_Signposts_Arrow_Right_C3.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:224--> Signpost Right</translate> | <translate><!--T:186--> Signpost Right Arrow</translate> }} }}} }} | | SignpostStraightArrow = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | gameplay }} }}}|linkname={{{linkname|SignpostsLink}}}|image=Feature_Signposts_Arrow_Right_C3.png|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:224--> Signpost Right</translate> | <translate><!--T:186--> Signpost Right Arrow</translate> }} }}} }} | ||
| SoloveiRazboynikTree = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|RussianPromosLink}}}|image=Russian_Promos_C1_Description_Tile_03.jpg|size={{{size|65px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:172--> Solovei Razboynik</translate> | <translate><!--T:173--> Solovei Razboynik's Tree</translate>}} }}} }} | | SoloveiRazboynikTree = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|RussianPromosLink}}}|image=Russian_Promos_C1_Description_Tile_03.jpg|size={{{size|65px}}}|formating={{{formating|}}}|text={{{text|{{#ifeq: {{{variant}}} | short | <translate><!--T:172--> Solovei Razboynik</translate> | <translate><!--T:173--> Solovei Razboynik's Tree</translate>}} }}} }} | ||
| SpecialMonastery = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|MonasteriesGermanyLink}}}|image={{#switch: {{{edition}}} | | SpecialMonastery = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#if: {{{linkname|}}} | | monasteries }} }}}|linkname={{{linkname|MonasteriesGermanyLink}}}|image={{#switch: {{{edition}}} | ||
| C1 = Monasteries_C1_Picture_GE06.jpg | | C1 = Monasteries_C1_Picture_GE06.jpg | ||
| C2 = Monasteries_C2_Picture_GE06.png | | C2 = Monasteries_C2_Picture_GE06.png | ||
Line 633: | Line 633: | ||
| Feature_Village_C3.png }} | | Feature_Village_C3.png }} | ||
|size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:66--> Village</translate> }}} }} | |size={{{size|50px}}}|formating={{{formating|}}}|text={{{text|<translate><!--T:66--> Village</translate> }}} }} | ||
| Vineyard = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{# | | Vineyard = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|{{#ifeq: {{{linkname|}}} | HalflingsLink | special_symbols | vineyard }} }}}|linkname={{{linkname|HillsSheepLink}}}|image={{#switch: {{{edition}}} | ||
| C1 = Feature_Vineyard_C1.png | | C1 = Feature_Vineyard_C1.png | ||
| Scoring C2 Vineyard.png }} | | Scoring C2 Vineyard.png }} | ||
Line 1,067: | Line 1,067: | ||
{{ItemExampleRow|template=Feature|name=Sheep|edition=C2|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=Sheep|edition=C2|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=Sheep|edition=C1|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=Sheep|edition=C1|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=CropCircleUniversal|edition=C2 | {{ItemExampleRow|template=Feature|name=CropCircleUniversal|edition=C2|short=true|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=CropCircleUniversal|edition=C1 | {{ItemExampleRow|template=Feature|name=CropCircleUniversal|edition=C1|short=true|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=Vineyard|edition=C2|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=Vineyard|edition=C2|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | ||
{{ItemExampleRow|template=Feature|name=Vineyard|edition=C1|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} | {{ItemExampleRow|template=Feature|name=Vineyard|edition=C1|linkname=HalflingsLink|short=empty|abbr=empty|image=true}} |
Revision as of 15:59, 18 April 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.