User:Piripuwa/Sandbox/Template:Trinket basic paragraph (20100922)
From YPPedia
< User:Piripuwa | Sandbox
Insert new parameter ("plural") into Template:Trinket basic paragraph.
<includeonly>{{#if:{{{trinket|{{{1|{{PAGENAME}}}}}}}}| {{#if:{{{ad-text|{{{20|}}}}}}| {{{!}} border=1 width=170 cellpadding=2 cellspacing=0 style="float:right; border-collapse:collapse; margin:0em 0em 1em 1em; text-align:center" {{!}}- ! colspan=4 style="background:#eeeeee" {{!}} {{{trinket|{{{1|{{PAGENAME}}}}}}}} {{!}}- {{!}} colspan=4 {{!}}[[Image:Trinket-{{{trinket|{{{1|{{PAGENAME}}}}}}}}.png]]<br><small>{{{ad-text|{{{20|}}}}}}</small> {{#if:{{lc:{{{PoE|{{{14|}}}}}}}}| {{!}}- {{!}}PoE {{!}}{{!}} {{{PoE|{{{14}}}}}} {{!}}Doubloons {{!}}{{!}} {{{doubloons|{{{15|N/A}}}}}}}} {{#ifeq:{{lc:{{{player-designed|{{{2|no}}}}}}}}|yes| {{!}}- {{!}} colspan="2" {{!}} Designer {{!}} colspan="2" {{!}} [[{{{designer|{{{3|unknown}}}}}}]]}} {{!}}}|{{#ifeq:no|{{lc:{{{multi-colors|{{{16|no}}}}}}}}|[[Image:Trinket-{{{trinket|{{{1|{{PAGENAME}}}}}}}}.png|frame]]}}}} The '''{{lc:{{{trinket|{{{1|{{PAGENAME}}}}}}}}}}''' {{#ifeq:yes | {{lc:{{{plural |{{{24 | no }}}}}}}} | are | is }} a {{#ifeq:yes|{{{IO|{{{8|no}}}}}}|type of}}{{#ifeq:{{lc:{{{player-designed|{{{2|no}}}}}}}}|yes|player-designed }}{{#if:{{{season|{{{4|}}}}}}| {{lc:{{{season|{{{4|}}}}}}}}}} [[trinket]]{{#if:{{{PoE|{{{14|}}}}}}|, which first appeared for sale in the [[Palace Shoppe]] |{{#switch:yes | {{{Atlantis|{{{5|no}}}}}} | {{{CI|{{{6|no}}}}}} | {{{HS|{{{7|no}}}}}} | {{{IO|{{{8|no}}}}}} = obtained in booty divisions from the {{#switch:yes|{{{Atlantis|{{{5|no}}}}}}=[[Atlantis]]|{{{CI|{{{6|no}}}}}}=[[Cursed Isles]]|{{{HS|{{{7|no}}}}}}=[[Haunted Seas]]|{{{IO|{{{8|no}}}}}}=[[imperial outpost]]s}}|{{#ifeq:yes | {{{BM|{{{9|no}}}}}} | that can be obtained by opening a black box purchased from a [[black market]]}}}}}}{{#if:{{{release|{{{10|}}}}}}|. {{#ifeq:yes | {{lc:{{{plural |{{{24 | no }}}}}}}} | They were | It was }} first seen in {{Release|{{{release}}}}}|{{#if:{{{year|{{{12|}}}}}}| in {{#if:{{lc:{{{month|{{{11|}}}}}}}}|{{{month|{{{11|}}}}}}}} {{{year|{{{12|}}}}}}}}}}. {{#ifeq:{{lc:{{{player-designed|{{{2|no}}}}}}}}|yes|{{#if:{{lc:{{{designer|{{{3|}}}}}}}}|This trinket was designed by [[{{{designer|{{{3|}}}}}}]]. }}}}{{#if:{{lc:{{{PoE|{{{14|}}}}}}}}|The {{lc:{{{trinket|{{{1|{{PAGENAME}}}}}}}}}} can be purchased for {{{PoE|{{{14|}}}}}} [[pieces of eight|PoE]]{{#if:{{lc:{{{doubloons|{{{15|}}}}}}}}| (and {{{doubloons|{{{15|}}}}}} {{#ifeq:{{lc:{{{doubloons|{{{15|}}}}}}}}|1|[[doubloon]]|[[doubloon]]s}}, on doubloon [[ocean]]s)}}.}}{{#switch:yes|{{lc:{{{player-designed|{{{2|no}}}}}}}}|{{lc:{{{inscribed|{{{19|no}}}}}}}}= ''' {{#ifeq:yes | {{lc:{{{plural |{{{24 | no }}}}}}}} | They | It }} may be inscribed with a message after purchase. }}{{#ifeq:yes|{{{prize-only|{{{13|no}}}}}}|''' {{#ifeq:yes | {{lc:{{{plural |{{{24 | no }}}}}}}} | They are | It is }} only awarded by [[Ocean Masters]], or as a prize in official [[tournament]]s. }}{{{custom|{{{21|}}}}}} {{#switch:yes|{{{Atlantis|{{{5|no}}}}}} | {{{CI|{{{6|no}}}}}} | {{{HS|{{{7|no}}}}}} | {{{IO|{{{8|no}}}}}}={{clear}}|{{#ifeq:yes|{{lc:{{{multi-colors|{{{16|no}}}}}}}}| == Colors == {{#if:{{{image|{{{18|}}}}}}|{{#ifeq:yes|{{lc:{{{use-compact-display|{{{19|no}}}}}}}}|{{#if:{{{color-text|{{{23|}}}}}}|{{{color-text|{{{23}}}}}}|Each {{lc:{{{trinket|{{{1|{{PAGENAME}}}}}}}}}} comes in {{{color-range|{{{22|a range of}}}}}} colors.}}{{clear}}{{Compact trinket display|{{{image|{{{18|}}}}}}}}|{{#if:{{{color-text|{{{23|}}}}}}|{{{color-text|{{{23}}}}}}|They are permitted to have two different colors per trinket.}}{{clear}}[[Image:{{{image|{{{18|}}}}}}|755px]]}}}} {{clear}}}}}}
|
Test of sentences
When set "yes" to the new parameter ("plural")...
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | trinket=Daisies | navigation=no | plural = yes }} |
The Daisies are a trinket. |
When set "no" to the new parameter ("plural")...
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | navigation=no | trinket=Conch shell | plural = no }} |
The Conch shell is a trinket. |
When set empty to the new parameter ("plural")...
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | navigation=no | trinket=Conch shell | plural = }} |
The Conch shell is a trinket. |
When don't set the new parameter ("plural")...
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | navigation=no | trinket=Conch shell }} |
The Conch shell is a trinket. |
Additional test #1
Just a test...
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | trinket = Daisies | inscribed = yes | prize-only = yes | navigation = no | plural = yes }} |
The Daisies are a trinket. They may be inscribed with a message after purchase. They are only awarded by Ocean Masters, or as a prize in official tournaments. |
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | trinket = Daisy | inscribed = yes | prize-only = yes | navigation = no }} |
The Daisy is a trinket. It may be inscribed with a message after purchase. It is only awarded by Ocean Masters, or as a prize in official tournaments. |
Additional test #2
{{:User:Piripuwa/Sandbox/Template:Trinket basic paragraph | HS = yes | categorize = no | navigation = no | trinket = Black lilies | plural =yes | release = 2010-08-24 }} |
The Black lilies are a trinket obtained in booty divisions from the Haunted Seas. They were first seen in release 2010-08-24. |