*Author

Offline antiaverageTopic starter

  • Administrator
  • ********
  • ********
  • Posts: 1496
  • Reputation Power: 36
  • antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.
  • HTML5-hipster-sloth.bunchie();
  • Awards: Slice of Elements 12th Birthday CakeSlice of Elements 10th Birthday CakeSlice of Elements 9th Birthday CakeRaise the Banners...AgainSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeMS Paint Card Art #7 WinnerSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday Cake
Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099069#msg1099069
« on: September 25, 2013, 04:13:53 pm »
I feel like the deck image code for this forum is probably the most important code. Elements is all about discussing and playing deck builds. So, it made sense to spend a little time to improve it a little. Please take a look at the new styling.

This code (same as you are used to using):
Code: [Select]
[deck]4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 52s 52s 595 595 595 5c7 5c7 5og 5og 5rp 5rp 5rp 5rp 5rp 5rp 5v0 5v0 5v0 61r 61r 8pk[/deck]
Produces this:
Hover over cards for details, click for permalink
Deck import code : [Select]
4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 52s 52s 595 595 595 5c7 5c7 5og 5og 5rp 5rp 5rp 5rp 5rp 5rp 5v0 5v0 5v0 61r 61r 8pk


I have also resurrected some of the optional parameters. There are old decks in the forums which did not include the mark card in the deck code but in the bbcode. These will now show the mark as text above the deck. There are also old decks which had an author parameter set but no longer displayed the author. The author will now show as text above the deck.

This code:
Code: [Select]
[deck author=Chapuz mark=Death]4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 52s 52s 595 595 595 5c7 5c7 5og 5og 5rp 5rp 5rp 5rp 5rp 5rp 5v0 5v0 5v0 61r 61r 8pk[/deck]
Produces this:
Mark: Death
Hover over cards for details, click for permalink
Deck import code : [Select]
4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 52s 52s 595 595 595 5c7 5c7 5og 5og 5rp 5rp 5rp 5rp 5rp 5rp 5v0 5v0 5v0 61r 61r 8pk


Let me know what you think and if you have any critiques or suggestions. I tidied up the code and it's all very easy to modify now, so if you have any thoughts about styling or really anything, don't hesitate to mention it.

I hope you enjoy ;)

Due to demand, I added the title param in as a stealth param.

Stealth params are:
author, mark, title

...in that order (alphabetic).

Code: [Select]
[deck author=Bob mark=Entropy title=Empty Deck]8pj[/deck]
Any of those three params can be left out.

Also notice that the author name is now a link to the author's forum profile, and if you wrap the deck tag in a url tag, it makes the title a link (in case you want to link to the forum thread for that deck.  For example:

