Difference between revisions of "Template:BeginTileList/cs"

From Wikicarpedia
Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
(Updating to match new version of source page)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
   |1
   |1
   |2 = class="wica-nesting-{{{nesting}}}"
   |2 = class="wica-nesting-{{{nesting}}}"
}}>{{#if: {{{tiles|}}} | '''Celkem kartiček:{{#switch: {{{tiles|}}}
}}>{{#if: {{{tiles|}}} | '''Celkem kartiček:{{CategoryTemplatecs|name={{#switch: {{{tiles|}}}
  | 1 = [[Category:1 kartička]]
  | 1 = 1 kartička
  | 2 = [[Category:2 kartičky]]
  | 2 = 2 kartičky
  | 3 = [[Category:3 kartičky]]
  | 3 = 3 kartičky
  | 4 = [[Category:4 kartičky]]
  | 4 = 4 kartičky
  | 5 = [[Category:5 kartiček]]
  | 5 = 5 kartiček
  | 6 = [[Category:6 kartiček]]
  | 6 = 6 kartiček
  | 7 = [[Category:7 kartiček]]
  | 7 = 7 kartiček
  | 8 = [[Category:8 kartiček]]
  | 8 = 8 kartiček
  | 9 = [[Category:9 kartiček]]
  | 9 = 9 kartiček
  | 10 = [[Category:10 kartiček]]
  | 10 = 10 kartiček
  | 12 = [[Category:12 kartiček]]
  | 12 = 12 kartiček
  | 15 = [[Category:15 kartiček]]
  | 15 = 15 kartiček
  | 17 = [[Category:17 kartiček]]
  | 17 = 17 kartiček
  | 18 = [[Category:18 kartiček]]
  | 18 = 18 kartiček
  | 20 = [[Category:20 kartiček]]
  | 20 = 20 kartiček
  | 22 = [[Category:22 kartiček]]
  | 22 = 22 kartiček
  | 24 = [[Category:24 kartiček]]
  | 24 = 24 kartiček
  | 30 = [[Category:30 kartiček]]
  | 30 = 30 kartiček
  | 48 = [[Category:48 kartiček]]
  | 48 = 48 kartiček
  | 60 = [[Category:60 kartiček]]
  | 60 = 60 kartiček
  | 72 = [[Category:72 kartiček]]
  | 72 = 72 kartiček
  | 73 = [[Category:73 kartiček]]
  | 73 = 73 kartiček
  | 84 = [[Category:84 kartiček]]
  | 84 = 84 kartiček
  | 91 = [[Category:91 kartiček]]
  | 91 = 91 kartiček
  | [[Category:Nezařazený počet kartiček]] }} {{{tiles}}}'''  | {{#if: {{{tokens|}}} | '''Celkem žetonů:{{CategoryTemplatecs|name=Hra/rozšíření s žetony}} {{{tokens}}}''' | {{#if: {{{cards|}}} | '''Celkem karet:{{CategoryTemplatecs|name=Hra/rozšíření s kartami}} {{{cards}}}''' | {{#if: {{{maps|}}} | '''Celkem map: {{{maps}}}''' | {{#if: {{{special|}}} | '''Celkem speciálních kartiček:{{CategoryTemplatecs|name=Hra/rozšíření se speciálními kartičkami}} {{{special}}}''' | {{#if:{{{description|}}}{{{count|}}} | '''Celkem {{#ifeq: {{{description|}}} | destiček | destiček{{CategoryTemplatecs|name=Hra/rozšíření s destičkou}} | {{{description|neznámé}}} }}: {{{count|?}}}''' }} }} }} }} }} }}</div><div {{#switch:{{{nesting|}}}
  | Nezařazený počet kartiček }} }} {{{tiles}}}'''  | {{#if: {{{tokens|}}} | '''Celkem žetonů:{{CategoryTemplatecs|name=Hra/rozšíření s žetony}} {{{tokens}}}''' | {{#if: {{{cards|}}} | '''Celkem karet:{{CategoryTemplatecs|name=Hra/rozšíření s kartami}} {{{cards}}}''' | {{#if: {{{maps|}}} | '''Celkem map: {{{maps}}}''' | {{#if: {{{special|}}} | '''Celkem speciálních kartiček:{{CategoryTemplatecs|name=Hra/rozšíření se speciálními kartičkami}} {{{special}}}''' | {{#if:{{{description|}}}{{{count|}}} | '''Celkem {{#ifeq: {{{description|}}} | destiček | destiček{{CategoryTemplatecs|name=Hra/rozšíření s destičkou}} | {{{description|neznámé}}} }}: {{{count|?}}}''' }} }} }} }} }} }}{{#if: {{{textbehind|}}} | &nbsp;{{{textbehind|}}} }}</div><div {{#switch:{{{nesting|}}}
   |0
   |0
   |1
   |1
Line 38: Line 38:
== Description ==
== Description ==
Begin Tile List, with possible set width of tiles, which means, how much tiles will be +- in a row.
Begin Tile List, with possible set width of tiles, which means, how much tiles will be +- in a row.
<span>{{#ifeq: {{PAGELANGUAGE}} | cs | <br />{{Cs|Category description}} }}</span>


== Params ==
== Params ==
Line 48: Line 49:
* <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>textbehind</code> (optional): Alternative of displaying the text after the parameter with the number.
* <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}}.
* <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 ==
{| class="wikitable"
{| class="wikitable light"
!! Wiki !! Output
! Wiki !! Output
|-
|-
|| <code><nowiki>{{BeginTileList}}</nowiki></code> || Start tile list section with default width 700px  
|| <code><nowiki>{{BeginTileList}}</nowiki></code> || Start tile list section with default width 700px  
Line 67: Line 69:
|-
|-
| colspan="2" | {{BeginTileList|tiles=16 + 1 starting tile}}...{{EndTileList}}
| colspan="2" | {{BeginTileList|tiles=16 + 1 starting tile}}...{{EndTileList}}
|-
! <code><nowiki>Or {{BeginTileList|tiles=16|textbehind=+ 1 starting tile}}</nowiki></code> || Start tile list section with parameter "textbehind"
|-
| colspan="2" | {{BeginTileList|tiles=16|textbehind=+ 1 starting tile}}...{{EndTileList}}
|-
|-
! <code><nowiki>{{BeginTileList|tokens=8}}</nowiki></code> || Start token list section and show '''Total tokens: 8''' above
! <code><nowiki>{{BeginTileList|tokens=8}}</nowiki></code> || Start token list section and show '''Total tokens: 8''' above

Latest revision as of 09:19, 15 June 2024

Description

Begin Tile List, with possible set width of tiles, which means, how much tiles will be +- in a row.
Kategorie vytvořené pomocí parametrů z této šablony naleznete v popisu šablony: CategoryTemplatecs.

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)
    • textbehind (optional): Alternative of displaying the text after the parameter with the number.
  • 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
...
Or {{BeginTileList|tiles=16|textbehind=+ 1 starting tile}} Start tile list section with parameter "textbehind"
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
Celkem Seasons conditions tokens: 4
...