Difference between revisions of "Template:BeginTileList"
Jump to navigation
Jump to search
Bumsakalaka (talk | contribs) |
Bumsakalaka (talk | contribs) |
||
Line 1: | Line 1: | ||
{{#if: {{{tiles|}}} | '''<translate>Total tiles:</translate> {{{tiles}}} ''' }} | |||
<div style="display: table; max-width:{{{1|700px}}};"><noinclude><hr /> | <div style="display: table; max-width:{{{1|700px}}};"><noinclude><hr /> | ||
== Description == | == Description == | ||
Line 5: | Line 6: | ||
== Params == | == Params == | ||
* 1st or <code>1</code> (optional) [<code>width</code>{{!}} -empty-] Set width in style 700px (default value when parameter is not set), or in other CSS value like 100% | * 1st or <code>1</code> (optional) [<code>width</code>{{!}} -empty-] Set width in style 700px (default value when parameter is not set), or in other CSS value like 100% | ||
* <code>tiles</code> (optional) [<code>NUMBER</code>{{!}} -empty-] Show Total tiles: NUMBER above if set. | |||
== Examples == | == Examples == | ||
Line 15: | Line 17: | ||
| <code><nowiki>{{BeginTileList|300px}}</nowiki></code> || Start tile list section with specific width 300px | | <code><nowiki>{{BeginTileList|300px}}</nowiki></code> || Start tile list section with specific width 300px | ||
|- | |- | ||
| <code><nowiki>{{BeginTileList}}</nowiki></code> || Start tile list section with width 100% | | <code><nowiki>{{BeginTileList|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 | |||
[[Category:Translatable templates]] | |||
</noinclude> | </noinclude> |