Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: [1]

Author Topic: Cost in Debt  (Read 4676 times)

0 Members and 1 Guest are viewing this topic.

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Cost in Debt
« on: May 09, 2016, 12:36:02 pm »
+1

So, I've managed to create a Debt template that will be added to as more Debt cards are revealed, but I have no idea how to amend the Cost template to allow costs of Debt in, for example, card infoboxes.  Any help here would be wondrous.  :)
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Phil

  • Swindler
  • ***
  • Offline Offline
  • Posts: 18
  • Shuffle iT Username: Sunfall
  • Respect: +76
    • View Profile
Re: Cost in Debt
« Reply #1 on: May 09, 2016, 01:30:22 pm »
+3

I went down the rabbit hole a bit on this, and fair warning: my Mediawiki-fu is super-stale, as I haven't been an active editor of Wikipedia in ~6 years.

I think the magic actually lies in the subtemplates. Template:Coin maps coin names (0-8, 0*, etc.) to images named "Coin$X", where $X is the cost.  Similarly, Template:P adds a potion graphic of appropriate size.

You could either modify Template:Cost and add, say, "8d" as a "coin" type next to all the pluses and stars and whatnot, then upload a graphic called "Coin8d.png", which is the super lazy way to do it.  Alternately, you could make a whole new template type and bang on Template:Cost.  The challenge there is the thirty different levels of nesting that template already has in terms of how it breaks out coin costs.  I suspect the lazy way is the easiest until someone gets a real burning yen to do it the complex way.
Logged

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #2 on: May 09, 2016, 02:01:14 pm »
0

I made the new template for Debt already, on the off chance that there are cards/Events with both Coins and Debt in their cost.  I have no idea how to then insert it into the Cost template itself.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #3 on: May 09, 2016, 11:25:01 pm »
0

I figured it out.  If you want to have a cost in Debt, it has to be {{Cost|||X}} where X is the amount of Debt.  The 1st slot is for Coin cost, the second slot is for the size of the coin.  So now the third slot holds Debt.

No, that doesn't work with the infobox.  Fuck.
« Last Edit: May 09, 2016, 11:31:56 pm by werothegreat »
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #4 on: May 09, 2016, 11:38:36 pm »
0

Does this wiki have any support for getting subsections of strings?  The only things I can find that work are padright and padleft, but those only ever take the first characters from the left.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #5 on: May 10, 2016, 12:19:51 am »
+2

Okay I did get it.  In the Card Infobox, there is now a cost and a cost2 - "cost" is for Coins and Potion, while "cost2" is for Debt.  If you're writing in the body of an article, just use the {{Debt}} template and save yourself the hassle.

In order to achieve this victory, I've had to sacrifice categories by card cost on the wiki.  I'm not going to be shedding a tear for them; if you are, feel free to try your own luck at this.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 9701
  • Respect: +10741
    • View Profile
Re: Cost in Debt
« Reply #6 on: May 10, 2016, 11:30:19 am »
0

So the article on Debt says that it is "an alternate cost for some cards and Events in Empires"... but we don't actually know that any Events will cost Debt do we?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 9701
  • Respect: +10741
    • View Profile
Re: Cost in Debt
« Reply #7 on: May 10, 2016, 11:34:45 am »
0

Should Capital be listed as a "Debt card"? I feel like it should be a separate thing. Like "list of cards with Debt cost", and "Cards that use Debt tokens in some way". Kind of like how I wouldn't put Apprentice on "List of Potion cards", but I would still mention it (though I looked, and the article for Potion doesn't list Potion-cost cards).
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #8 on: May 10, 2016, 11:53:17 am »
+1

So the article on Debt says that it is "an alternate cost for some cards and Events in Empires"... but we don't actually know that any Events will cost Debt do we?

Hedging my bets.

Should Capital be listed as a "Debt card"? I feel like it should be a separate thing. Like "list of cards with Debt cost", and "Cards that use Debt tokens in some way". Kind of like how I wouldn't put Apprentice on "List of Potion cards", but I would still mention it (though I looked, and the article for Potion doesn't list Potion-cost cards).

I like having the broad category of "debt card" being one that uses debt in some way.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #9 on: June 06, 2016, 09:14:04 pm »
0

Ugh, so it looks like putting a Debt cost card in a Kingdom automatically adds potions, and I have no idea how to fix that. D:
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8172
  • Shuffle iT Username: werothegreat
  • Let me tell you a secret...
  • Respect: +9625
    • View Profile
Re: Cost in Debt
« Reply #10 on: June 06, 2016, 09:37:08 pm »
+2

Fixed it through the brute force of switch statements.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Pages: [1]
 

Page created in 0.097 seconds with 21 queries.