Template:Useitem: Difference between revisions

From A KoL Wiki
imported>Quietust
m missed a spot...
imported>Quietust
whoops... somehow duplicated the page within itself
Line 6: Line 6:
|-
|-
{{#if:{{{text|}}}|
{{#if:{{{text|}}}|
{{!}}{{{text|}}}}}
|-
{{#if:{{{effect|}}}|{{!}}align="center"{{!}}{{{effect}}}}}
|-
{{#if:{{{adv|}}}|{{!}}align="center"{{!}}{{adv|amount={{{adv}}}}}}}
|-
{{#if:{{{advmin|}}}|{{!}}align="center"{{!}}{{adv|min={{{advmin}}}|max={{{advmax}}}}}}}
|-
{{#if:{{{advloss|}}}|{{!}}align="center"{{!}}{{adv|type=lose|amount={{{advloss}}}}}}}
|-
{{#ifexpr:{{#if:{{{mus|}}}|1|0}}+{{#if:{{{mys|}}}|1|0}}+{{#if:{{{mox|}}}|1|0}}>0|
{{!}}{{stat|mus={{{mus|}}}|mys={{{mys|}}}|mox={{{mox|}}}}}}}
|-
{{#if:{{{posteffect|}}}|{{!}}align="center"{{!}}{{{posteffect}}}}}
|-
{{#if:{{{limiter|}}}|{{!}}align="center"{{!}}{{#switch:{{{type}}}|
food=(You gain {{{limiter}}} [[Fullness]].)|
booze=You gain {{{limiter}}} [[Drunkenness]].|
spleen=(You gain {{{limiter}}} [[Spleen]].)}}}}
|-
{{#ifeq:{{{type}}}|familiar|
{{!}}align="center" {{!}} {{click|image={{Data|{{{becomes}}}|image|nopic2.gif}}|link={{{becomes}}}}}
{{!}}-
{{!}}You decide to name {{#switch:{{Data|{{{becomes}}}|gender|m}}|f=her|m=him|n=it|#default=him}} '''{{#switch:{{{becomes}}}|Clockwork Grapefruit=6655321|Squamous Gibberer=[[Familiar Names|Cth{{familiar name|cap=n}}]]|BRICKO chick=[[Familiar Names|{{BRICKOnum}}]]|Baby Bugged Bugbear=snɔɐʇɹɐdS|Mini-Hipster=[[Hobo Names#First Names|{{HoboFirstName}}]]|#default=[[Familiar Names|{{familiar name}}]]}}'''.|}}
|}</includeonly><noinclude>
{{prot_high-use}}
{{Code2}}
==Usage==
&#123;{useitem|
  ''<span style="font-family: sans-serif">parameter</span>''=''<span style="font-family: sans-serif">value</span>''|
  ''<span style="font-family: sans-serif">etc.</span>''}}
All parameters are optional. Valid paramters include:
*<code>item=</code>''item page name'' (only specify when using this template outside of the item's page, i.e. special combat item messages for tower monsters)
*<code>text=</code>''consumption message''
*<code>adv=</code>''number of adventures gained''
*<code>advloss=</code>''number of adventures lost''
*<code>effect=</code>''any special effect granted instead of adventures'' (PvP fights, Oyster Egg effects, HP/MP gains or meat/item drops from general non-spleen usable items)
*<code>mus=</code>''gain/lose N'' Muscle substat points
*<code>mys=</code>''gain/lose N'' Mysticality substat points
*<code>mox=</code>''gain/lose N'' Moxie substat points
*<code>posteffect=</code>''any special effect granted after substat bonuses'' (hi mein/wad/gloomy wine effects, MP gains from booze, meat/item drops from food/booze)
*<code>type=</code>''food, booze, or spleen''
**<code>|limiter=</code>''N'' to indicate fullness/drunkenness/spleen damage
*or <code>type=</code>''combat'' or ''familiar''
For <code>type=familiar</code>, the following parameter is also needed:
*<code>becomes=</code> Page name for the familiar that the associated hatchling becomes.  The template will pull off the familiar name and gender for use in formatting the template's output.
==Examples==
{{useitem|
item=Knoll mushroom|
text=You eat the Knoll mushroom. It tastes bad, but it's nutritious.|
adv=1-3|
type=food|
limiter=2}}
----
{{useitem|
item=spooky hi mein|
text=You eat the spooky hi mein, jumping at every noise, including the noise of your chopsticks on the bowl.|
adv=21-29|
mus=gain 15-20|
mys=gain 70-75|
mox=gain 30-35|
posteffect={{AcquireEffect|effect=Spooky Breath (effect)|duration=5}}|
type=food|
limiter=5}}
----
{{useitem|
item=sangria del diablo|
text=You drink the sangria del diablo. Transubstantastic!|
adv=22-26|
mys=gain 16-20|
posteffect={{acquire|item=tiny plastic sword}}|
type=booze|
limiter=6}}
----
{{useitem|
item=gloomy mushroom wine|
text=You drink the gloomy mushroom wine. Now the torment within your soul is matched by the torment within your stomach.|
adv=13-17|
mus=gain 12-15|
mys=gain 13-15|
mox=gain 12-15|
posteffect={{AcquireEffect|effect=Gothy|duration=20}}|
type=booze|
limiter=3}}
----
{{useitem|
item=hot wad|
text=You chew the wad until the flavor runs out.|
adv=1|
mus=gain 24-30|
mys=gain 5-10|
mox=gain 16-20|
posteffect={{AcquireEffect|effect=Hot Blooded|duration=10}}|
type=spleen|
limiter=1}}
----
{{useitem|
item=Hell ramen|
text=Man oh man, that's some tasty ramen. And cheap!|
adv=22-29|
mus=gain 23-28|
mys=gain 23-28|
mox=gain 23-28|
posteffect={{meat|amount=20-25}}|
type=food|
limiter=6}}
----
{{useitem|
item=lavender striped oyster egg|
text=You eat the lavender striped oyster egg.|
mus=gain 11-15|
mox=gain 11-15|
type=spleen|
limiter=1}}
----
{{useitem|
item=yellow paisley oyster egg|
text=You eat the yellow paisley oyster egg.|
effect={{AcquireEffect|effect=Egg-headedness|duration=20}}|
mys=gain 11-15|
type=spleen|
limiter=1}}
----
{{useitem|
item=Chest of the Bonerdagon|
text=You pry open the Ribs of the Bonerdagon, and thus open the Chest of the Bonerdagon. A strange mist pours forth from within it, and goes into your nostrils. It smells bad, but it makes you feel pretty good.|
mus=gain 150|
mys=gain 150|
mox=gain 150|
posteffect=You're also able to scrape quite a bit of meat off of the inside of the Ribs.
{{meat|amount=3000}}}}
----
{{useitem|
item=soda water|
text=You drink the soda water. With no regard for propriety or personal space, the bubbles tickle your nose.|
effect={{MP|amount=3-5}}}}
----
{{useitem|
item=Yeti Protest Sign|
text=You carry your sign around the base of Mt. McLargeHuge for a few hours, chanting catchy anti-Yeti-hunting slogans.|
advloss=1}}
----
{{useitem|
item=sabre-toothed lime cub|
text=It begins to pace back and forth menacingly.|
type=familiar|
becomes=Sabre-Toothed Lime}}
----
{{useitem|
item=photoprotoneutron torpedo|
text=You activate the photoprotoneutron torpedo, and it emits a series of beeps. It then rockets toward your opponent, exploding on impact for 39 damage.|
type=combat}}
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>
{{!}}{{{text|}}}}}
{{!}}{{{text|}}}}}
|-
|-

Revision as of 19:35, 28 October 2010

This high-use template has been protected from editing to prevent inaccurate edits and/or vandalism. Please use the talk page to discuss changes, and/or to ask an administrator to make an edit for you.
{| style="margin-left: auto; margin-right: auto; line-height: 150%; padding-right: 5%; padding-left: 5%;"

|- |align="center" {{#ifeq:{{{type}}}|combat|rowspan="3"}}|{{click|image={{Data|{{{item|{{PAGENAME}}}}}|image|nopic2.gif}}|link={{{item|{{PAGENAME}}}}}}} |- {{#ifeq:{{{type}}}|familiar|{{!}}You put the {{Data|{{{item|{{PAGENAME}}}}}|name|{{{item|{{PAGENAME}}}}}(?)}} in your [[Familiar-Gro™ Terrarium (Campground)|Familiar-Gro™ Terrarium]].<br /><br />}} |- {{#if:{{{text|}}}| {{!}}{{{text|}}}}} |- {{#if:{{{effect|}}}|{{!}}align="center"{{!}}{{{effect}}}}} |- {{#if:{{{adv|}}}|{{!}}align="center"{{!}}{{adv|amount={{{adv}}}}}}} |- {{#if:{{{advmin|}}}|{{!}}align="center"{{!}}{{adv|min={{{advmin}}}|max={{{advmax}}}}}}} |- {{#if:{{{advloss|}}}|{{!}}align="center"{{!}}{{adv|type=lose|amount={{{advloss}}}}}}} |- {{#ifexpr:{{#if:{{{mus|}}}|1|0}}+{{#if:{{{mys|}}}|1|0}}+{{#if:{{{mox|}}}|1|0}}>0| {{!}}{{stat|mus={{{mus|}}}|mys={{{mys|}}}|mox={{{mox|}}}}}}} |- {{#if:{{{posteffect|}}}|{{!}}align="center"{{!}}{{{posteffect}}}}} |- {{#if:{{{limiter|}}}|{{!}}align="center"{{!}}{{#switch:{{{type}}}| food=(You gain {{{limiter}}} [[Fullness]].)| booze=You gain {{{limiter}}} [[Drunkenness]].| spleen=(You gain {{{limiter}}} [[Spleen]].)}}}} |- {{#ifeq:{{{type}}}|familiar| {{!}}align="center" {{!}} {{click|image={{Data|{{{becomes}}}|image|nopic2.gif}}|link={{{becomes}}}}} {{!}}- {{!}}You decide to name {{#switch:{{Data|{{{becomes}}}|gender|m}}|f=her|m=him|n=it|#default=him}} '''{{#switch:{{{becomes}}}|Clockwork Grapefruit=6655321|Squamous Gibberer=[[Familiar Names|Cth{{familiar name|cap=n}}]]|BRICKO chick=[[Familiar Names|{{BRICKOnum}}]]|Baby Bugged Bugbear=snɔɐʇɹɐdS|Mini-Hipster=[[Hobo Names#First Names|{{HoboFirstName}}]]|#default=[[Familiar Names|{{familiar name}}]]}}'''.|}}

|}

Usage

{{useitem|
  parameter=value|
  etc.}}

All parameters are optional. Valid paramters include:

  • item=item page name (only specify when using this template outside of the item's page, i.e. special combat item messages for tower monsters)
  • text=consumption message
  • adv=number of adventures gained
  • advloss=number of adventures lost
  • effect=any special effect granted instead of adventures (PvP fights, Oyster Egg effects, HP/MP gains or meat/item drops from general non-spleen usable items)
  • mus=gain/lose N Muscle substat points
  • mys=gain/lose N Mysticality substat points
  • mox=gain/lose N Moxie substat points
  • posteffect=any special effect granted after substat bonuses (hi mein/wad/gloomy wine effects, MP gains from booze, meat/item drops from food/booze)
  • type=food, booze, or spleen
    • |limiter=N to indicate fullness/drunkenness/spleen damage
  • or type=combat or familiar

For type=familiar, the following parameter is also needed:

  • becomes= Page name for the familiar that the associated hatchling becomes. The template will pull off the familiar name and gender for use in formatting the template's output.

Examples

Template:Click
You eat the Knoll mushroom. It tastes bad, but it's nutritious.
AdventuresYou gain 1-3 Adventures.
(You gain 2 Fullness.)

Template:Click
You eat the spooky hi mein, jumping at every noise, including the noise of your chopsticks on the bowl.
AdventuresYou gain 21-29 Adventures.
You gain 15-20 Muscleboundness.
You gain 70-75 Mysteriousness.
You gain 30-35 Sarcasm.
You acquire an effect: Spooky Breath
(duration: 5 Adventures)
(You gain 5 Fullness.)

Template:Click
You drink the sangria del diablo. Transubstantastic!
AdventuresYou gain 22-26 Adventures.
You gain 16-20 Mysteriousness.
You acquire an item: tiny plastic sword
You gain 6 Drunkenness.

Template:Click
You drink the gloomy mushroom wine. Now the torment within your soul is matched by the torment within your stomach.
AdventuresYou gain 13-17 Adventures.
You gain 12-15 Muscleboundness.
You gain 13-15 Magicalness.
You gain 12-15 Smarm.
You acquire an effect: Gothy
(duration: 20 Adventures)
You gain 3 Drunkenness.

Template:Click
You chew the wad until the flavor runs out.
AdventuresYou gain 1 Adventure.
You gain 24-30 Muscleboundness.
You gain 5-10 Mysteriousness.
You gain 16-20 Sarcasm.
You acquire an effect: Hot Blooded
(duration: 10 Adventures)
(You gain 1 Spleen.)

Template:Click
Man oh man, that's some tasty ramen. And cheap!
AdventuresYou gain 22-29 Adventures.
You gain 23-28 Muscleboundness.
You gain 23-28 Magicalness.
You gain 23-28 Smarm.
You gain 20−25 Meat.
(You gain 6 Fullness.)

Template:Click
You eat the lavender striped oyster egg.
You gain 11-15 Strongness.
You gain 11-15 Smarm.
(You gain 1 Spleen.)

Template:Click
You eat the yellow paisley oyster egg.
You acquire an effect: Egg-headedness
(duration: 20 Adventures)
You gain 11-15 Enchantedness.
(You gain 1 Spleen.)

Template:Click
You pry open the Ribs of the Bonerdagon, and thus open the Chest of the Bonerdagon. A strange mist pours forth from within it, and goes into your nostrils. It smells bad, but it makes you feel pretty good.
You gain 150 Strengthliness.
You gain 150 Mysteriousness.
You gain 150 Cheek.
You're also able to scrape quite a bit of meat off of the inside of the Ribs.
You gain 3,000 Meat.

Template:Click
You drink the soda water. With no regard for propriety or personal space, the bubbles tickle your nose.
MPYou gain 3−5 Mana Points.

Template:Click
You carry your sign around the base of Mt. McLargeHuge for a few hours, chanting catchy anti-Yeti-hunting slogans.
AdventuresYou lose 1 Adventure.

Template:Click
You put the sabre-toothed lime cub in your Familiar-Gro™ Terrarium.

It begins to pace back and forth menacingly.
Template:Click
You decide to name him Watchell.

Template:Click
You activate the photoprotoneutron torpedo, and it emits a series of beeps. It then rockets toward your opponent, exploding on impact for 39 damage.