PSU Cyril Wiki talk:Weapon template

From PSU Cyril Wiki
Jump to: navigation, search

Synth rate field

  • I still think we should have some kind of note on the synth rate field stating what the range given means since it isn't directly obvious. The wiki reference tags would be ideal for this. Thoughts?
P.S. Good work on this tempalte. I'll add this link to the style guide.  ;) EspioKaos 02:11, 25 August 2007 (BST)

Weapons we don't have data for

  • What do we do when we have a weapon for which there is no data (i.e. we don't know the ATP, ATA, req etc. - we just know the name, description, and maybe some other odds and ends)? Do we just leave the unknown fields blank? - Mewn 15:26, 24 August 2007 (BST)
    • Well, we could either leave all the fields blank, or simply not add the "Stats, etc." part at all until we get the information. Either way would work. /shrug --Qwerty 18:45, 24 August 2007 (BST)

Wiki templates

Is there any reason why we aren't using wiki templates for a lot of this stuff? It would be a lot easier to maintain if we could for example write


{{Weapon board stats
| photon = Im-Photon
| photon_count = 15
| ore = Junaline
| ore_count = 2
| metal = Hapotite
| metal_count = 3
| wood = Par Walna
| wood_count = 3
| uses = 1
| synth_rate = ??-75%
| synth_time = 24:00
| board_name = Hyper Viper
}}

This is much easier to understand and edit than those tables. Forgive me if this has been discussed, I haven't seen it :D Au+ 11:51, 24 September 2007 (BST)

  • I have to agree. I still need to learn how to make these things, though. It doesn't look like anything too difficult, I just haven't taken the time to teach myself. <_<; - EspioKaos 14:38, 24 September 2007 (BST)
    • I have several reasons why I didn't do that. Primarily, I have absolutely no idea how to set them up like that. Additionally, I'm concerned that it might not work with the correct colors, might mess up the page in general (all the tables are themselves in one big table for the sake of alignment, and I've had bad experiences using templates within tables before), and I'm not sure how it would work with tables for weapons/items that have differing ingredients or otherwise a different set-up for the table. I also think the current way is just as easy to edit as that, but whatever. If you can make it work without looking any different, then go ahead. --Qwerty 19:55, 24 September 2007 (BST)
      • Alright, I'll make a few templates for this in the next few days starting with weapon pages. Au+ 22:06, 24 September 2007 (BST)

Progress

Before I go on, I'd like some feedback on the things I have so far. Please have a look at the Sabic. Should look just like any other weapon page. Hit the edit link and have a look at the source. A world of difference there, and hopefully much easier to understand, and maintain. First, the weapon stats box. The source for this now looks like this:

{{Striking weapon stats
| type = Saber
| rarity = 6
| pp = 186
| attack = 379
| ata = 160
| version = PSU
| req = 187
| maker = K
}}

The resulting box looks like this:

Stats
Type
Sabers
PP 186
Rarity 6★ ATP 379
Ver. Phantasy Star Universe ATA 160
Maker Kubara Product Req. 187


Every option here should speak for itself. Version is either 'PSU' or 'AotI', and maker is the first letter of the manufacturer, in this case 'K' for Kubara. A single letter because templates for manufacturer icons already existed and I could use them this way. This particular template is called 'Striking weapons stats', there is also 'Ranged weapons stats' and 'Force weapons stats'. The ranged one is the same, the force one replaces ATP with TP and displays no ATA.

The next one is slightly more complicated under the hood. In the source for the weapon it simply looks like this: [Obsoleted]

Very simple, and yet a full board info box appears! Like so: [Obsoleted]

This is the 'specialized' template for 6* Kubara striking weapons. This template calls another template, namely the 'Board stats' template, filling in all the details that 6* Kubara striking weapons have in common. The only thing that's different is the name, and the metal used for synthing, so that is filled in on the weapon page. I plan to make specialized templates for each rank of each weapon type, as these have many properties like synth chance, time, many ingredients used, in common. This way, when for example synthing time changes (and it will as you may or may not know!), we only have to adjust a few templates rather than every weapon page. It also prevents mistakes when making the pages.

Some examples:

[Removed for obsoletion - look here: The PSUPedia:Article templates]

These templates take the parameters 'name' - the board name (without the [B] part), 'photons' - which photons may be used, metal - which 'metal' is used for synthing, and 'wood', the used wood type. Check the source of this page to see how easy these are made with these templates.

However there's also special weapons that cannot use any of these templates - monster part weapons, etc - and those can simply use the base template instead. It is called like this:

{{Board stats
| material1 = Photons
| ingredient1 = El-Photon
| ingredient1count = 10
| material2 = Ore
| ingredient2 = Neptuline
| ingredient2count = 10
| material3 = Gemstone
| ingredient3 = Diad
| ingredient3count = 30
| material4 = Biomaterial
| ingredient4 = Relic Edge
| ingredient4count = 10

| uses = 1
| rate = 38-62%
| time = 24:00
| name = Psycho Wand
}}

And the resulting box:

Board stats
Photons El-Photon x10 Ore Neptuline x10
Gemstone Diad x30 Biomaterial Relic Edge x10
[B] uses 1 Synth rate 38-62%
Synth time 24:00 [B] used [B] Psycho Wand


Easy, as you can see! Moving on, we arrive at the Pricing info box.

{{Pricing info
| buy = 12000
| sell = 600
| shop = [[KUBARA SPREAD]]
| bbuy = N/A
| bsell = ?
| bshop = None
}}

buy, sell and shop, and with a b in front for the board version. A specialized set of templates for prices for each rank could be made perhaps, I'm not sure if all board and weapon prices are the same.

Last, there's the grinding info box.

{{Grinding info
|attack = ATP
|a0 = 379
..
|a10 = ???

|pp0 = 186
..
|pp10 = ???
}}

I cut out a1-a9 and pp1-pp9 for the sake of brevity here. 'attack' is the attack stat - ATP or PP depending on weapon type; and the others are the stats at each grind.

There. I hope you'll agree that this is a big improvement for our article editors, and I await your comments!

  • Wow! Excellent work! These look like they'll help us out immensely.  :D One more template that will have to be made is for shadoogs. SonicTeam decided that their attack power would not be based on ATP but TP. Basically, the template for these would be the same as a TECHNIC weapon's template, but with ATA included. - EspioKaos 19:17, 26 September 2007 (BST)
  • Great job. I had been working on more articles, but the tables were very daunting. This makes things a -lot- easier. - Aewyn 03:00, 27 September 2007 (PDT)

Slowpoke

Yes I am. So, The_PSUPedia_talk:Weapon_page_templates. How's it look? There could be more templates, for example for all S rank Kubara weapons but I don't really know anything of those yet. Also maybe crea weapons. We'll see.


Oh, there's still lots of stuff missing, synth rates and times in particular. I've also made The_PSUPedia_talk:Weapon_page_templates_overview so it's much easier to see what's missing or incorrect. I got some info from various other places, and the 12* synth stuff has been guesswork, but all other info that is there should be correct. Au+ 11:58, 12 October 2007 (BST)

  • Well, you may want to leave the parameter for synth rate undefined on all the board templates, because the rate for everything will be changing with AoI, and your format doesn't really allow for changing the rates manually (or inserting ??-??%), so they would all display incorrect percents with no way of fixing it without using the generic board template, so you might want to go through and make synth rate an editable parameter on all the board templates, at least until we figure out the new patterns for AoI, but that won't be for a while. Also, I'd really prefer it if the TP cells for the tech weapon stats template were merged, so we don't have an empty box. In other words, make it more like this:
Stats
Type
Rods
PP 1368
Rarity 10★ TP 673
Ver. Phantasy Star Universe
Maker Yohmei Req. 431

Also, we'll need a few more templates for Shadoogs. In terms of stats, they only have TP and PP (I think), and their synthesis uses elemental photons instead of Im-photons, though they are still technically ranged weapons. Otherwise, it looks good. --Qwerty 17:43, 12 October 2007 (BST)


  • I was unable to do those merged cells and still use the same base Weapon stats template; I can make a completely new one if you really want that, though, but I did prefer to use the same base template everywhere. As for the changing of the rates, that's really where the templates come in handy. You just change it in the appropriate template - and all weapons that use it change with it. There is one template for each grade of each weapon category, and I don't believe the rates will be different with same weapon types at the same grade. All 'normal' 9* striking weapons have the same 12:00 synth time, for example, and they will all still be the same after the adjustment. For shadoog synthing info, I think the striking templates will work? For the weapon stats; does it use ATA or is it like a Force weapon? Au+ 18:28, 12 October 2007 (BST)
    • Yeah, shadoogs use TP and ATA for their stats, but they have no PP. - EspioKaos 19:08, 13 October 2007 (BST)
      • Lolya, meant ATA instead of PP. That's what I get for making edits late at night. --Qwerty 23:00, 13 October 2007 (BST)
        • Incidentally, if you're going for accurate terminology I believe it'd be "Technic weapons". - Miraglyth 14:09, 14 October 2007 (BST)