Template:MscBGInf: Difference between revisions
Jump to navigation
Jump to search
SagiriHimoto (talk | contribs) Created a new template for backgrounds |
Added parameters description and example\ |
||
(3 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|}}}| {{{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|}}}| {{{3|}}} frame animation|n animation}}]]|}}</span></includeonly><noinclude>Some BG 1 {{MscBGInf}}< | <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|}}}| {{{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|}}}| {{{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.