Card name links using nicknames
TappedOut forum
Posted on Aug. 30, 2016, 9:46 p.m. by Mawootad
Is there a way to set up a card link so that the link refers to a card that's different than the text? I want to refer to cards like Dark Confidant and Tarmogoyf as Bob and Goyf, but I don't know how to do that without losing the card hover. I tried looking through the formatting guide but didn't find anything useful.
I just use the link syntax, link the card page, and change the title to whatever you please. Makes more sense to me and how bad I am at coding....
August 30, 2016 10:18 p.m.
just get yourself a copy of suicide linux, it'll get you good at coding in no time :P
August 30, 2016 10:22 p.m. Edited.
Mawootad,
enpc has the coding exactly right, but it's really not too difficult ... you can get by without the html skills if you've got some cut-and-paste and find-the-card-image skills.
For example, I usually start with this Sad Robot template:
<span class="card">
<a rel="popover" data-original-title="FOO" class="card-link card-hover" href="/mtg-card/solemn-simulacrum/" data-image="http://static.tappedout.net/mtg-cards-2/commander-2015/solemn-simulacrum/mtg-cards/_user-added/femme_fatale-solemn-s_tGMB8Og.png" data-show-price="false" data-name="Solemn Simulacrum" data-foil="">
Sad Robot
</a>
<span class="screen hide image-box">
<img src=" http://static.tappedout.net/mtg-cards-2/commander-2015/solemn-simulacrum/mtg-cards/_user-added/femme_fatale-solemn-s_tGMB8Og.png " class="screen card-popover" alt="MTG Card: Solemn Simulacrum">
</span>
</span>
And if I wanted to change it to, for example, Ma and Pa Fireball , I just ...
- Cut-and-paste the text above
- Replace /mtg-card/solemn-simulacrum/ with /mtg-card/pia-and-kiran-nalaar/ (from the url of the Pia and Kiran Nalaar page)
- Replace the Solemn Simulacrum texts with Pia and Kiran Nalaar
- Replace the image addresses (http://static.tappedout.net/mtg-cards-2/commander-2015/solemn-simulacrum/mtg-cards/_user-added/femme_fatale-solemn-s_tGMB8Og.png) with the image address from the Pia and Kiran Nalaar page)
- Replace the Sad Robot text with Ma and Pa Fireball
Hope that helps!
August 31, 2016 1:21 a.m. Edited.
AngryKitten says... #6
Will the tappedout card syntax work for you? bob is
[[card:Dark Confidant|bob]]
August 31, 2016 9:59 a.m. Edited.
That actually got implemented? Awesome. I remember there was a discussion about it like 6+ months ago but I couldn't remember if anything came about from it. Guess so.
August 31, 2016 10:12 a.m.
AngryKitten says... #8
It broke the database for a little while so I think people didn't really start using it and forgot about it.
enpc says... #2
You can make
Dark Confidant
display as
Bob
by modifying the following:
< span title="" data-original-title="" class="card card-type-creature card-color-black-cost-2 card-color-black" >< a rel="popover" data-original-title="FOO" class="card-link card-hover" href="/mtg-card/dark-confidant/" data-url="/mtg-card/dark-confidant/" data-image="http://static.tappedout.net/mtg-cards-2/modern-masters-2015/dark-confidant/mtg-cards/_user-added/hellsing-dark-confidant-14309677440.png" data-show-price="false" data-ch-url="https://www.cardhoarder.com/cards/57344/?affiliate_id=tappedout&utm_campaign=affiliate&utm_source=tappedout&utm_medium=card" data-tcg-url="http://store.tcgplayer.com/magic/modern-masters-2015/dark-confidant?partner=TPPDOUT" data-tcg-price="39.99" data-tcg-foil-price="67.87" data-cardhoarder-price="11.99" data-cardhoarder-foil-price="11.58" data-name="Dark Confidant" data-foil="" >Bob< /a >< /span >
I have inserted spaces around the element delimiters so you'd have to remove them. I've also set the price to not display. If you're not confident with html thought, I would recommend against using this method.
August 30, 2016 10:08 p.m. Edited.