Template:MscTileInf: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Added comprehensive use guide |
||
Line 1: | Line 1: | ||
<includeonly><span style="image-rendering:pixelated;">{{#ifexpr:{{{1|1}}}=1and{{{2|0}}}=0|[[File:Ice.png|sub|This tileset uses ice physics]]|}}{{#ifexpr:{{{2|0}}}=1and{{{2|0}}}-{{{1|1}}}=1|[[File:Animated.gif|sub|This tileset uses a{{#if:{{{3|}}}| {{{3|}}} frame animation|n animation}}]]|}}{{#ifexpr:{{{1|0}}}=1and{{{2|0}}}=1|[[File:FlashTileAnimated.gif|sub|This tileset has ice physics and a{{#if:{{{3|}}}| {{{3|}}} frame animation|n animation}}]]|}}</span></includeonly><noinclude>Some Tile 1 {{Ice}}<br/>Some Tile 1 {{Ice|1}}<br/>Some Tile 1 {{Ice|1|1}}<br/>Some Tile 1 {{Ice|0|1}}<br/>Some Tile 1 {{Ice|0|1|3}}<br/>Some Tile | <includeonly><span style="image-rendering:pixelated;">{{#ifexpr:{{{1|1}}}=1and{{{2|0}}}=0|[[File:Ice.png|sub|This tileset uses ice physics]]|}}{{#ifexpr:{{{2|0}}}=1and{{{2|0}}}-{{{1|1}}}=1|[[File:Animated.gif|sub|This tileset uses a{{#if:{{{3|}}}| {{{3|}}} frame animation|n animation}}]]|}}{{#ifexpr:{{{1|0}}}=1and{{{2|0}}}=1|[[File:FlashTileAnimated.gif|sub|This tileset has ice physics and a{{#if:{{{3|}}}| {{{3|}}} frame animation|n animation}}]]|}}</span></includeonly><noinclude>Extremely simple template to indicate tiles that either use ice physics, are animated, or both. Hovering over the icon next a tile's name produces a description of the tile's special properties. | ||
Alternate template name is <code>Ice</code>. | |||
==Parameters== | |||
*Whether the tile has ice physics (1 if true, 0 if false) | |||
*Whether tile is animated (1 if true, 0 if false) | |||
*The number of unique frames for an animated tile | |||
Setting no parameters will default to just ice physics. | |||
==Examples== | |||
{| class="wikitable plainrowheaders sortable" | |||
|+ style="text-align:left"| | |||
! scope="col" | Usage | |||
! scope="col" | Code | |||
! scope="col" | Look | |||
|- | |||
|Ice physics (default) | |||
|<pre style="display:table">Some Tile 1 {{MscTileInf}}</pre><pre style="display:table">Some Tile 1 {{Ice}}</pre> | |||
|Some Tile 1 {{Ice}} | |||
|- | |||
|Ice physics<br>Not animated | |||
|<pre style="display:table">Some Tile 2 {{MscTileInf|1}}</pre><pre style="display:table">Some Tile 2 {{Ice|1}}</pre> | |||
|Some Tile 2 {{Ice|1}} | |||
|- | |||
|Ice physics<br>Animated<br>No number of frames mentioned | |||
|<pre style="display:table">Some Tile 3 {{MiscTileInf|1|1}}</pre><pre style="display:table">Some Tile 3 {{Ice|1|1}}</pre> | |||
|Some Tile 3 {{Ice|1|1}} | |||
|- | |||
|No ice physics<br>Animated<br>No number of frames mentioned | |||
|<pre style="display:table">Some Tile 4 {{MscTileInf|0|1}}</pre><pre style="display:table">Some Tile 4 {{Ice|0|1}}</pre> | |||
|Some Tile 4 {{Ice|0|1}} | |||
|- | |||
|Ice physics<br>Animated<br>Number of frames mentioned | |||
|<pre style="display:table">Some Tile 5 {{MscTileInf|0|1|3}}</pre><pre style="display:table">Some Tile 5 {{Ice|0|1|3}}</pre> | |||
|Some Tile 5 {{Ice|0|1|3}} | |||
|- | |||
|No ice physics<br>Animated<br>Number of frames mentioned | |||
|<pre style="display:table">Some Tile 6 {{MscTileInf|1|1|3}}</pre> | |||
<pre style="display:table">Some Tile 6 {{Ice|1|1|3}}</pre> | |||
|Some Tile 6 {{Ice|1|1|3}} | |||
|- | |||
|} | |||
[[Category:Templates]]</noinclude> |
Revision as of 00:01, 11 August 2024
Extremely simple template to indicate tiles that either use ice physics, are animated, or both. Hovering over the icon next a tile's name produces a description of the tile's special properties.
Alternate template name is Ice
.
Parameters
- Whether the tile has ice physics (1 if true, 0 if false)
- Whether tile is animated (1 if true, 0 if false)
- The number of unique frames for an animated tile
Setting no parameters will default to just ice physics.