Template:Letter: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(3 intermediate revisions by one other user not shown)
Line 10: Line 10:
       Opening
       Opening
       --><div class="ci-letter-opening"><!--
       --><div class="ci-letter-opening"><!--
         -->{{{opening|''Player'',}}} John Doe<!--
         -->{{#replace:{{{opening|''Player'',}}}|''Player''|{{Color|player|''Player''}}}}<!--
       --></div><!--
       --></div><!--
   --></div><!--
   --></div><!--
Line 29: Line 29:
       Attachment
       Attachment
       -->{{#if:{{{attachment|}}}|<div class="ci-letter-attachment"><!--
       -->{{#if:{{{attachment|}}}|<div class="ci-letter-attachment"><!--
         -->{{Card list|{{{attachment|}}}|show_caption=0|x=1}}<!--
         -->{{Card list|{{{attachment|}}}|show_caption=1|x=1}}<!--
       --></div>}}<!--
       --></div>}}<!--
   --></div><!--
   --></div><!--

Latest revision as of 07:45, 11 January 2024

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

This template is used to display letters received by the player in the standard format.

Syntax

{{Letter
|sender     =
|content    =
|opening    =
|closing    =
|attachment =
}}

  • attachment — semicolon list of item attached, following format of {{Card list}} with default item amount of defaults to 1

Examples

{{Letter
|sender  = Sunny
|content = You passed out last night lying face down. Thought it was a dead body. Scared the heck out of me!<br /><br />I found you pretty late, hope you weren’t staying up past midnight. Not good for ya. I had Yuri carry you home and make sure you’re okay. Your medical bill should be attached.
|opening = ''Player'',
|closing = Be well kiddo!
|title   = Sleep next time
}}

yields:

Sleep next time

Player,
You passed out last night lying face down. Thought it was a dead body. Scared the heck out of me!

I found you pretty late, hope you weren’t staying up past midnight. Not good for ya. I had Yuri carry you home and make sure you’re okay. Your medical bill should be attached.

{{Letter
|sender     = Grandma
|content    = Your parents sent us an article about you making a quarter of a million coins! We’re so happy you’ve found your community and thriving on Coral Island. We sent some extra money to add to the pile! The kittens are taking over our bedroom. We will let them sleep there with us. There is no winning with those cuties.<br /><br />We’re beyond proud of you, ''Player''.
|opening    = To our ''Player'',
|closing    = Love,
|attachment = Coin*1000
}}

yields:

To our Player,
Your parents sent us an article about you making a quarter of a million coins! We’re so happy you’ve found your community and thriving on Coral Island. We sent some extra money to add to the pile! The kittens are taking over our bedroom. We will let them sleep there with us. There is no winning with those cuties.

We’re beyond proud of you, Player.