User talk:DeSims: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
imported>Nikel23
imported>Nikel23
No edit summary
Line 1: Line 1:
{|align="right" style="border: solid 1px #CCC; padding: 5px; background-color:#F9F9F9;"
|<center>[[Image:Replacement filing cabinet.svg|40px|Archives]]</center>
|-
|<center>'''Archives'''</center>----
[[User talk:Tiezel/Archive 1|1]]
|}
==RE: Pet template==
==RE: Pet template==
Oh, I understand. The {{T|Pet}} template we have here is actually rather messy, and I'm inclined not to change it unless I really mean to design it. However, maybe I can help you out with your Pet template.
Oh, I understand. The {{T|Pet}} template we have here is actually rather messy, and I'm inclined not to change it unless I really mean to design it. However, maybe I can help you out with your Pet template.

Revision as of 14:07, 17 April 2014

Archives
Archives
----

1

RE: Pet template

Oh, I understand. The {{Pet}} template we have here is actually rather messy, and I'm inclined not to change it unless I really mean to design it. However, maybe I can help you out with your Pet template.

What you need is an implementation of a categorizing template. The template is something like this {{GetFavoritesCat}}. You can see more categorizing templates here. You can replace the chunk of codes for the species category in your Pet template. That chunk of codes causes the template to appear broken when it's used on a page, so I disabled it at the moment. It means the categories will be missing for now, so we might want to resolve it fast.

I can make the categorizing template for you if you want to. Just give me the list of all species and genders and all the category outcomes here. But if you want to do it yourself, I'll assist you, so don't worry. :) You may want the template to be something like {{GetSpeciesCat|<species>|<gender>}}, which takes two parameters. Nikel Talk Vote! 17:05, April 11, 2014 (UTC)

I think the GetSpeciesCat is all right already, but I added horse in. Now for the age category. Does it work like English? In English, there are kittens, puppies, foals, adult (species), and elder (species). If in Dutch we also use volwasse (species) and oudere (species), we could make an inline categorization without the need of categorizing template. Nikel Talk Vote! 03:42, April 12, 2014 (UTC)
I changed my mind. I couldn't make the code inline, so I made nl:Sjabloon:GetPetAgeCat instead. There's something I don't understand though. You said "adult" is "volwasse", but I saw Hecuba Goth's age as "volwassene". Basically, it's all done, and you only need to tweak the GetPetAgeCat template a little to correct the parameters and categories. Nikel Talk Vote! 13:31, April 12, 2014 (UTC)