Template talk:Infobox pirate/extended usage

From YPPedia

This template is designed as a simple "catch all" template for placing infoboxes in pirate articles. It makes heavy use of default template values, and as such will only be useful upon installation of MediaWiki version 1.6.5 or higher. Any sections not explicitly defined will not be displayed in the final infobox.

Usage:

To start, begin with the standard template call, filling in the name of the appropriate pirate for Piratename:

{{Infobox pirate

|piratename= Piratename


Portrait:

To add a portrait to the infobox, just type:

|portrait= yes

The portrait can be any of the single-pirate portraits in the pirate's portrait gallery, and not just the one displayed on the pirate's info page.


Familiars:

To display any familiars that the pirate has won, first type:

|familiars= #

where # is the numer of familiars that the pirate has won.

Then, for each familiar, copy the following line into the template, replacing x with the number of that familiar, y with the type, z with the ocean it was won on, and n with the name of the familiar:

|fam-type-x= y|fam-ocean-x= z|fam-name-x= n

Island Designer:

If this pirate is an island designer, copy the following line into the template:

|designer= yes

Portrait galleries:

If the pirate has portrait galleries, copy the following line into the template, replacing # with the number of oceans that the pirate has galleries on:

|galleries= #

Then, for each ocean with a gallery for that pirate, copy the follwing line, replacing x with the number of that ocean and ocean with that ocean name:

|oceanx= ocean

Then, for each ocean with a gallery for that pirate, copy the following line, replacing x with the number of that ocean and rank with the pirate's crew rank for that ocean:

|rankx= rank

Finally, close out the template with the closing brackets:

}}

Multiple galleries under different pirate names

If the pirate has portrait galleries under several names (i.e. a known alt or a different name on oceans other than the main) copy the following line into the template, replacing x with the name of the second pirate and # with the number of oceans that the pirate has galleries on:

|pirate2=x|pirate2-gallery= #

Then, for each ocean with a gallery for that pirate, copy the following line, replacing x with the number of that ocean and ocean with that ocean name:

|pirate2-oceanx= ocean

Then, for each ocean with a gallery for that pirate, copy the following line, replacing x with the number of that ocean and rank with the pirate's crew rank for that ocean:

|pirate2-rankx= rank

Finally, close out the template with the closing brackets:

}}

For a third pirate name, use the template code directly above, replacing ever instance of the number 2 with 3 and filling in the apropriate details.


Examples

{{Infobox pirate
|piratename= Examplebeard
|portrait= yes
|designer= yes
|galleries= 2
|ocean1= Sage
|ocean2= Ice
}}

Will create an infobox with a portrait, an island designer notice, and links to the pirate's galleries on Sage and Ice.

{{Infobox pirate
|piratename= Examplebeard
|familiars= 1
|fam-type-1= monkey-brown|fam-ocean-1= Midnight|fam-name-1= Greasemonkey
|galleries= 1
|ocean1= Midnight
|rank1=captain
}}

Will create an infobox with no portrait, a "Familiars Won" box with the one monkey in it, and a link to the pirate's single gallery on Midnight which has a rank of captain.

{{infobox pirate|
|piratename= Examplebeard
|portrait= yes
|galleries= 1
|ocean1= Midnight
|rank1= officer

|pirate2= Examplegoatee
|pirate2-gallery= 1
|pirate2-ocean1= Cobalt
|pirate2-rank1= fleet officer }}

Will create an infobox with a portrait and a link to the pirate's gallery on Midnight under the name "Examplebeard" who is ranked officer and a link to the pirate's gallery on Cobalt under the name "Examplegoatee" who is ranked fleet officer.

The important thing to remember is that if a section of the infobox (portrait, familiars, island designer, or galleries) is not specifically designated in the template, it will not appear in the infobox.