Howto:Use the My trinkets template
YPPedia has a set of templates called My trinkets that may be used to show-off your trinket collection.
The list of all the trinkets we currently have templates for can be found at Category:My_trinket_templates. Click on the links to view the available colors and accompanying usage notes. When using the templates, capitalization matters, so you will need to exactly match the capitalization of the template name & colors as listed in the My trinket templates category. Except for the initial "text=", the text field may use whatever capitalization you like.
The sections below detail how to use the My trinkets templates in various ways.
Contents
Simple trinket lists
Make a trinket section to the article of your page and follow this example to add the trinket coding to the article:
Code | ||||||||
---|---|---|---|---|---|---|---|---|
{{My trinkets/start}} {{My trinkets |trinket=Fruitcake |primary= |secondary= |text=May the holidays bring Wikilove extra cheer. }} {{My trinkets |trinket=Fight Club 2006 |primary=3 |text= Team River Island Ransom, Third Place, Fight Club 2006 }} {{My trinkets |trinket=Heart bauble |primary=blue |secondary=white |text=Lucky Dip, December 2005 }} {{my trinkets| |trinket= OM doll |primary= Eurydice |text= For Wikilove--Thank you so much for your hard work on YPPedia! Cheers, Eurydice }} {{My trinkets/end}} | ||||||||
Result | ||||||||
|
Two-column trinket listings
When there are a number of trinkets, it can be more visually appealing to show them in a two-column format.
Code | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{| |- valign=top | width=50% | {{My trinkets/start}} {{My trinkets |trinket=Fruitcake |primary= |secondary= |text=May the holidays bring Wikilove extra cheer. }} {{My trinkets |trinket=Fight Club 2006 |primary=3 |text= Team River Island Ransom, Third Place, Fight Club 2006 }} {{My trinkets/end}} | width=50% | {{My trinkets/start}} {{My trinkets |trinket=Heart bauble |primary=blue |secondary=white |text=Lucky Dip, December 2005 }} {{my trinkets| |trinket= OM doll |primary= Eurydice |text= For Wikilove--Thank you so much for your hard work on YPPedia! Cheers, Eurydice }} {{My trinkets/end}} |} | ||||||||||||||||||||||||
Result | ||||||||||||||||||||||||
Just divide your trinket coding into two and insert in the appropriate column instead of the trinkets in the example above. To learn more about the coding for the tables including how to add a third column, you can take a peek at our help page on tables. Show/hide trinket listingsWhen a list of trinkets is particularly long, it may be useful to place the list on a subpage and use a show/hide template such as is seen at Vova. If you would like to have that kind of a show/hide box with your trinkets, just edit your pirate page to add a section like this:
Of course, you should replace Yourpiratename with the name of the article. This should give you a red link for a Yourpiratename/Trinkets page. Click on it to get to the edit screen. Or you can go to http://yppedia.puzzlepirates.com/index.php?title=Yourpiratename/Trinkets&action=edit On Yourpiratename/Trinket, just edit in coding for your trinkets as explained in the sections above. Abbreviating the trinket codingThere is also an option to abbreviate, in a way, the trinket coding by keeping your variables in a certain order without naming them. In the example below, note how "ignored" is used if any of the variables such as primary or secondary are blank:
|