Difference between revisions of "Template:Figure/fr"
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 32: | Line 32: | ||
| Witch = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|MageWitchLink}}}|image=Figure_Witch.png|ratio={{{ratio|1}}}|size={{{size|x62px}}}|text=Sorcière }} | | Witch = {{ItemLink|variant={{{variant|}}}|edition={{{edition|}}}|anchor={{{anchor|}}}|linkname={{{linkname|MageWitchLink}}}|image=Figure_Witch.png|ratio={{{ratio|1}}}|size={{{size|x62px}}}|text=Sorcière }} | ||
| <code>Pion inconnu</code> {{{name}}} | | <code>Pion inconnu</code> {{{name}}} | ||
}}<noinclude><languages />{{Breadcrumbs|link1={{EditorManualLink}}}}{{#switch: {{PAGELANGUAGE}} | }}{{#ifeq: {{{variant}}} | figure | <span lang="en" dir="ltr" class="mw-content-ltr">figure</span> }}<noinclude><languages />{{Breadcrumbs|link1={{EditorManualLink}}}}{{#switch: {{PAGELANGUAGE}} | ||
| en = [[Category:Translatable_templates]] | | en = [[Category:Translatable_templates]] | ||
| | | | ||
Line 47: | Line 47: | ||
* <code>name</code> Required. Name of figure. | * <code>name</code> Required. Name of figure. | ||
* <code>edition</code> Optional. For expansions with edition depend rule pages, like <code>C1</code>, <code>C2</code>, <code>C3</code>, <code>WE1</code>, <code>WE2</code>, <code>WE3</code> | * <code>edition</code> Optional. For expansions with edition depend rule pages, like <code>C1</code>, <code>C2</code>, <code>C3</code>, <code>WE1</code>, <code>WE2</code>, <code>WE3</code> | ||
* <code>variant</code> Optional. If value is set <code>image</code> then image with link to expansion is showed instead of name of figure. | * <code>variant</code> Optional. [<code>image</code> | <code>figure</code> | -empty- ]. If value is set <code>image</code> then image with link to expansion is showed instead of name of figure. When value is <code><figure> "figure" text is added after name of figure, like Abbot figure. | ||
* <code>ratio</code> Optional. Float number to resize image in requested ratio, when want to keep calculated dimensions and resizing to specific ration, like <code><nowiki>{{{#exp: 100/150 }}}</nowiki></code> when want ratio from 100px to 150px or by <code>0.5</code> for 50% of default size | * <code>ratio</code> Optional. Float number to resize image in requested ratio, when want to keep calculated dimensions and resizing to specific ration, like <code><nowiki>{{{#exp: 100/150 }}}</nowiki></code> when want ratio from 100px to 150px or by <code>0.5</code> for 50% of default size | ||
* <code>size</code> Optional. Size of image for <code>variant=image</code> overwrites predefined size which was calculated to compare with other pieces. | * <code>size</code> Optional. Size of image for <code>variant=image</code> overwrites predefined size which was calculated to compare with other pieces. |
Revision as of 22:35, 13 March 2023
Pion inconnu
{{{name}}}
Description
Carcassonne game Figure - Name with link to rules or Image with link to rules.
Images normalized to height in mm x 3,125 px. Normal meeple 50px in 3D style image.
Measurements made by Scott Carcassonne Central Topic
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.
Params
name
Required. Name of figure.edition
Optional. For expansions with edition depend rule pages, likeC1
,C2
,C3
,WE1
,WE2
,WE3
variant
Optional. [image
|figure
| -empty- ]. If value is setimage
then image with link to expansion is showed instead of name of figure. When value is<figure> "figure" text is added after name of figure, like Abbot figure.
ratio
Optional. Float number to resize image in requested ratio, when want to keep calculated dimensions and resizing to specific ration, like{{{#exp: 100/150 }}}
when want ratio from 100px to 150px or by0.5
for 50% of default sizesize
Optional. Size of image forvariant=image
overwrites predefined size which was calculated to compare with other pieces.count
Optional. Prepend count of feature with text {{{count}}}x. 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.
Old stuff
Need to move in proper way with image to Template:Piece
| Catapult = {{CatapultLink|edition={{{edition|}}}|logo=hide|text=Catapult}}
| Ferry = {{FerriesLink|edition={{{edition|}}}|logo=hide|text=Ferry }}
| FlightDie = {{FlyingMachinesLink|edition={{{edition|}}}|logo=hide|text=Flight die }}
| GoldIngot = {{GoldminesLink|edition={{{edition|}}}|logo=hide|text=Gold ingot }}
Examples
Code
Text name
variant=image
Jeu de base
{{Figure|name=Meeple|edition=C3}}
Meeple
{{Figure|name=Meeple|edition=C2}}
Meeple
{{Figure|name=Meeple|edition=C1}}
Partisan
{{Figure|name=NormalMeeple|edition=C3}}
Meeple normal
{{Figure|name=NormalMeeple|edition=C2}}
Meeple normal
{{Figure|name=NormalMeeple|edition=C1}}
Partisan normal
L’Abbé
{{Figure|name=Abbot}}
Abbé
Ext. 1 – Auberges et Cathédrales
{{Figure|name=LargeMeeple|edition=C3}}
Grand meeple
{{Figure|name=LargeMeeple|edition=C2}}
Grand meeple
{{Figure|name=LargeMeeple|edition=C1}}
Gros partisan
Ext. 2 – Marchands et Bâtisseurs
{{Figure|name=Builder}}
Bâtisseur
{{Figure|name=Pig}}
Cochon
Ext. 3 – Princesse et Dragon
{{Figure|name=Dragon}}
Dragon
{{Figure|name=Fairy}}
Fée
{{Figure|name=RedDragon}}
Dragon rouge
Ext. 5 – Maires et Monastères
{{Figure|name=Mayor}}
Maire
{{Figure|name=Wagon}}
Charriot
{{Figure|name=Barn}}
Grange
Ext. 6 – Comte, Roi et Brigand
{{Figure|name=Count}}
Comte
Ext. 9 – Moutons et Collines
{{Figure|name=Shepherd}}
Berger
Ext. 10 – Tous en Piste !
{{Figure|name=BigTop}}
Chapiteau
{{Figure|name=Ringmaster}}
Directeur de cirque
Ext. 11 – Fantômes, Châteaux et Cimetières
{{Figure|name=GuardMeeple}}
Meeple Sentinelle
{{Figure|name=Ghost}}
Fantôme
La Roue de la Fortune
{{Figure|name=BigPinkPig}}
Grand cochon rose
Mini n°2 – Les Hérauts
{{Figure|name=Messenger}}
Meeplette
Mini n°5 – Mage et Sorcière
{{Figure|name=Mage}}
Mage
{{Figure|name=Witch}}
Sorcière
Mini n°6 – Les Voleurs
{{Figure|name=Robber}}
Voleur
Le Fantôme
{{Figure|name=Phantom}}
Fantôme
L’École
{{Figure|name=Teacher}}
Enseignant
Édition Hiver
Le bonhomme de pain d’épice
{{Figure|name=GingerbreadMan}}
Bonhomme de pain d’épice
{{Figure|name=GingerbreadManToken}}
Jeton Bonhomme de pain d’épice
Extensions de fans
Le Dragon Noir
{{Figure|name=BlackDragon}}
Dragon noir
Le Coursier (The Courier)
{{Figure|name=Courier}}
Coursier
Pâques à Carcassonne
{{Figure|name=EasterBunny}}
Lapin de Pâques
The Obelisk
{{Figure|name=Obelisk}}
Obélisque