Deckstats Forum

English-language Forums => About Deckstats => Topic aperto da: Nils - Marzo 26, 2020, 11:09:13 pm

Titolo: New: Format deck descriptions with Markdown
Inserito da: Nils - Marzo 26, 2020, 11:09:13 pm
Good news: You can now use Markdown syntax to format your deck descriptions!

For example, start a line with # to create a heading or surround text with two asterisks to make it **bold**. You can also make sections that can be shown/hidden on click, which should come in particularly handy for primers.

In addition, I have also made a few more changes to make working with descriptions a bit easier:
Below are a few examples of our Markdown syntax. You can see the result of this code in this example deck (https://deckstats.net/decks/1/1592391-markdown-example-deck#no_deck_link).

Codice: [Seleziona]
# Markdown example
The line above will become a heading because it is prefixed with a #.

## Introduction
Two ## make a sub-heading, ### make a sub-sub-heading and so on.

Leave an empty line to make a new paragraph. **This text will be shown in bold**, *while this will be in italics*.

You can also insert a link [like this](https://deckstats.net). Card names like Black Lotus or Forest will automatically be made clickable.

## > Hidden sections
If you start a section heading with a > after the # then it will be hidden by default, and can be revealed by clicking on the heading.

To end a section, just start another one at the same or higher level:

## Lists
Here is a list of a few items:

- item1
- item2
- item3

## Advanced syntax
Use three dashes to insert a horizontal rule:

---

You can even make tables:

First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column


To read more about Markdown, have a look at this Markdown reference (https://commonmark.org/help/) or Github's guide to mastering Markdown (https://guides.github.com/features/mastering-markdown/). Note that Github has a few extra features that we don't support here though, like checklists, syntax highlighting and @mentions.

Markdown is only supported in deck descriptions and private notes. In the forums and in comments we will continue to use BBCode.
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: WizardSpartan - Marzo 27, 2020, 01:17:42 am
Nils, you spoil us.

One question, what's the character limit for deck descriptions? Is it the same as forum posts?

Edit: While starting on converting my primer to this beautiful new format, I started implementing tables. I found that the content of the tables align at the bottom of the table, which is weird. I attached a photo of what happened. Under the "Disadvantages" section of the table, the content has an extra line of space because it is only 3 lines long, while the content of the "Advantages" section of the table is 4 lines long and takes up that empty line of space. Is there something I, the user can be doing to stop that (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Stop+That)? If not, would there be any way that could be changed, so the content always starts immediately after the header?
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: Nils - Marzo 27, 2020, 01:52:41 pm
The table alignment should be fixed now, please try again.

The character limit is 100,000 for now. If you actually need more than that I'd be happy to raise it further. That said, I think around that number you'll reach a point where people won't have the energy to read it all anyway... :)
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: WizardSpartan - Marzo 27, 2020, 03:24:15 pm
The character limit is 100,000 for now. If you actually need more than that I'd be happy to raise it further. That said, I think around that number you'll reach a point where people won't have the energy to read it all anyway... :)
(https://media1.tenor.com/images/64a5e1ac578c30929985d4502d7d0517/tenor.gif)
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: insomniaworm - Aprile 01, 2020, 09:22:20 pm
now this is very nice, like it alot  8) 8) 8)  have applied to my two IRL decks great improvement but could we go back to the deck description not being inside a scrolling iframe, infinite length was perfect, or make it optional

also, could we have a full page background image option with color/transparency level for the deck list panel

two very minor changes, that would dramatically improve the page look, now that we have markdown to insert images into the description

great work on the site thus far  :)
 
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: CanardWc - Aprile 19, 2020, 06:16:01 pm
Hi, really cool adding!

Do you know a good way to implement spoilers in a table? it would help a lot to make good presentations!

