Difference between revisions of "Template:BeginTileList"

From Wikicarpedia
Jump to navigation Jump to search
(Marked this version for translation)
Line 1: Line 1:
<includeonly>{{#if: {{{tiles|}}} | <div>'''<translate><!--T:1--> Total tiles:</translate> {{{tiles}}} '''</div> }}{{#if: {{{tokens|}}} | <div>'''<translate><!--T:2--> Total tokens:</translate> {{{tokens}}} '''</div> }}{{#if: {{{cards|}}} | <div>'''<translate>Total cards:</translate> {{{cards}}} '''</div> }}
<includeonly>{{#if: {{{tiles|}}} | <div>'''<translate><!--T:1--> Total tiles:</translate> {{{tiles}}} '''</div> }}{{#if: {{{tokens|}}} | <div>'''<translate><!--T:2--> Total tokens:</translate> {{{tokens}}} '''</div> }}{{#if: {{{cards|}}} | <div>'''<translate><!--T:3--> Total cards:</translate> {{{cards}}} '''</div> }}
<div style="display: flex; flex-wrap: wrap; max-width:{{{width|{{{1|700px}}}}}}; {{#ifeq: {{{align}}} | bottom | align-items: baseline;}}"></includeonly><noinclude><languages/>{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
<div style="display: flex; flex-wrap: wrap; max-width:{{{width|{{{1|700px}}}}}}; {{#ifeq: {{{align}}} | bottom | align-items: baseline;}}"></includeonly><noinclude><languages/>{{#if: {{#translation:}} | | [[Category:Translatable_templates]]}}
{{Breadcrumbs
{{Breadcrumbs

Revision as of 15:22, 8 June 2023

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 (optional). Default 700px. Set max width of list. Allowed value /CSS_SIZE/.
  • 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/

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: 8 above
Total cards: 10
...