Code: [Select]
[url=http://elementscommunity.org/forum/index.php?topic=49897.0][deck author=Chapuz title=Poisoned Dolls (Fun)]4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 52s 52s 595 595 595 5c7 5c7 5og 5og 5rp 5rp 5rp 5rp 5rp 5rp 5v0 5v0 5v0 61r 61r 8pk[/deck][/url]
Hover over cards for details, click for permalink
Deck import code : [Select]
4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 4sa 52s 52s 595 595 595 5c7 5c7 5og 5og 5rp 5rp 5rp 5rp 5rp 5rp 5v0 5v0 5v0 61r 61r 8pk


There are just too many threads on the forum which use this format. This should make things easier. I won't add a button to the post editor, but author and title should be pretty easy to remember if you need it.
« Last Edit: November 14, 2013, 05:50:58 pm by antiaverage »
Developer of http://dek.im - a Deck Image generator with rollover to view full cards, current to version 1.327

Thanks to Amashi for my avatar!

Offline Elbirn

  • Hero Member
  • *****
  • Posts: 1013
  • Reputation Power: 13
  • Elbirn is taking their first peeks out of the Antlion's burrow.Elbirn is taking their first peeks out of the Antlion's burrow.
  • Awards: Slice of Elements 4th Birthday CakeThe Age of Random Cards Competition - Winner
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099070#msg1099070
« Reply #1 on: September 25, 2013, 04:19:02 pm »
Thanks for your continued work on improving this place. I always missed the deck author feature ^_^ Now it just looks even more professional than before, really like it
:air Team Air War#7 :air
:air Team Air War#6 :air
:darkness Founding member of Darkness Guild :darkness

Offline suxerz

  • Hero Member
  • *****
  • Posts: 1013
  • Country: my
  • Reputation Power: 1
  • suxerz is a Spark waiting for a buff.
  • INSANEia
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099078#msg1099078
« Reply #2 on: September 25, 2013, 05:31:01 pm »
Awesome!!

Suggestions:
  • How about multiple marks? (e.g. x2. x3) Currently mostly relevant for arena decks and it might have more use in 1.4.
  • I'm not sure about others, but I really don't see the point of having the horizontal scrollbar. As long as we are able to copy the deck code when we click on the "select", it's good enough for me. Besides, I think it will look nicer. Oh, I also noticed that unlike chrome, firefox shows vertical scrollbar as well.
  • Again, this might just be me. The "Click deck image for interactive version" seems to be too big, as though as it suppose to describe the deck. I suggest to make it smaller. Something like this? - Click deck image for interactive version


Question:

I'm not sure to ask this, but let me try. I'm wondering how does it handle cache image for the deck? I noticed that whenever I refresh a page (not hard refresh using CTRL-F5), it looks like it doesn't store any cache image; making it loads the deck every time I view that same page. This probably isn't noticeable with faster computers, but I would appreciate if something can be done about this.

Offline antiaverageTopic starter

  • Administrator
  • ********
  • ********
  • Posts: 1496
  • Reputation Power: 36
  • antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.
  • HTML5-hipster-sloth.bunchie();
  • Awards: Slice of Elements 12th Birthday CakeSlice of Elements 10th Birthday CakeSlice of Elements 9th Birthday CakeRaise the Banners...AgainSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeMS Paint Card Art #7 WinnerSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099090#msg1099090
« Reply #3 on: September 25, 2013, 06:39:02 pm »
How about multiple marks? (e.g. x2. x3) Currently mostly relevant for arena decks and it might have more use in 1.4.
That is possible, although not sure how useful. I've noticed a lot of people just screenshot their arena decks since there is no way to Import/Export your arena decks. Not to mention that there is a lot more info besides multiple mark for an arena deck. It seems that we would need a more comprehensive arena deck solution.

I'm not sure about others, but I really don't see the point of having the horizontal scrollbar. As long as we are able to copy the deck code when we click on the "select", it's good enough for me. Besides, I think it will look nicer. Oh, I also noticed that unlike chrome, firefox shows vertical scrollbar as well.
I think this happens because of the styling on the bbcode code tag. I would probably need to change it to not use this tag at all at do a more custom printout of the code. This is somewhat of a leftover from the previous deck image code. You're right to ask to get this improved, I'll look into it. Thank you!

Again, this might just be me. The "Click deck image for interactive version" seems to be too big, as though as it suppose to describe the deck. I suggest to make it smaller. Something like this? - Click deck image for interactive version
Good idea, I can do that. Thanks!

I'm not sure to ask this, but let me try. I'm wondering how does it handle cache image for the deck? I noticed that whenever I refresh a page (not hard refresh using CTRL-F5), it looks like it doesn't store any cache image; making it loads the deck every time I view that same page. This probably isn't noticeable with faster computers, but I would appreciate if something can be done about this.
It should be loading from cache. I'll need to take a closer look at what's going on to see if there is some error I'm missing. Thank you for pointing this out.
Developer of http://dek.im - a Deck Image generator with rollover to view full cards, current to version 1.327

Thanks to Amashi for my avatar!

Offline CuCN

  • Hero Member
  • *****
  • Posts: 1756
  • Reputation Power: 25
  • CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.
  • Toxic
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099095#msg1099095
« Reply #4 on: September 25, 2013, 07:34:18 pm »
How about multiple marks? (e.g. x2. x3) Currently mostly relevant for arena decks and it might have more use in 1.4.
That is possible, although not sure how useful. I've noticed a lot of people just screenshot their arena decks since there is no way to Import/Export your arena decks. Not to mention that there is a lot more info besides multiple mark for an arena deck. It seems that we would need a more comprehensive arena deck solution.
Is it possible to include those params like you did for author, mark, and title? Like
Code: [Select]
[deck mark=air2 hp=175 draw=3] to have "Mark: Air x2 HP: 175 Draw: x3" appear above the deck.

Offline Chapuz

  • Legendary Member
  • ******
  • Posts: 6081
  • Country: ar
  • Reputation Power: 72
  • Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.
  • The weird Voodoo guy
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeDeckbuilding Competition - Tower Defense WinnerSlice of Elements 9th Birthday CakeSlice of Elements 8th Birthday CakeSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday CakeBrawl #1 Winner - Team Nyan Sharks
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099106#msg1099106
« Reply #5 on: September 25, 2013, 08:12:12 pm »
+1k rep, and thank you for recovering the old deck codes without images!
My Decks, Tutorial and Guides <~~~~~ Click Here ! ! !

Offline antiaverageTopic starter

  • Administrator
  • ********
  • ********
  • Posts: 1496
  • Reputation Power: 36
  • antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.
  • HTML5-hipster-sloth.bunchie();
  • Awards: Slice of Elements 12th Birthday CakeSlice of Elements 10th Birthday CakeSlice of Elements 9th Birthday CakeRaise the Banners...AgainSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeMS Paint Card Art #7 WinnerSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099122#msg1099122
« Reply #6 on: September 25, 2013, 09:18:07 pm »
Just a heads up for the extra parameters: ORDER MATTERS

If you are getting any weird rendering issues when you use the extra deck parameters, it may just be because you used them out of order. You don't have to use all of them, you can omit any of them, but just make sure they are in order.

This is the order:
stamina wisdom intellect dexterity author mark title

Edit: Added a button to the message editor so that you can 1-click to get the deck code syntax pasted for you. Remember, you can remove any parameter you don't want from that pasted code.

Edit: Mark removed from button. The option is really only there for legacy tags.
« Last Edit: September 26, 2013, 12:51:29 pm by antiaverage »
Developer of http://dek.im - a Deck Image generator with rollover to view full cards, current to version 1.327

Thanks to Amashi for my avatar!

Offline bripod

  • Sr. Member
  • ****
  • Posts: 878
  • Country: us
  • Reputation Power: 14
  • bripod is taking their first peeks out of the Antlion's burrow.bripod is taking their first peeks out of the Antlion's burrow.
  • Awards: Slice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099152#msg1099152
« Reply #7 on: September 26, 2013, 01:38:55 am »
Looks Sweet! Thanks!

Offline ColorlessGreen

  • Sr. Member
  • ****
  • Posts: 774
  • Reputation Power: 14
  • ColorlessGreen is taking their first peeks out of the Antlion's burrow.ColorlessGreen is taking their first peeks out of the Antlion's burrow.
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099155#msg1099155
« Reply #8 on: September 26, 2013, 02:06:07 am »
Would you possibly be able to easily run a quick sort on the deck codes before generating the images? Apparently there are decks with the codes in random order which results in some pretty jarring things.

Offline antiaverageTopic starter

  • Administrator
  • ********
  • ********
  • Posts: 1496
  • Reputation Power: 36
  • antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.antiaverage is a Gargoyle, dangerous and everlasting.
  • HTML5-hipster-sloth.bunchie();
  • Awards: Slice of Elements 12th Birthday CakeSlice of Elements 10th Birthday CakeSlice of Elements 9th Birthday CakeRaise the Banners...AgainSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeMS Paint Card Art #7 WinnerSlice of Elements 4th Birthday CakeSlice of Elements 3rd Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099157#msg1099157
« Reply #9 on: September 26, 2013, 02:32:56 am »
Would you possibly be able to easily run a quick sort on the deck codes before generating the images? Apparently there are decks with the codes in random order which results in some pretty jarring things.

Yes, dek.im already does this, but the forum doesn't for some reason. This is an easy fix. Thank you for pointing it out.

Edit:
Hover over cards for details, click for permalink
Deck import code : [Select]
6qq 6qq 6qq 6qq 6qq 6u3 6u3 6u3 6u3 6u3 6u3 6u5 6u5 6u5 713 713 74f 74f 74f 77g 77g 7dm 7dq 7gm 7ju 7n8 7n8 7q5 7tf 80g 8pj
« Last Edit: September 26, 2013, 02:41:40 am by antiaverage »
Developer of http://dek.im - a Deck Image generator with rollover to view full cards, current to version 1.327

Thanks to Amashi for my avatar!

Offline Chapuz

  • Legendary Member
  • ******
  • Posts: 6081
  • Country: ar
  • Reputation Power: 72
  • Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.Chapuz frolics as one of the Phase Dragons, timeless and superior, gargantuan beasts of peerless wisdom.
  • The weird Voodoo guy
  • Awards: Slice of Elements 11th Birthday CakeSlice of Elements 10th Birthday CakeDeckbuilding Competition - Tower Defense WinnerSlice of Elements 9th Birthday CakeSlice of Elements 8th Birthday CakeSlice of Elements 6th Birthday CakeSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday CakeBrawl #1 Winner - Team Nyan Sharks
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099161#msg1099161
« Reply #10 on: September 26, 2013, 02:57:51 am »
Quote
This is the order:
stamina wisdom intellect dexterity author mark title

The mark is in the deck code and image, what's the purpose of having it in the information too? It's redundant. Unless it's replaced with "multiplier" to make it 2x, 3x or Xx. idk if it's worth it though, it must be as simple as possible and I don't really like the stamina, wisdom, intelect and dextricity in the deck code
Author, title and all the rest are wonderful though
« Last Edit: September 26, 2013, 03:04:10 am by Chapuz »
My Decks, Tutorial and Guides <~~~~~ Click Here ! ! !

Offline CuCN

  • Hero Member
  • *****
  • Posts: 1756
  • Reputation Power: 25
  • CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.CuCN is a proud Wyrm taking wing for the first time.
  • Toxic
  • Awards: Slice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: Deck Image Code Update https://elementscommunity.org/forum/index.php?topic=51284.msg1099163#msg1099163
« Reply #11 on: September 26, 2013, 03:19:53 am »
Quote
This is the order:
stamina wisdom intellect dexterity author mark title

The mark is in the deck code and image, what's the purpose of having it in the information too? It's redundant. Unless it's replaced with "multiplier" to make it 2x, 3x or Xx. idk if it's worth it though, it must be as simple as possible and I don't really like the stamina, wisdom, intelect and dextricity in the deck code
Author, title and all the rest are wonderful though

It's because some old posts have the mark specified as a parameter instead of in the deck code, and subsequently showed up with a ??? mark. I think that the button for a deck tag with extra options should not include the mark parameter, because it is redundant with current deck codes.

 

blarg: Chapuz,Amashi