Template:Emote Animation/doc: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Aggelakis (historical)
m (no image)
(note parameter)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
==Usage==
Creates a figure displaying one or more animations for an [[Emotes|emote]].
{| class="wikitable" style="width: 50%;float:left"
|-
!|Parameter
!|Use
!|Example
!|Default Value
|-
||title
||Specify a title for the box
||Emote HandsUp
||The value of ''emote''
|-
||emote
||Specify the emote to display
||Emote Dice2
||<nowiki>{{PAGENAME}}</nowiki>
|-
||noGW
||Use Mantid instead of Ghost Widow
||true
||
|-
||nocat
||Disable adding the category to the page. (For example, the examples in this page)
||true
||
|}


Creates a box for displaying an animated GIF of an [[Emotes|emote]]. This template is intended for use on '''Emote {EMOTENAME}''' pages, and by default will attempt to display the ''Ghost_Widow_{EMOTENAME}.gif'' image. If the ''noGW'' parameter is specified, the ''Mantid_{EMOTENAME}.gif'' image will be used instead.
==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]].


The ''emote'' parameter can be used to specify an emote, rather than using the current page name for the emote. Note that since the default value for ''emote'' is <nowiki>{{PAGENAME}}</nowiki>, and this template is designed for use on the various [[:Category:Emote Animations|Emote Animation]] pages, the value for ''emote'' should begin with "Emote", followed by the emote name. This ensures that the correct image is pulled.
== Examples ==


{| class="wikitable"
(On the [[Emote Afraid]] page)
|-
<pre>
!|Code
{{Emote Animation
!|Output
| image = Ghost Widow Emote Afraid.gif
|-
}}
| valign="top"|<tt><nowiki>{{Emote Animation|title=Not An Emote|emote=Emote Afraid}}</nowiki></tt>
</pre>
||{{Emote Animation|nocat=true|title=Not An Emote|emote=Emote Afraid}}
 
|-
{{Emote Animation
| valign="top"|<tt><nowiki>{{Emote Animation|noGW=true|emote=Emote Newspaper}}</nowiki></tt>
| label = Emote Afraid
||{{Emote Animation|noGW=true|nocat=true|emote=Emote Newspaper}}
| image = Ghost Widow Emote Afraid.gif
|}
| nocat = true
}}
 
(On the [[Emote Ledgesit]] page)
<pre>
{{Emote Animation
| image  = Mantid Emote Ledgesit.gif
| alt    = Hands apart variant
| image 2 = Mantid Emote Ledgesit2.gif
| alt 2  = Hands together variant
}}
</pre>
 
{{Emote Animation
| label  = Emote Ledgesit
| image  = Mantid Emote Ledgesit.gif
| alt    = Hands apart variant
| image 2 = Mantid Emote Ledgesit2.gif
| alt 2  = Hands together variant
| nocat  = true
}}


==See also==
==See also==


* [[Template:Emotes Animation Header|Emotes Animation Header]]
* [[:Category:Emote Animations]]
* [[Template:Emotes Animation|Emotes Animation]]
* [[:Category:Emote Images]]
* [[Template:Emotes Animation Footer|Emotes Animation Footer]]
<includeonly><!--
<includeonly><!--
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
</includeonly>
</includeonly>

Latest revision as of 23:30, 7 May 2022

This is a documentation subpage for Template:Emote Animation (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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