Difference between revisions of "Template:BeginTileList"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|1 | |1 | ||
|2 = class="wica-nesting-{{{nesting}}}" | |2 = class="wica-nesting-{{{nesting}}}" | ||
}}>{{#if: {{{tiles|}}} | '''<translate><!--T:1--> Total tiles:</translate> {{{tiles}}}''' | {{#if: {{{tokens|}}} | '''<translate><!--T:2--> Total tokens:</translate> {{{tokens}}}''' | {{#if: {{{cards|}}} | '''<translate><!--T:3--> Total cards:</translate> {{{cards}}}''' | {{#if: {{{maps|}}} | '''<translate><!--T:4--> Total maps:</translate> {{{maps}}}''' | {{#if: {{{special|}}} | '''<translate><!--T:5--> Total special tiles:</translate> {{{special}}}''' | {{#if:{{{description|}}}{{{count|}}} | '''<translate><!--T:6--> Total {{{description|unknown}}}: {{{count|?}}}</translate>''' }} }} }} }} }} }}</div><div {{#switch:{{{nesting|}}} | }}>{{#if: {{{tiles|}}} | '''<translate><!--T:1--> Total tiles:</translate> {{{tiles}}}''' | {{#if: {{{tokens|}}} | '''<translate><!--T:2--> Total tokens:</translate> {{{tokens}}}''' | {{#if: {{{cards|}}} | '''<translate><!--T:3--> Total cards:</translate> {{{cards}}}''' | {{#if: {{{maps|}}} | '''<translate><!--T:4--> Total maps:</translate> {{{maps}}}''' | {{#if: {{{special|}}} | '''<translate><!--T:5--> Total special tiles:</translate> {{{special}}}''' | {{#if:{{{description|}}}{{{count|}}} | '''<translate><!--T:6--> Total {{{description|unknown}}}: {{{count|?}}}</translate>''' }} }} }} }} }} }}{{#if: {{{textbehind|}}} | {{{textbehind|}}} }}</div><div {{#switch:{{{nesting|}}} | ||
|0 | |0 | ||
|1 | |1 | ||
Line 13: | Line 13: | ||
== 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 />{{ | <span>{{#ifeq: {{PAGELANGUAGE}} | cs | <br />{{Cs|Category description}} }}</span> | ||
== Params == | == Params == | ||
Line 24: | Line 24: | ||
* <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 | |||
|- | |- | ||
|| <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 43: | Line 44: | ||
|- | |- | ||
| colspan="2" | {{BeginTileList|tiles=16 + 1 starting tile}}...{{EndTileList}} | | colspan="2" | {{BeginTileList|tiles=16 + 1 starting tile}}...{{EndTileList}} | ||
|- | |||
! Or <code><nowiki>{{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:21, 15 June 2024
Description
Begin Tile List, with possible set width of tiles, which means, how much tiles will be +- in a row.
Params
width
(optional). Default700px
. Set max width of list. Allowed value/CSS_SIZE/
.nesting
(optional) - [0
,1
,2
] Appendwica-nesting-#
class for margin level0
(none), level1
(22px
) or level2
(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.. LikeSeason condition tokens
andSeason marker token
forSeasons.
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 tiles: 72 ...
| |
{{BeginTileList|tiles=16 + 1 starting tile}} |
Start tile list section and show Total tiles: 16 + 1 starting tile above |
Total tiles: 16 + 1 starting tile ...
| |
Or {{BeginTileList|tiles=16|textbehind=+ 1 starting tile}} |
Start tile list section with parameter "textbehind" |
Total tiles: 16 + 1 starting tile ...
| |
{{BeginTileList|tokens=8}} |
Start token list section and show Total tokens: 8 above |
Total tokens: 8 ...
| |
{{BeginTileList|cards=10}} |
Start cards list section and show Total cards: 10 above |
Total cards: 10 ...
| |
{{BeginTileList|maps=1}} |
Start maps list section and show Total maps: 1 above |
Total maps: 1 ...
| |
{{BeginTileList|special=2}} |
Start special tiles list section and show Total special tiles: 2 above |
Total special tiles: 2 ...
| |
{{BeginTileList|nesting=2}} |
Nesting level 2 |
...
| |
{{BeginTileList|count=4|description=Seasons conditions tokens}} |
One time usade of description |
Total Seasons conditions tokens: 4 ...
|