I know it would be a lot to ask for html implementation, hope one day it will be possible! But anyway, thanks a lot for this implementation <3
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: insomniaworm - Aprile 22, 2020, 02:40:29 am
I know it would be a lot to ask for html implementation, hope one day it will be possible! But anyway, thanks a lot for this implementation <3
second that, dont think there is any barrier to implement html/css to be honest, is just text in the db 

question thou, not sure which of the myriad of markdowns is in play, but unable to center text, is there a way?
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: Nils - Aprile 25, 2020, 12:42:45 am
I have now disabled the scroll bars.

I don't think we will be able to support HTML. That would be very complex to do in a way that is both useful and not a major security concern.

At the moment we also don't support background images, spoilers or centered text, but those are all things I will think about adding in the future.
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: SMFrenzel - Ottobre 08, 2020, 01:21:08 pm
If I use a word which also exist as card (for example: "Exclude (https://cards.deckstats.net/magiccard.php?utf8=1&lng=de&card=Exclude)"), how could I disable the link to the card ?
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: Nils - Giugno 26, 2022, 06:34:07 pm
I have just updated our cardlinker to only link Exclude (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Exclude) when it is written with an uppercase first letter. So you can now use "exclude" in a sentence without it getting linked.

If there are other words that are often causing problems, please let me know and I can add a similar exception for them too.
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: joeshine - Giugno 26, 2022, 07:01:15 pm
I don't mean to go too far down the Exclude (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Exclude) rabbit hole, but I was just looking through popular cards to get a sense of what single words people might frequently use that we wouldn't want linked. For example, it seems like to me that if someone use Abrade (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Abrade) or Rancor (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Rancor) or Fertilid (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Fertilid) in a sentence they're probably referring to the card. If Reanimate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Reanimate) comes up in a conversation it might refer to the concept in general or that card specifically, but in either case linking the card would be helpful to the point being made.

Perhaps these cards too:
- Consider (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Consider) "if you're including XYZ cards, Consider (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Consider) ABC cards too..."
- Anger (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Anger): probably the most likely to be used of the cycle, Brawn (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Brawn) and Vigor (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Vigor) and the rest of their cycles are probably ok as is
- Explore (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Explore) since it is also an Ixalan mechanic, it might be good to be able to refer to that without linking a different card
- Silence (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Silence)
- Farewell (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Farewell)
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: ApothecaryGeist - Giugno 26, 2022, 10:32:52 pm
I've looked through all 2200+ single word card names.  I've tried to trim the list to those terms likely to come up in conversations on this form ... rules discussions, rules opinions, speculations about future expansion sets, describing games and game states, etc.


