PSU Cyril Wiki talk:Weapon template

From PSU Cyril Wiki
Revision as of 18:08, 26 September 2007 by Au+ (talk | contribs) (Wiki templates: Feedback wanted!)

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:

{{Board stats 6 star kubara striking
| name = Sabic
| metal = Peparian
}}

Very simple, and yet a full board info box appears! Like so: Template:Board stats 6 star kubara striking

This is the 'specialized' template for 6* Kubara striking weapons. This template (Click: [[1]]) itself 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:

Template:Board stats 7 star striking Template:Board stats 8 star striking Template:Board stats 9 star striking

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!