Template:MscBGInf: Difference between revisions

From MegaManMaker Wiki
Jump to navigation Jump to search
m SagiriHimoto moved page Template:MscBGIng to Template:MscBGInf: I'm dumb
Added parameters description and example\
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><span style="image-rendering:pixelated;">{{#ifexpr:{{{1|1}}}=1and{{{2|0}}}=0|[[File:CutBGIcon.png|sub|this background is transparent]]|}}{{#ifexpr:{{{2|0}}}=1and{{{2|0}}}-{{{1|1}}}=1|[[File:MM7WilyBGIconAnimated.gif|sub|this background uses a{{#if:{{{3|}}}|&nbsp;{{{3|}}} frame animation|n animation}}]]|}}{{#ifexpr:{{{1|0}}}=1and{{{2|0}}}=1|[[File:Charge2BGIconAnimated.gif|sub|this background is transparent and uses a{{#if:{{{3|}}}|&nbsp;{{{3|}}} frame animation|n animation}}]]|}}</span></includeonly><noinclude>Some BG 1 {{MscBGInf}}<br/>Some BG 1 {{MscBGInf|1}}<br/>Some BG 1 {{MscBGInf|1|1}}<br/>Some BG 1 {{MscBGInf|0|1}}<br/>Some BG 1 {{MscBGInf|0|1|3}}<br/>Some BG 1 {{MscBGInf|1|1|3}}<br/>Extremely simple template to indicate Backgrounds that use transparency or animation</noinclude>
<includeonly><span style="image-rendering:pixelated;">{{#ifexpr:{{{1|1}}}=1and{{{2|0}}}=0|[[File:CutBGIcon.png|sub|this background is transparent]]|}}{{#ifexpr:{{{2|0}}}=1and{{{2|0}}}-{{{1|1}}}=1|[[File:MM7WilyBGIconAnimated.gif|sub|this background uses a{{#if:{{{3|}}}|&nbsp;{{{3|}}} frame animation|n animation}}]]|}}{{#ifexpr:{{{1|0}}}=1and{{{2|0}}}=1|[[File:Charge2BGIconAnimated.gif|sub|16px|this background is transparent and uses a{{#if:{{{3|}}}|&nbsp;{{{3|}}} frame animation|n animation}}]]|}}</span></includeonly><noinclude>Extremely simple template to indicate backgrounds that use transparency or animation. Hovering over the icon next to a background's name produces a description of the background's special properties.
 
==Parameters==
*Whether background is animated (1 if true, 0 if false)
*The number of unique frames for an animated background
 
Setting no parameters will default to just a transparent background.
 
==Examples==
{| class="wikitable plainrowheaders sortable"
|+ style="text-align:left"|
! scope="col" | Usage
! scope="col" | Code
! scope="col" | Look
|-
|Transparent background (default)
|<pre style="display:table">Some BG 1 {{MscBGInf}}</pre>
|Some BG 1 {{MscBGInf}}
|-
|Transparent background<br>Not animated
|<pre style="display:table">Some BG 2 {{MscBGInf|1}}</pre>
|Some BG 2 {{MscBGInf|1}}
|-
|Transparent background<br>Animated<br>No number of frames mentioned
|<pre style="display:table">Some BG 3 {{MscBGInf|1|1}}</pre>
|Some BG 3 {{MscBGInf|1|1}}
|-
|Transparent background<br>Animated<br>Number of frames mentioned
|<pre style="display:table">Some BG 4 {{MscBGInf|1|1|3}}</pre>
|Some BG 4 {{MscBGInf|1|1|3}}
|-
|No transparent background<br>Animated<br>No number of frames mentioned
|<pre style="display:table">Some BG 5 {{MscBGInf|0|1}}</pre>
|Some BG 5 {{MscBGInf|0|1}}
|-
|No transparent background<br>Animated<br>Number of frames mentioned
|<pre style="display:table">Some BG 6 {{MscBGInf|0|1|3}}</pre>
|Some BG 6 {{MscBGInf|0|1|3}}
|-
|}
[[Category:Templates]]</noinclude>

Latest revision as of 18:45, 3 September 2024

Extremely simple template to indicate backgrounds that use transparency or animation. Hovering over the icon next to a background's name produces a description of the background's special properties.

Parameters

  • Whether background is animated (1 if true, 0 if false)
  • The number of unique frames for an animated background

Setting no parameters will default to just a transparent background.

Examples

Usage Code Look
Transparent background (default)
Some BG 1 {{MscBGInf}}
Some BG 1 this background is transparent
Transparent background
Not animated
Some BG 2 {{MscBGInf|1}}
Some BG 2 this background is transparent
Transparent background
Animated
No number of frames mentioned
Some BG 3 {{MscBGInf|1|1}}
Some BG 3 this background is transparent and uses an animation
Transparent background
Animated
Number of frames mentioned
Some BG 4 {{MscBGInf|1|1|3}}
Some BG 4 this background is transparent and uses a 3 frame animation
No transparent background
Animated
No number of frames mentioned
Some BG 5 {{MscBGInf|0|1}}
Some BG 5 this background uses an animation
No transparent background
Animated
Number of frames mentioned
Some BG 6 {{MscBGInf|0|1|3}}
Some BG 6 this background uses a 3 frame animation