Difference between revisions of "Template:BeginTileList/cs"

From Wikicarpedia
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{tiles|}}} | <div {{#switch:{{{nesting|}}}
<includeonly><div {{#switch:{{{nesting|}}}
   |0
   |0
   |1
   |1
   |2 = class="wica-nesting-{{{nesting}}}"
   |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Celkem kartiček: {{{tiles}}} '''</div> }}{{#if: {{{tokens|}}} | <div {{#switch:{{{nesting|}}}
}}>{{#if: {{{tiles|}}} | '''Celkem kartiček: {{{tiles}}}'''  | {{#if: {{{tokens|}}} | '''Celkem žetonů:{{ParamsBeginTileListcs|tokens={{{tokens|}}}}} {{{tokens}}}''' | {{#if: {{{cards|}}} | '''Celkem karet:{{ParamsBeginTileListcs|cards={{{cards|}}}}} {{{cards}}}''' | {{#if: {{{maps|}}} | '''Celkem map: {{{maps}}}''' | {{#if: {{{special|}}} | '''Celkem speciálních kartiček:{{ParamsBeginTileListcs|special={{{special|}}}}} {{{special}}}''' | {{#if:{{{description|}}}{{{count|}}} | '''<span lang="en" dir="ltr" class="mw-content-ltr">Total {{{description|unknown}}}: {{{count|?}}}</span>''' }} }} }} }} }} }}</div><div {{#switch:{{{nesting|}}}
  |0
  |1
  |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Celkem žetonů:{{ParamsBeginTileListcs|tokens={{{tokens|}}}}} {{{tokens}}} '''</div> }}{{#if: {{{cards|}}} | <div {{#switch:{{{nesting|}}}
  |0
  |1
  |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Celkem karet:{{ParamsBeginTileListcs|cards={{{cards|}}}}} {{{cards}}} '''</div> }}{{#if: {{{maps|}}} | <div {{#switch:{{{nesting|}}}
  |0
  |1
  |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Celkem map: {{{maps}}} '''</div> }}{{#if: {{{special|}}} | <div {{#switch:{{{nesting|}}}
  |0
  |1
  |2 = class="wica-nesting-{{{nesting}}}"
}}>'''Celkem speciálních kartiček:{{ParamsBeginTileListcs|special={{{special|}}}}} {{{special}}} '''</div>
}}<div {{#switch:{{{nesting|}}}
   |0
   |0
   |1
   |1
Line 40: Line 23:
* <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)
* <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)
* <code>description</code> + <code>count</code> (optional). Pair for one expansion only type of list, when we want to divide different token types, etc.. Like <code>Season condition tokens</code> and <code>Season marker token</code> for {{SeasonsLink|logo=hidden}}.


== Examples ==
== Examples ==
Line 78: Line 62:
|-
|-
| colspan="2" | {{BeginTileList|nesting=2}}...{{EndTileList}}
| colspan="2" | {{BeginTileList|nesting=2}}...{{EndTileList}}
|-
! <code><nowiki>{{BeginTileList|count=4|description=Seasons conditions tokens}}</nowiki></code> || One time usade of description
|-
| colspan="2" | {{BeginTileList|count=4|description=Seasons conditions tokens}}...{{EndTileList}}
|}
|}
</noinclude>
</noinclude>

Revision as of 11:09, 1 May 2024

Description

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

Params

  • width (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)
  • description + count (optional). Pair for one expansion only type of list, when we want to divide different token types, etc.. Like Season condition tokens and Season marker token for SeasonsSeasons.

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
Celkem kartiček: 72
...
{{BeginTileList|tiles=16 + 1 starting tile}} Start tile list section and show Total tiles: 16 + 1 starting tile above
Celkem kartiček: 16 + 1 starting tile
...
{{BeginTileList|tokens=8}} Start token list section and show Total tokens: 8 above
Celkem žetonů: 8
...
{{BeginTileList|cards=10}} Start cards list section and show Total cards: 10 above
Celkem karet: 10
...
{{BeginTileList|maps=1}} Start maps list section and show Total maps: 1 above
Celkem map: 1
...
{{BeginTileList|special=2}} Start special tiles list section and show Total special tiles: 2 above
Celkem speciálních kartiček: 2
...
{{BeginTileList|nesting=2}} Nesting level 2
...
{{BeginTileList|count=4|description=Seasons conditions tokens}} One time usade of description
Total Seasons conditions tokens: 4
...