Template:Emote Animation: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
(merge old format from Template:Emotes Animation)
(delete old format, all pages updated to new format)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{image|}}}|
<includeonly><div role="figure" aria-labelledby="emote-animation-{{anchorencode:{{{label|{{PAGENAME}}}}}}}" style="text-align: center;">
<!-- new format -->
<div role="figure" aria-labelledby="emote-animation-{{anchorencode:{{{label|{{PAGENAME}}}}}}}" style="text-align: center;">


<div id="emote-animation-{{anchorencode:{{{label|{{PAGENAME}}}}}}}" style="font-weight: bold;">{{{label|{{PAGENAME}}}}}</div>
<div id="emote-animation-{{anchorencode:{{{label|{{PAGENAME}}}}}}}" style="font-weight: bold;">{{{label|{{PAGENAME}}}}}</div>
Line 7: Line 5:
<ul style="margin: 0;">
<ul style="margin: 0;">


<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image}}}|alt={{{alt|animation}}}]]</li>
<li style="display: inline-block; margin: 0.1em 0; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image}}}|alt={{{alt|animation}}}]]{{#if:{{{note|}}}|<div>{{{note}}}</div>}}</li>
{{#if:{{{image 2|}}}|
{{#if:{{{image 2|}}}|
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 2}}}|alt={{{alt 2|variant 2}}}]]</li>
<li style="display: inline-block; margin: 0.1em 0; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 2}}}|alt={{{alt 2|variant 2}}}]]{{#if:{{{note 2|}}}|<div>{{{note 2}}}</div>}}</li>
}}
}}{{#if:{{{image 3|}}}|
{{#if:{{{image 3|}}}|
<li style="display: inline-block; margin: 0.1em 0; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 3}}}|alt={{{alt 3|variant 3}}}]]{{#if:{{{note 3|}}}|<div>{{{note 3}}}</div>}}</li>
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 3}}}|alt={{{alt 3|variant 3}}}]]</li>
}}{{#if:{{{image 4|}}}|
}}
<li style="display: inline-block; margin: 0.1em 0; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 4}}}|alt={{{alt 4|variant 4}}}]]{{#if:{{{note 4|}}}|<div>{{{note 4}}}</div>}}</li>
{{#if:{{{image 4|}}}|
}}{{#if:{{{image 5|}}}|
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 4}}}|alt={{{alt 4|variant 4}}}]]</li>
<li style="display: inline-block; margin: 0.1em 0; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 5}}}|alt={{{alt 5|variant 5}}}]]{{#if:{{{note 5|}}}|<div>{{{note 5}}}</div>}}</li>
}}
}}{{#if:{{{image 6|}}}|
{{#if:{{{image 5|}}}|
<li style="display: inline-block; margin: 0.1em 0; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 6}}}|alt={{{alt 6|variant 6}}}]]{{#if:{{{note 6|}}}|<div>{{{note 6}}}</div>}}</li>
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image 5}}}|alt={{{alt 5|variant 5}}}]]</li>
}}
}}


Line 25: Line 22:
<div role="note" style="font-size: smaller;">Animation{{#if:{{{image 2|}}}|s}} may take time to load</div>
<div role="note" style="font-size: smaller;">Animation{{#if:{{{image 2|}}}|s}} may take time to load</div>


</div>{{#ifeq: {{{nocat|}}}|true||[[Category:Emote Animations|{{#ifeq:{{#sub:{{PAGENAME}}|0|5}}|Emote|{{#sub:{{PAGENAME}}|5}}|{{#ifeq:{{#sub:{{PAGENAME}}|0|13}}|Costume Emote|{{#sub:{{PAGENAME}}|13}}|{{PAGENAME}}}}}}]]}}
</div>{{#ifeq: {{{nocat|}}}|true
|
|<!--nothing-->
<!-- old format -->
|{{#ifeq:{{#sub:{{PAGENAME}}|0|16}}|Costume Emote CC
{{Emotes Animation Header|title={{{title|{{{emote|{{PAGENAME}}}}}}}}}}
|[[Category:Costume Change Emotes|{{#sub:{{PAGENAME}}|16}}]]
{{#if: {{{noGW|}}}
|[[Category:Emote Animations|{{#ifeq:{{#sub:{{PAGENAME}}|0|5}}|Emote|{{#sub:{{PAGENAME}}|5}}|{{PAGENAME}}}}]]
|{{!}} style="text-align:center"{{!}}[[Image:Mantid {{{emote|{{PAGENAME}}}}}.gif]]
}}
|{{!}} style="text-align:center"{{!}}[[Image:Ghost Widow {{{emote|{{PAGENAME}}}}}.gif]]
}}
{{Emotes Animation Footer|nocat={{{nocat|}}}}}
}}</includeonly><noinclude>{{Documentation}}
}}</includeonly><noinclude>{{Documentation}}
[[Category:Emotes Templates]]</noinclude>
[[Category:Emotes Templates]]</noinclude>

Latest revision as of 02:51, 8 May 2022

[edit] [purge] Documentation

Creates a figure displaying one or more animations for an emote.

Parameters

label
Optional. Text label for the figure. Default is page name.
image
First image to display.
alt
Optional. Alt text for first image. Default is "animation".
note
Optional. Text note displayed after first image. Default is omitted.
image 2, image 3, image 4, image 5, image 6
Optional. Additional images to display. Default is omitted.
alt 2, alt 3, alt 4, alt 5, alt 6
Optional. Alt text for additional images. Default is "variant 2" or "variant 3" etc.
note 2, note 3, note 4, note 5, note 6
Optional. Text notes displayed after additional images. Default is omitted.
nocat
Optional. Set to "true" to suppress auto categorization. Default is the page is auto categorized in Category:Emote Animations.

Examples

(On the Emote Afraid page)

{{Emote Animation
| image = Ghost Widow Emote Afraid.gif
}}
Emote Afraid
  • animation
Animation may take time to load

(On the Emote Ledgesit page)

{{Emote Animation
| image   = Mantid Emote Ledgesit.gif
| alt     = Hands apart variant
| image 2 = Mantid Emote Ledgesit2.gif
| alt 2   = Hands together variant
}}
Emote Ledgesit
  • Hands apart variant
  • Hands together variant
Animations may take time to load

See also