Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template talk:MantidGW Animation Pair"

From Paragon Wiki Archive
Jump to: navigation, search
((example for previous post))
m (fixing image calls)
 
(4 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
! colspan=2 | {{PAGENAME}}
 
! colspan=2 | {{PAGENAME}}
 
|-
 
|-
| style="text-align:center"|[[Image:Mantid {{PAGENAME}}.gif]]
+
| style="text-align:center"|<nowiki>[[Image:Mantid {{PAGENAME}}.gif]]</nowiki>
| style="text-align:center"|[[Image:Ghost Widow {{PAGENAME}}.gif]]
+
| style="text-align:center"|<nowiki>[[Image:Ghost Widow {{PAGENAME}}.gif]]</nowiki>
 
|}
 
|}
  
Line 42: Line 42:
  
 
::As far as interconnected templates go, I was trying to make it modular so that any number of animations could be placed on the page, with '''this''' template being used as shorthand for Mantid + Ghost Widow, as most of the emotes have both (there are a handful of emotes that don't have a GW animation, for example, [[Emote Dice7]]) --[[User:Fleeting Whisper|Fleeting Whisper]] 02:58, 14 June 2009 (UTC)
 
::As far as interconnected templates go, I was trying to make it modular so that any number of animations could be placed on the page, with '''this''' template being used as shorthand for Mantid + Ghost Widow, as most of the emotes have both (there are a handful of emotes that don't have a GW animation, for example, [[Emote Dice7]]) --[[User:Fleeting Whisper|Fleeting Whisper]] 02:58, 14 June 2009 (UTC)
 +
 +
OK, so we utilize the {{tl|Emote Animation}} template and put it all into one with an #if statement, to include GW or not.
 +
 +
<pre>
 +
{| class="wikitable"
 +
|+ Some animations may be large and take a long time to load
 +
|-
 +
! colspan=2 {{!}} {{PAGENAME}}
 +
|-
 +
{{#if: {{{noGW|}}}
 +
|{{!}} colspan=2 {{!}} style="text-align:center"{{!}}[[Image:Mantid {{PAGENAME}}.gif]]
 +
|{{!}} style="text-align:center"{{!}}[[Image:Mantid {{PAGENAME}}.gif]]
 +
{{!}} style="text-align:center"{{!}}[[Image:Ghost Widow {{PAGENAME}}.gif]]
 +
}}
 +
|}
 +
<includeonly>[[Category:Emote Animations]]</includeonly><noinclude>[[Category:Standardized Text Templates]]</noinclude>
 +
</pre>
 +
 +
So the syntax would look like <nowiki>{{Emote Animation}}</nowiki> (to include GW, default) or <nowiki>{{Emote Animation|noGW}}</nowiki> (to not include GW).
 +
 +
Other than shape-shifted alternatives (Dwarf form changes/disallows some emotes), I don't see the need to even include the second image, let alone "any number of animations", but YMMV. -- [[User:Aggelakis|Agge]] ([[User_talk:Aggelakis|talk]]) 06:21, 14 June 2009 (UTC)
 +
 +
And to Sera: These are meant for use on the "Emote <Emotename>" (ala [[Emote Alakazam]]) pages only (I assume), so cutting down on room isn't terribly necessary. -- [[User:Aggelakis|Agge]] ([[User_talk:Aggelakis|talk]]) 06:43, 14 June 2009 (UTC)
 +
 +
:Considering the [[Emotes]] page makes the distinction of emotes that have flying/nonflying version, creating flying version ''may'' be worth considering (of course, this would require someone to take up Mantid's mantle of creating the demorecords and turning them into GIFs) --[[User:Fleeting Whisper|Fleeting Whisper]] 00:57, 24 June 2009 (UTC)

Latest revision as of 07:20, 19 September 2010

Out of some random curiosity, does this really have to be a zillion inter-connected templates, and not one single template that does the work of the whole thing? Wouldn't that be...easier? Only have to tweak one item if you want to make changes across the whole template. Use #if or #switch to implement differences if there needs to be, which frankly, I don't see the need for. And I don't see the need to EVER not include the category.

{| class="wikitable"
|+ Some animations may be large and take a long time to load
|-
! colspan=2 | {{PAGENAME}}
|-
| style="text-align:center"|[[Image:Mantid {{PAGENAME}}.gif]]
| style="text-align:center"|[[Image:Ghost Widow {{PAGENAME}}.gif]]
|}
<includeonly>[[Category:Emote Animations]]</includeonly><noinclude>[[Category:Standardized Text Templates]]</noinclude>

The results would be: (where it says "MantidGW Animation Pair", it would, of course, insert the title of the page (e.g. Emote Alakazam)

Some animations may be large and take a long time to load
MantidGW Animation Pair
[[Image:Mantid {{PAGENAME}}.gif]] [[Image:Ghost Widow {{PAGENAME}}.gif]]

Or a filled in example:

Some animations may be large and take a long time to load
Emote Alakazam
Mantid Emote Alakazam.gif Ghost Widow Emote Alakazam.gif

-- Agge (talk) 05:15, 13 June 2009 (UTC)

Shouldn't there just be one person being animated to cut down on room? Just pick Ghost Widow. Sera404 12:28, 13 June 2009 (UTC)
I was just transferring all of Mantid's animations, since he told me he may be taking his host down soon.
As far as interconnected templates go, I was trying to make it modular so that any number of animations could be placed on the page, with this template being used as shorthand for Mantid + Ghost Widow, as most of the emotes have both (there are a handful of emotes that don't have a GW animation, for example, Emote Dice7) --Fleeting Whisper 02:58, 14 June 2009 (UTC)

OK, so we utilize the {{Emote Animation}} template and put it all into one with an #if statement, to include GW or not.

{| class="wikitable"
|+ Some animations may be large and take a long time to load
|-
! colspan=2 {{!}} {{PAGENAME}}
|-
{{#if: {{{noGW|}}}
|{{!}} colspan=2 {{!}} style="text-align:center"{{!}}[[Image:Mantid {{PAGENAME}}.gif]]
|{{!}} style="text-align:center"{{!}}[[Image:Mantid {{PAGENAME}}.gif]]
{{!}} style="text-align:center"{{!}}[[Image:Ghost Widow {{PAGENAME}}.gif]]
}}
|}
<includeonly>[[Category:Emote Animations]]</includeonly><noinclude>[[Category:Standardized Text Templates]]</noinclude>

So the syntax would look like {{Emote Animation}} (to include GW, default) or {{Emote Animation|noGW}} (to not include GW).

Other than shape-shifted alternatives (Dwarf form changes/disallows some emotes), I don't see the need to even include the second image, let alone "any number of animations", but YMMV. -- Agge (talk) 06:21, 14 June 2009 (UTC)

And to Sera: These are meant for use on the "Emote <Emotename>" (ala Emote Alakazam) pages only (I assume), so cutting down on room isn't terribly necessary. -- Agge (talk) 06:43, 14 June 2009 (UTC)

Considering the Emotes page makes the distinction of emotes that have flying/nonflying version, creating flying version may be worth considering (of course, this would require someone to take up Mantid's mantle of creating the demorecords and turning them into GIFs) --Fleeting Whisper 00:57, 24 June 2009 (UTC)