Difference between revisions of "Template:BeginTileList/fr"

From Wikicarpedia
Jump to navigation Jump to search
(Created page with "Total des cartes :")
(Updating to match new version of source page)
 
(6 intermediate revisions by 2 users not shown)
Line 15: Line 15:
   |1
   |1
   |2 = class="wica-nesting-{{{nesting}}}"
   |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Total des cartes : {{{maps}}} '''</div>
}}>'''Total des cartes de Carcassonne : {{{maps}}} '''</div> }}{{#if: {{{special|}}} | <div {{#switch:{{{nesting|}}}
  |0
  |1
  |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Total des tuiles spéciales : {{{special}}} '''</div>
}}<div {{#switch:{{{nesting|}}}
}}<div {{#switch:{{{nesting|}}}
   |0
   |0
   |1
   |1
   |2 = class="wica-nesting-{{{nesting}}}"
   |2 = class="wica-nesting-{{{nesting}}}"
}} style="display: flex; flex-wrap: wrap; max-width:{{{width|{{{1|700px}}}}}}; {{#ifeq: {{{align}}} | bottom | align-items: baseline;}}">{{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|}}} }}</includeonly><noinclude><languages/>{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
}} style="display: flex; flex-wrap: wrap; max-width:{{{width|{{{1|700px}}}}}}; {{#ifeq: {{{align}}} | bottom | align-items: baseline;}}">{{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=BeginTileList }}</includeonly><noinclude><languages/>{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{Breadcrumbs
{{Breadcrumbs
|link1={{EditorManualLink}}
|link1={{EditorManualLink}}
Line 35: Line 39:
* <code>cards</code> (optional). Default <code>-empty-</code>. Show text '''Total cards: <code>/TEXT/</code>''' on begin of list of cards. Allowed value <code><nowiki>/TEXT/</nowiki></code>
* <code>cards</code> (optional). Default <code>-empty-</code>. Show text '''Total cards: <code>/TEXT/</code>''' on begin of list of cards. Allowed value <code><nowiki>/TEXT/</nowiki></code>
* <code>maps</code> (optional). Default <code>-empty-</code>. Show text '''Total maps: <code>/TEXT/</code>''' on begin of list of maps. Allowed value <code><nowiki>/TEXT/</nowiki></code>
* <code>maps</code> (optional). Default <code>-empty-</code>. Show text '''Total maps: <code>/TEXT/</code>''' on begin of list of maps. Allowed value <code><nowiki>/TEXT/</nowiki></code>
* <code>special</code> (optional). Default <code>-empty-</code>. Show text '''Total special tiles: <code>/TEXT/</code>''' on begin of list of special tiles. Allowed value <code><nowiki>/TEXT/</nowiki></code> (Used for example for scoring tiles, Abbey tiles, King and Robber tiles)


== Examples ==
== Examples ==
Line 58: Line 63:
| colspan="2" | {{BeginTileList|tokens=8}}...{{EndTileList}}
| colspan="2" | {{BeginTileList|tokens=8}}...{{EndTileList}}
|-
|-
! <code><nowiki>{{BeginTileList|cards=10}}</nowiki></code> || Start cards list section and show '''Total cards: 8''' above
! <code><nowiki>{{BeginTileList|cards=10}}</nowiki></code> || Start cards list section and show '''Total cards: 10''' above
|-
|-
| colspan="2" | {{BeginTileList|cards=10}}...{{EndTileList}}
| colspan="2" | {{BeginTileList|cards=10}}...{{EndTileList}}
|-
|-
! <code><nowiki>{{BeginTileList|maps=1}}</nowiki></code> || Start maps list section and show '''Total maps: 8''' above
! <code><nowiki>{{BeginTileList|maps=1}}</nowiki></code> || Start maps list section and show '''Total maps: 1''' above
|-
|-
| colspan="2" | {{BeginTileList|maps=1}}...{{EndTileList}}
| colspan="2" | {{BeginTileList|maps=1}}...{{EndTileList}}
|-
! <code><nowiki>{{BeginTileList|special=2}}</nowiki></code> || Start special tiles list section and show '''Total special tiles: 2''' above
|-
| colspan="2" | {{BeginTileList|special=2}}...{{EndTileList}}
|-
|-
! <code><nowiki>{{BeginTileList|nesting=2}}</nowiki></code> || Nesting level 2
! <code><nowiki>{{BeginTileList|nesting=2}}</nowiki></code> || Nesting level 2

Latest revision as of 20:12, 28 April 2024

Description

Begin Tile List, with possible set width of tiles, which means, how much tiles will be +- in a row.

Params

  • width or (1 or 1st deprecated) (optional). Default 700px. Set max width of list. Allowed value /CSS_SIZE/.
  • nesting (optional) - [ 0, 1, 2 ] Append wica-nesting-# class for margin level 0 (none), level 1 (22px) or level 2 (42px).
  • align (optional). [bottom|-empty-] Vertical align of content, default top.
  • tiles (optional). Default -empty-. Show text Total tiles: /TEXT/ on begin of list of tiles. Allowed value /TEXT/
  • tokens (optional). Default -empty-. Show text Total tokens: /TEXT/ on begin of list of tokens. Allowed value /TEXT/
  • cards (optional). Default -empty-. Show text Total cards: /TEXT/ on begin of list of cards. Allowed value /TEXT/
  • maps (optional). Default -empty-. Show text Total maps: /TEXT/ on begin of list of maps. Allowed value /TEXT/
  • special (optional). Default -empty-. Show text Total special tiles: /TEXT/ on begin of list of special tiles. Allowed value /TEXT/ (Used for example for scoring tiles, Abbey tiles, King and Robber tiles)

Examples

! Wiki Output
{{BeginTileList}} Start tile list section with default width 700px
{{BeginTileList|width=300px}} Start tile list section with specific width 300px
{{BeginTileList|width=100%}} Start tile list section with width 100%
{{BeginTileList|tiles=72}} Start tile list section and show Total tiles: 72 above
Total des tuiles : 72
...
{{BeginTileList|tiles=16 + 1 starting tile}} Start tile list section and show Total tiles: 16 + 1 starting tile above
Total des tuiles : 16 + 1 starting tile
...
{{BeginTileList|tokens=8}} Start token list section and show Total tokens: 8 above
Total des jetons : 8
...
{{BeginTileList|cards=10}} Start cards list section and show Total cards: 10 above
Total des cartes : 10
...
{{BeginTileList|maps=1}} Start maps list section and show Total maps: 1 above
Total des cartes de Carcassonne : 1
...
{{BeginTileList|special=2}} Start special tiles list section and show Total special tiles: 2 above
Total des tuiles spéciales : 2
...
{{BeginTileList|nesting=2}} Nesting level 2
...