Template:MscTileInf: Difference between revisions

From MegaManMaker Wiki
Jump to navigation Jump to search
pixelated
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
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|}}}|&nbsp;{{{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|}}}|&nbsp;{{{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 1 {{Ice|1|1|3}}<br/>Extremely simple template to indicate tiles that use ice physics</noinclude>
<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|}}}|&nbsp;{{{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|}}}|&nbsp;{{{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 to 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>

Latest 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 to 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.

Examples

Usage Code Look
Ice physics (default)
Some Tile 1 {{MscTileInf}}
Some Tile 1 {{Ice}}
Some Tile 1 This tileset uses ice physics
Ice physics
Not animated
Some Tile 2 {{MscTileInf|1}}
Some Tile 2 {{Ice|1}}
Some Tile 2 This tileset uses ice physics
Ice physics
Animated
No number of frames mentioned
Some Tile 3 {{MiscTileInf|1|1}}
Some Tile 3 {{Ice|1|1}}
Some Tile 3 This tileset has ice physics and an animation
No ice physics
Animated
No number of frames mentioned
Some Tile 4 {{MscTileInf|0|1}}
Some Tile 4 {{Ice|0|1}}
Some Tile 4 This tileset uses an animation
Ice physics
Animated
Number of frames mentioned
Some Tile 5 {{MscTileInf|0|1|3}}
Some Tile 5 {{Ice|0|1|3}}
Some Tile 5 This tileset uses a 3 frame animation
No ice physics
Animated
Number of frames mentioned
Some Tile 6 {{MscTileInf|1|1|3}}
Some Tile 6 {{Ice|1|1|3}}
Some Tile 6 This tileset has ice physics and a 3 frame animation