Template:Emotes Animation: Difference between revisions
Jump to navigation
Jump to search
(non table layout) |
(new format, merges header and footer, flexible file names) |
||
Line 1: | Line 1: | ||
{{#if:{{{image1|}}}| | |||
<!-- new format --> | |||
<div role="figure" aria-labelledby="emotes-animation-{{anchorencode:{{{label|{{PAGENAME}}}}}}}" style="text-align: center;"> | |||
<div id="emotes-animation-{{anchorencode:{{{label|{{PAGENAME}}}}}}}" style="font-weight: bold;">{{{label|{{PAGENAME}}}}}</div> | |||
<ul style="margin: 0;"> | |||
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image1}}}|alt={{{alt1|type 1}}}]]</li> | |||
{{#if:{{{image2|}}}| | |||
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image2}}}|alt={{{alt2|type 2}}}]]</li> | |||
}} | |||
{{#if:{{{image3|}}}| | |||
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image3}}}|alt={{{alt3|type 3}}}]]</li> | |||
}} | |||
{{#if:{{{image4|}}}| | |||
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image4}}}|alt={{{alt4|type 4}}}]]</li> | |||
}} | |||
{{#if:{{{image5|}}}| | |||
<li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">[[File:{{{image5}}}|alt={{{alt5|type 5}}}]]</li> | |||
}} | |||
</ul> | |||
<div role="note" style="font-size: smaller;">Animations may take time to load</div> | |||
</div> | |||
| | |||
<!-- old format --> | |||
<includeonly><li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">{{#if: {{{noGW|}}} | <includeonly><li style="display: inline-block; border: 1px #aaa solid; padding: 0.2em;">{{#if: {{{noGW|}}} | ||
|[[File:Mantid {{{emote|{{PAGENAME}}}}}.gif]] | |[[File:Mantid {{{emote|{{PAGENAME}}}}}.gif]] | ||
|[[File:Ghost Widow {{{emote|{{PAGENAME}}}}}.gif]] | |[[File:Ghost Widow {{{emote|{{PAGENAME}}}}}.gif]] | ||
}}</li></includeonly><noinclude>{{Documentation}} | }}</li></includeonly> | ||
}}<noinclude>{{Documentation}} | |||
[[Category:Emotes Templates]]</noinclude> | [[Category:Emotes Templates]]</noinclude> |
Revision as of 20:50, 7 May 2022
[edit] [ ] 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 }}
(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 }}
See also