User talk:DeSims

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by imported>Nikel23 at 07:18, 29 April 2014 (→‎RE: Pet template). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Jump to navigation Jump to search
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)
Sometimes, spacing matters in a template content. In nl:Sjabloon:FamilyInfobox, the original template has something like this at the end of the line:
|}
</div>
|}
</div>
<noinclude>{{Documentatie}}</noinclude>
and I changed it into this:
|}
</div>
|}
</div><noinclude>{{Documentatie}}</noinclude>
See the difference? Also in nl:Sjabloon:Familybio3, I changed
|buurt         = {{{neighbor<includeonly>|</includeonly>}}}
}}
<noinclude>{{Metabox
|type     = notice
into
|buurt         = {{{neighbor<includeonly>|</includeonly>}}}
}}<noinclude>{{Metabox
|type     = notice
If the noinclude tag has an extra spacing inbetween, the extra spacing will be transcluded as well. Additionally in Kamel family, I removed an extra spacing between the Familybio-start and Familybio3 templates, which contributes to additional spacing. Nikel Talk Vote! 07:18, April 29, 2014 (UTC)