Widget talk:TreasureCardFilter: Difference between revisions
From Unforgotten Realms Wiki
Jump to navigationJump to search
imported>Razorhead Response to Plornt |
imported>Plornt No edit summary |
||
| Line 4: | Line 4: | ||
:Ah, yeah I added it in after but forgot to purge the Treasures page so it should all work now. I dont think I am using the same ID's as before though. What did you use for the IDs previously? Currently I am using the card name in shorterned format [[User:Plornt|Plornt]] ([[User talk:Plornt|talk]]) 14:00, 6 June 2015 (EDT) | :Ah, yeah I added it in after but forgot to purge the Treasures page so it should all work now. I dont think I am using the same ID's as before though. What did you use for the IDs previously? Currently I am using the card name in shorterned format [[User:Plornt|Plornt]] ([[User talk:Plornt|talk]]) 14:00, 6 June 2015 (EDT) | ||
::The names of the cards. Do you manually set the ids or does the script do that? --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 14:55, 6 June 2015 (EDT) | ::The names of the cards. Do you manually set the ids or does the script do that? --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 14:55, 6 June 2015 (EDT) | ||
:::The IDs for it currently are taken from the Widget include parameters. So like it has card.wiggly_wrench.name "wiggly_wrench" would be the ID. Im not sure I can use the name of the card as ID since it contains spaces, not exactly sure how it handles that. [[User:Plornt|Plornt]] ([[User talk:Plornt|talk]]) 15:00, 6 June 2015 (EDT) | |||
Revision as of 19:00, 6 June 2015
Hey. Well done, I am impressed by how this works. The only issue I've found is that the div's for the individual cards don't have id's one the Treasures page, so we can no longer link to them eg. Treasures#Kingfisher Cloth. Which is weird, since I think you did include an id for this on this line of code:
<div class="pure-g content-box " id="<!--{$cardName|escape:'html'}-->" data-card="<!--{json_encode($card)|escape:'html'}-->" data-cost="<!--{$card.cost|escape:'int'}-->" >
So I think this is just a bug? --Razorhead (talk) 13:31, 6 June 2015 (EDT)
- Ah, yeah I added it in after but forgot to purge the Treasures page so it should all work now. I dont think I am using the same ID's as before though. What did you use for the IDs previously? Currently I am using the card name in shorterned format Plornt (talk) 14:00, 6 June 2015 (EDT)


