Difference between revisions of "Template:BeginTileList"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Tag: Undo |
||
(35 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{tiles|}}} | '''<translate><!--T:1--> Total tiles:</translate> {{{tiles}}} ''' }} | <includeonly>{{#if: {{{tiles|}}} | <div {{#switch:{{{nesting|}}} | ||
< | |0 | ||
|1 | |||
|2 = class="wica-nesting-{{{nesting}}}" | |||
}}>'''<translate><!--T:1--> Total tiles:</translate> {{{tiles}}} '''</div> }}{{#if: {{{tokens|}}} | <div {{#switch:{{{nesting|}}} | |||
|0 | |||
|1 | |||
|2 = class="wica-nesting-{{{nesting}}}" | |||
}}>'''<translate><!--T:2--> Total tokens:</translate> {{{tokens}}} '''</div> }}{{#if: {{{cards|}}} | <div {{#switch:{{{nesting|}}} | |||
|0 | |||
|1 | |||
|2 = class="wica-nesting-{{{nesting}}}" | |||
}}>'''<translate><!--T:3--> Total cards:</translate> {{{cards}}} '''</div> }}{{#if: {{{maps|}}} | <div {{#switch:{{{nesting|}}} | |||
|0 | |||
|1 | |||
|2 = class="wica-nesting-{{{nesting}}}" | |||
}}>'''<translate><!--T:4--> Total maps:</translate> {{{maps}}} '''</div> }}{{#if: {{{special|}}} | <div {{#switch:{{{nesting|}}} | |||
|0 | |||
|1 | |||
|2 = class="wica-nesting-{{{nesting}}}" | |||
}}>'''<translate><!--T:5--> Total special tiles:</translate> {{{special}}} '''</div> | |||
}}<div {{#switch:{{{nesting|}}} | |||
|0 | |||
|1 | |||
|2 = class="wica-nesting-{{{nesting}}}" | |||
}} style="display: flex; flex-wrap: wrap; max-width:{{{width|{{{1|700px}}}}}}; {{#ifeq: {{{align}}} | bottom | align-items: baseline;}}">{{<!--OldNumberedParametersWarning-->ParamsUpozorneni|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]]}} | |||
{{Breadcrumbs | |||
|link1={{EditorManualLink}} | |||
}} | |||
== 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. | ||
== Params == | == Params == | ||
* 1st or <code> | * <code>width</code> or (<del><code>1</code></del> or <del>1st</del> ''deprecated'') (optional). Default <code>700px</code>. Set max width of list. Allowed value <code><nowiki>/CSS_SIZE/</nowiki></code>. | ||
* <code> | * <code>nesting</code> (optional) - [ <code>0</code>, <code>1</code>, <code>2</code> ] Append <code>wica-nesting-#</code> class for margin level <code>0</code> (none), level <code>1</code> (<code>22px</code>) or level <code>2</code> (<code>42px</code>). | ||
* <code>align</code> (optional). [<code>bottom</code>|-empty-] Vertical align of content, default top. | |||
* <code>tiles</code> (optional). Default <code>-empty-</code>. Show text '''Total tiles: <code>/TEXT/</code>''' on begin of list of tiles. Allowed value <code><nowiki>/TEXT/</nowiki></code> | |||
* <code>tokens</code> (optional). Default <code>-empty-</code>. Show text '''Total tokens: <code>/TEXT/</code>''' on begin of list of tokens. 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>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> | |||
== Examples == | == Examples == | ||
{| class="wikitable" | {| class="wikitable" | ||
! 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 | ||
|- | |- | ||
| <code><nowiki>{{BeginTileList|300px}}</nowiki></code> || Start tile list section with specific width 300px | || <code><nowiki>{{BeginTileList|width=300px}}</nowiki></code> || Start tile list section with specific width 300px | ||
|- | |- | ||
| <code><nowiki>{{BeginTileList|100%}}</nowiki></code> || Start tile list section with width 100% | || <code><nowiki>{{BeginTileList|width=100%}}</nowiki></code> || Start tile list section with width 100% | ||
|- | |- | ||
! <code><nowiki>{{BeginTileList|tiles=72}}</nowiki></code> || Start tile list section and show '''Total tiles: 72''' above | |||
|- | |||
| colspan="2" | {{BeginTileList|tiles=72}}...{{EndTileList}} | |||
|- | |||
! <code><nowiki>{{BeginTileList|tiles=16 + 1 starting tile}}</nowiki></code> || Start tile list section and show '''Total tiles: 16 + 1 starting tile''' above | |||
|- | |||
| colspan="2" | {{BeginTileList|tiles=16 + 1 starting tile}}...{{EndTileList}} | |||
|- | |||
! <code><nowiki>{{BeginTileList|tokens=8}}</nowiki></code> || Start token list section and show '''Total tokens: 8''' above | |||
|- | |||
| colspan="2" | {{BeginTileList|tokens=8}}...{{EndTileList}} | |||
|- | |||
! <code><nowiki>{{BeginTileList|cards=10}}</nowiki></code> || Start cards list section and show '''Total cards: 10''' above | |||
|- | |||
| colspan="2" | {{BeginTileList|cards=10}}...{{EndTileList}} | |||
|- | |||
! <code><nowiki>{{BeginTileList|maps=1}}</nowiki></code> || Start maps list section and show '''Total maps: 1''' above | |||
|- | |||
| 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 | |||
|- | |||
| colspan="2" | {{BeginTileList|nesting=2}}...{{EndTileList}} | |||
|} | |||
</noinclude> | </noinclude> |
Revision as of 18:52, 25 March 2024
Description
Begin Tile List, with possible set width of tiles, which means, how much tiles will be +- in a row.
Params
width
or (or1
1stdeprecated) (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/
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 ...
| |
{{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 |
...
|