Anticipate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Anticipate)
Backfire (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Backfire)
Balance (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Balance)
Bargain (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Bargain)
Blur (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Blur)
Brand (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Brand)
Brawl
Breakthrough (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Breakthrough)
Burnout (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Burnout)
Cancel (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Cancel)
Catalog (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Catalog)
Channel (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Channel)
Clear
Consider (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Consider)
Contradict (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Contradict)
Convolute (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Convolute)
Corrupt (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Corrupt)
Crash (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Crash)
Crush (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Crush)
Curiosity (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Curiosity)
Deception (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Deception)
Defeat (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Defeat)
Delay (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Delay)
Deliberate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Deliberate)
Demolish (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Demolish)
Diminish (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Diminish)
Disallow (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Disallow)
Disappear (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Disappear)
Dismiss (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Dismiss)
Disrupt (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Disrupt)
Dominate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Dominate)
Donate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Donate)
Dread (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Dread)
Dredge
Duh (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Duh)
Eliminate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Eliminate)
Endurance (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Endurance)
Endur
Erace
Exclude (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Exclude)
Execute (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Execute)
Exile (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Exile)
Explore (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Explore)
Fascination (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Fascination)
Fatigue (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Fatigue)
Fear (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Fear)
Flash (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Flash)
Flicker (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Flicker)
Flux (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Flux)
Fly (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Fly)
Foil
Forbid (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Forbid)
Foresee (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Foresee)
Foreshadow (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Foreshadow)
Foresight (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Foresight)
Forget (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Forget)
Fortify (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Fortify)
Gamble (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Gamble)
Glory (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Glory)
Heal (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Heal)
Hinder (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Hinder)
Index
Insist (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Insist)
Inspiration (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Inspiration)
Karma (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Karma)
Launch (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Launch)
Lifelink (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Lifelink)
Lull (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Lull)
Lure (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Lure)
Mimic (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Mimic)
Miscalculation (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Miscalculation)
Miscast (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Miscast)
Mob (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Mob)
Morningtide (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Morningtide)
Negate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Negate)
Neutralize (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Neutralize)
Nullify (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Nullify)
Onslaught (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Onslaught)
Opportunity (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Opportunity)
Opposition (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Opposition)
Opt (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Opt)
Outnumber (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Outnumber)
Outwit (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Outwit)
Overload (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Overload)
Overrule (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Overrule)
Oversimplify (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Oversimplify)
Overwhelm (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Overwhelm)
Persist (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Persist)
Ponder (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Ponder)
Predict (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Predict)
Probe
Prohibit (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Prohibit)
Reanimate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Reanimate)
Rebound (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Rebound)
Rebuild (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Rebuild)
Recall (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Recall)
Recollect (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Recollect)
Recover (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Recover)
Recycle (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Recycle)
Redeem (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Redeem)
Redirect (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Redirect)
Refresh (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Refresh)
Regenerate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Regenerate)
Regeneration (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Regeneration)
Reinforcements (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Reinforcements)
Reiterate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Reiterate)
Reject (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Reject)
Relearn (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Relearn)
Remedy (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Remedy)
Remove
Repel (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Repel)
Reset (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Reset)
Restore (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Restore)
Retaliate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Retaliate)
Retaliation (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Retaliation)
Rethink (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Rethink)
Rivalry (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Rivalry)
Sacrifice
Salvage (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Salvage)
Scarecrow (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Scarecrow)
Scour (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Scour)
Scrap (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Scrap)
Scrounge (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Scrounge)
Seeker (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Seeker)
Shapeshifter (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Shapeshifter)
Shatter (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Shatter)
Shelter (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Shelter)
Shock (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Shock)
Simplify (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Simplify)
Sleep (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Sleep)
Smash (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Smash)
Snag (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Snag)
Snap (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Snap)
Sorry
Squash (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Squash)
Squeeze (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Squeeze)
Standardize (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Standardize)
Stun (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Stun)
Subtlety (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Subtlety)
Supersize (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Supersize)
Suppress (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Suppress)
Suspend (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Suspend)
Taunt (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Taunt)
Threaten (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Threaten)
Thwart (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Thwart)
Torment (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Torment)
Truce (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Truce)
Undo (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Undo)
Vanquish (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Vanquish)
Vigilance (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Vigilance)
Void (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Void)
Warning (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Warning)
Wastes (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Wastes)
Weakness (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Weakness)
Web (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Web)
Wish (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Wish)
Withdraw (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Withdraw)
Withstand (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Withstand)
Wonder (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Wonder)
X
Zap (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Zap)


With Humility (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Humility) I submit my list.  Perhaps if we Crackdown (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Crackdown) on this, we can Nix some of these odd autocards.
Titolo: Re: New: Format deck descriptions with Markdown
Inserito da: Slyvester12 - Giugno 29, 2022, 08:21:24 pm
Not to ruin the good work ApothecaryGeist is doing, but would it be easier to only link a card if the word is capitalized? So that Consider (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Consider) gets linked but consider (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Consider) doesn't? I think that would eliminate (https://cards.deckstats.net/magiccard.php?utf8=1&lng=en&card=Eliminate) most of the unintentional links. (Granted, starting a sentence with a card name would still screw that up, but I'm not sure there's a great solution to that.)