Shena'Fu's Online Card Creator

## Instructions ##

* Mana symbols:
	* Valid mana characters are 0123456789bcefgikqrstuwxyz.
	* Hybrid and Phyrexian mana are in the form 2/c, c/2, c/d, d/c, p/c, c/p. (For example, 2/w w/p r/w)
	* To print mana symbols in the rules text or extra, enclose the mana code in {}. (Brackets are not necessary in the mana cost field.) (e.g. {2gg2/w})
	* To use custom mana symbols, see Appendix D.

* Rules text and extra formatting
	* Use ~ or ~this~ or CARDNAME or \`\`CN or \`\`NAME in the rules text, flavortext, or extra, to substitute in the card's name. Subsequent occurrences will replace with first name only. Also can use ~~ to substitute in just the first name (the part of the name before the first comma). ex.:
		* When ~ attacks...
		* ~~ deals damage...
		* CARDNAME enters tapped.
		* \`\`CN can be your commander.
	* Use () to italicise sentences along with the (). (i.e. reminder text.)
	* Use [] brackets to italicise words without the []. (i.e. ability words, vainwords.)
	* Use <> brackets to bold words without the <>.
	* Use __ underscores to underline words.
	* Use []: around a planeswalker's loyalty cost. ( [+1]: effect. )
	* Use * for bullet. (i.e. for list of choices.)
	* Use -- for —.
	* Use aliases between two @@ symbols. See Appendix A for available aliases.
	* Use <<<< to print to left column.
	* Use >>>> to print to right column.
	* Use <<>> to exit column mode.
	* Store any amount of text strings inside two backticks \`. Then retrieve them with double-backticks and index \`\`N for the Nth text string stored. N starts at 0.
		* Ex. Level up \`{2}\` (\`\`0: This gets a level counter.)
		* Ex. \`Plains\`cycling \`{2}\` (\`\`1, Discard this card: Search your library for a \`\`0 card.)
	* Use `` double-backticks to paste in the card's traits, such as name or subtypes. See Appendix C for usage.
	* Use \\\\ double-backslash, followed by any of the above special symbols, to print the symbol without executing its special function. Use \\\\\\\\ four backslash to print a backslash.  (ex. \\\\[ to print a bracket, but not make the subsequent text italics.)

* Flavor text formatting:
	* Default font is in italics.
	* Use [] brackets to remove italics between the brackets.
	* Use \\\\[ to print a bracket, but not change the italics mode.

* Flip and split cards: use ;; double semicolons to separate each half in corresponding fields. (e.g. Fire;;Ice) For examples, see [Armed;;Dangerous](https://bit.ly/Armed_Dangerous), [Fire;;Ice](https://goo.gl/RC6Tbi), and [Budoka Gardener;;Dokai, Weaver of Life](https://bit.ly/2DEbNy3).

* Leveler cards:
	* Select frame Vogon HD or Vogon Full Art.
	* Use ;; double semicolons to separate each level's P/T and rules texts.
	* Each level's rules text may start with level information enclosed within these brackets []{}()
	* For examples, see [Coralhelm Commander](https://goo.gl/iCrQfr)

* Playing card options:
	* Rank = P/T
	* Suit = Set Icon or Mana Cost
	* Title = Extra and/or Subtype
	* Art and Rules + Flavor Text = Printed in the center

* Genre alters the card types and supertypes.

* For set icon, all pixels with color value of #FF00FF (255, 0, 255) Magenta will be replaced with rarity color.
Default icon is [https://ieants.cc/magic/symbols/seticon.png](https://ieants.cc/magic/symbols/seticon.png)

* Art, overlay, watermark, and set icon may have special instructions acted upon them, such as crop and alpha. At the end of the URL, put two hashes ##, then the instruction and parameters separated by commas. Split cards specify these instructions individually for each half. See Appendix B for list of image manipulation commands.
	* Example:
	* ##crop,x,y,w,h
	* ex: (Ichorid from Gatherer) https://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=35923&type=card##crop,26,30,171,137
	* ex split cards: (Illusion;;Reality from Scryfall) https://img.scryfall.com/cards/art_crop/front/8/e/8e7dd90a-4f93-43aa-b503-18289fdd571e.jpg?1562928558##crop,0,0,377,254;;https://img.scryfall.com/cards/art_crop/front/8/e/8e7dd90a-4f93-43aa-b503-18289fdd571e.jpg?1562928558##crop,377,0,377,254

* Creator is your name or handle, to differentiate from other creators. Cards that have the same card name and creator will also share the same URL for the image. In other words, the URL could be overwritten by someone else who uses the same card name and creator. So try to make your name unique. It can also be the name of your set.

* You can view a list of all your cards via [this Card List](https://ieants.cc/magic/cclist/) and add your creator name at the end of the URL address.

* Retrieve a previously created card that matches both card name and creator.

* It would behoove you to save the image on your hard drive and upload to your personal photo or image storage. Right-click on the image to bring up a menu. You can then save it to your hard drive and/or copy the image address.

* Scan the QR code with your mobile phone or tablet, and open the image using a browser app. Then save the image to the device.

* Discuss each individual card using a [Disqus](https://disqus.com/) account.

## Appendix A ##

Aliases will be automatically replaced as you type them in the rules text. Enclose alias on the left column between two @@ symbols. For instance, @ett@ in rules text will become 'enters the battlefield tapped'. Some aliases have both lower- and upper-case versions. Some aliases will take a variable. For instance @dd2@ becomes 'deals 2 damage', and @g+1@ becomes 'get +1/+1', and @ctr+1/+1@ becomes 'put a +1/+1 counter on'.

* List of aliases

	@a@ artifact
	@add@ additional
	@anyt@ any target.
	@bf@ battlefield
	@C@ Creature
	@c@ creature
	@cmc@ converted mana cost
	@Ctr(.*)@ Put a $1 counter on
	@ctr(.*)@ put a $1 counter on
	@cy@ creature you control
	@Cys@ Creatures you control
	@cys@ creatures you control
	@dcd@ deals combat damage
	@dd([0-9xyzXYZ]+)@ deals $1 damage
	@dde@ deals damage equal to
	@drawall@ At the beginning of each draw step,
	@draweach@ At the beginning of each draw step,
	@drawnext@ At the beginning of the next draw step,
	@drawopp@ At the beginning of each opponent's draw step,
	@drawyou@ At the beginning of your draw step,
	@e@ enchantment
	@Ec@ Each creature
	@ec@ each creature
	@Eco@ Each creature your opponents control
	@eco@ each creature your opponents control
	@Ecy@ Each creature you control
	@ecy@ each creature you control
	@emb@ You get an emblem with "
	@emblem@ You get an emblem with "
	@endall@ At the beginning of each end step,
	@endeach@ At the beginning of each end step,
	@endnext@ At the beginning of the next end step,
	@endopp@ At the beginning of the each opponent's end step,
	@endyou@ At the beginning of your end step,
	@Eo@ Each opponent
	@eo@ each opponent
	@et@ enters the battlefield,
	@ett@ enters the battlefield tapped.
	@g(\+|\-)([0-9xyzXYZ]+)@ get $1$2/$1$2
	@gs(\+|\-)([0-9xyzXYZ]+)@ gets $1$2/$1$2
	@gy@ graveyard
	@ias@ instant and sorcery
	@ios@ instant or sorcery
	@lib@ library
	@o@ opponent
	@oc@ opponent controls
	@ocs@ opponents control
	@p@ player
	@pm@ permanent
	@ppw@ player or planeswalker
	@Ps@ Players
	@pt@ power and toughness
	@pw@ planeswalker
	@Sac@ Sacrifice
	@sac@ sacrifice
	@Syl@ Search your library
	@syl@ search your library
	@T@ Target
	@t@ Target
	@Tc@ Target creature
	@tc@ target creature
	@Tco@ Target creature an opponent controls
	@tco@ target creature an opponent controls
	@tcp@ target creature or player
	@tcpw@ target creature or planeswalker
	@Tcy@ Target creature you control
	@tcy@ target creature you control
	@tn@ toughness
	@To@ Target opponent
	@to@ target opponent
	@Tp@ Target player
	@tp@ target player
	@tppw@ target player or planeswalker
	@tpw@ target planeswalker
	@Uet@ Until end of turn
	@uet@ until end of turn
	@upkall@ At the beginning of each player's upkeep,
	@upkeach@ At the beginning of each player's upkeep,
	@upknext@ At the beginning of the next upkeep,
	@upkopp@ At the beginning of each opponent's upkeep,
	@upkyou@ At the beginning of your upkeep,
	@uynt@ until your next turn.
	@we@ Whenever
	@yc@ you control
	@youpw@ you or a planeswalker you control


## Appendix B ##

Image manipulation commands for art, overlay, watermark, and set icon URLs. At the end of the URL, append ## double hashes, then the command and parameters separated by commas (no spaces). Each URL may have up to five commands appended, and processed in that order; Separate each command with ##. Note: The final image will be scaled and stretched to match the card's area for that field.

* List of commands, usage, and examples:
	* ##crop,x,y,w,h
		* Crops a subsection of the image. Please ensure that dimensions, values are within the boundaries of the image.
		* Ex. ##crop,26,30,171,137
	* ##rotate,degrees
		* Rotate the image clockwise by specified degrees
		* Ex. ##rotate,270
	* ##alpha,value between 0.0 and 1.0
		* Make the image transparent. 0.0 for fully transparent, 1.0 for fully opaque
		* Ex. ##alpha,0.25
	* ##flip
		* Flip the image around the X-axis (up-down)
		* Ex. ##flip
	* ##flop
		* Flop the image around the Y-axis (left-right)
		* Ex. ##flop

* Examples of multiple commands:
		##crop,26,30,171,137##alpha,0.25
		##flip##crop,26,30,171,137

## Appendix C ##

In the rulestext, flavortext, and extra, you can paste in the card's traits using double-backtick and the code for that trait.

* List of codes:
	* \`\`CN or \`\`NAME = cardname
	* \`\`PT = power/toughness
	* \`\`SUP or \`\`SUPER = supertypes
	* \`\`TYPE = types
	* \`\`SUB = subtypes
	* \`\`MC or \`\`COST = mana cost
	* \`\`CR = creator


## Appendix D ##

Custom mana symbols allow you to use images from the Internet as mana symbols on the card. You provide the mana code and the URL to the image for that code. Use # hash to separate the code and the image, and to append multiple manacode-to-symbol pairs. Any number of pairs of manacode/URL may be provided, up to 2000 characters long in the custom mana field.


* Mana codes should be a single alphanumeric lowercase character, or two such characters divided by / slash.
	* #w
	* #w/u
	* #2

* Ex. Single symbol
	* To use the 'f' mana code for your own fire symbol:
	#f#https://ieants.cc/magic/symbols/modern/mana\_r.png
	* To use the 'w/u' mana code for your own hybrid white/blue symbol:
	#w/u#https://ieants.cc/magic/symbols/modern/mana_wu.png

* Ex. Multiple symbols
	* To use the 'w' mana code for your own white symbol and the 'u' mana code for your own blue symbol, join them into one long string, like so:
	* #w#https://ieants.cc/magic/symbols/modern/mana\_w.png#u#https://ieants.cc/magic/symbols/modern/mana_u.png