Touhou Wiki

Spell Card 001

Screenshot No. 001: 蛍符「地上の流星」
Firefly Sign "Meteor on the Earth"
Owner: Wriggle Nightbug
Stage 1 — Hard
Comment: {{{comment}}}


{{Spell Card Info
| image      =Image
| number     =Number
| name       =Name<br />Translation<br />Optional translation notes if needed
| owner      =[[owner]]
| stage      =Stage 1, Extra Stage, Spell Practice, etc.
| difficulty =Easy, Hard/Lunatic, Last Word, etc.
| commentjp  = 
| commenten  =
Untranslated comment, followed by translation and notes if needed.
Some descriptive comment about the Spell Card if no official comment was given.


Templete for IN spellcard list by Aona. For PCB and EoSD spellcards, replacing ZUN's comment to "Attitude" will do, I guess. Yes, obviously this is based on (or rather copied and modified) Leviathean's character profile templete, so amount of work I did is quite minor... heh.

As you see, it's not viable at now. Stages and Difficulty squares are pushed to far right, and no matter how I put width and such it didn't want to move from there. I had some stare at Infobox template which has similer structure to this, but I couldn't figure out what's making that one right, and this one wrong... If you have some idea, please help me.

What you needed to fix the width was a colspan attribute. Without colspan, {{{name}}} and {{{comment}}} occupy exactly one column in the table, which is why there was nothing above or under the Stage and Difficulty columns.
A part of the bottom border was missing because the Image column's rowspan attribute said that the table cell should be 9 rows tall, but there were only 3 rows in the table.
--Deciare 14:40, 16 Jun 2005 (PDT)

Ah, thank you.
I think I've understood this a bit... now I'll see how many % should I put for each column in second line to make it more better.

Just a thought, but isn't the browser's auto-detection of column widths good enough? With the exception of shrinking the ZUN's Comment header column a bit, I think auto-layout does an acceptable job.
--Deciare 15:25, 16 Jun 2005 (PDT)

Well, I know I should stop using IE... but on IE it didn't look good with stage and difficulty being pushed to somewhat right.
If my attempts with width is making it looks messed on other browser then I'll remove width setting, but if it's not... I'd like it to be looks better for both me (and other IE-users) and everyone, than everyone outside IE.

Meh, second thought. I've forgot that % setting will make it specific to one display resolution... I'll remove it then.

With CSS, you can use the em unit to set width in terms of numbers of letters. Something like style="width: 8em;". That's pretty resolution dependent, I think... Or rather, you'd normally be able to do that, but it doesn't seem to have any effect in tables.
--Deciare 15:56, 16 Jun 2005 (PDT)

Speaking of IE, I really should update my test Windows 2000 installation to something newer than IE 5.0, but I'm not terribly trusting of updates from that company. IE 5 and IE 6 render pages more or less the same way, right?
--Deciare 15:56, 16 Jun 2005 (PDT)

Are we not going to include the original Japanese? Hmm... that would make things easier for us.
--Leviathean 19:23, 16 Jun 2005 (PDT)
Uh, while making this I thought there's no demand in original name anymore as it has number and screenie... literally all info one need to identify a spell card.
However, if it's still necessary, I'll add columon for that to... hmm, maybe we can make it 4 rows rather than adding that to left side of English name, so each boxes would look like vertically smaller than current version.

Okay, so I tried playing around with the multi-row tables, wanting to force all the rows with information to be as squished as possible at the top of the table, instead of spread out equadistantly depending on the height of the image used. It was already not looking too good with a picture only 235 px high, and if you started using taller pictures to experiment like I did, it was terrible. Well, I messed around with wiki tables for two hours and didn't come up with anything good, so instead for now I'm removing all the extra rows and columns and just using one cell to store all the data.
I'm still using all the same fields as before, so if you want to try experimenting with the multi-row format again, you can revert back into past revisions easily and experiment yourself. Also, this format can be extended to other games, except for IaMP, which needs slightly less information.
--Leviathean 04:59, 17 Jun 2005 (PDT)

The row height problem is unique to IE. Using either height="1" or style="height: 1%;" for each table row (after the valign="top") looks perfect on every other browser I try (Firefox and other Gecko derivatives, Konqueror, and Opera). Screenshot:
I think it's a little extreme to make this one template inconsistent with every other template just to accommodate a single, non-compliant browser. Equidistant rows aren't that much of a bother.
--Deciare 01:37, 18 Jun 2005 (PDT)

Shoot, really? Get it together, IE! Also, thanks for educating me, Deciare.
--Leviathean 08:25, 18 Jun 2005 (PDT)

Regarding the series of template edits prompted by SWR & Rukiax

Ahh thanks Pron for that edit, i did not know the template was used else where, i do apologize, but i did not know you could do if commands in wiki...learn something new everyday :D Rukiax 19:43, 2 June 2009 (UTC)

Some edit concerns:

if exist {{{commentjp}}} + {{{commenten}}}
   display Comment JP + {{{commentjp}}} and Comment EN + {{{commenten}}}
   display Comment + {{{comment}}}

I'm headache of editing this thing. KyoriAsh 11:33, 3 June 2009 (UTC)

Template now interfering with SWR spell cards, can someone explain whats going on with the code.... as i just updated a charcaters card and it went pear shaped. Rukiax 00:47, 4 June 2009 (UTC)

Hate to waste much of the work you guys have put into this template, but wouldn't it be simpler, easier, and better to just make a new template for the SWR spell cards, and revert this template back to Moogy's last version (with perhaps some minor improvements from Pron., but I haven't (even nearly) finished looking into what exactly all those tweaks actually do yet)? So, think I'm gonna do that, then edit one of the SWR pages to make use of the new template, and then (assuming all goes well) give you guys ( Pron., KyoriAsh, and Rukiax, in particular) some time to accept or argue against the changes before updating all the other SWR spell card pages to use the new template. --Winane 03:59, 4 June 2009 (UTC)

Just as a warning to anyone else working on this (or any other templates, for that matter):
It appears that when you update a template, whichever pages made use of that template remain cached for a while (dunno for how long, if left alone), and continue to be displayed with the old version of the template unless the page is edited. But when tweaking templates and testing your modifications, you can use the Preview button on one of those pages to see how it would look once updated with the new template, without filling up the page's revision history with a bunch of null edits. --Winane 05:15, 4 June 2009 (UTC)