Template:Body location: Difference between revisions

From PZwiki
(Suggest splitting to body part template)
m (wording)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Split|Template:Body part|reason=It was [https://discord.com/channels/136501320340209664/473467044050894858/1213642349440274462 suggested] on [https://discord.gg/theindiestone Discord] briefly; locations are different from body parts and don't match often}}
{{Split|Template:Body part|reason=It was [https://discord.com/channels/136501320340209664/473467044050894858/1213642349440274462 suggested] on [https://discord.gg/theindiestone Discord] briefly; locations are different from body parts and often don't match}}
{{Documentation/sandbox|doc=
{{Documentation/sandbox|doc=
This template is used to display an item of clothing's location on the body.  
This template is used to display an item of clothing's location on the body.  
Line 16: Line 16:
==Variables==
==Variables==
The following values are accepted.  
The following values are accepted.  
* <code>FullBody</code>
*<code>FullBody</code>
*<code>BodyCostume</code>
*<code>BodyCostume</code>
*<code>FullHat</code>, <code>Hat</code>, <code>MakeUp</code>, <code>Mask</code>
*<code>FullHat</code>, <code>Hat</code>, <code>MakeUp</code>, <code>Mask</code>

Revision as of 08:52, 13 April 2024

Scissors.png
It has been suggested that this template should be split into Template:Body part.
Reason: It was suggested on Discord briefly; locations are different from body parts and often don't match
Notebook.pngTemplate Documentation

This template is used to display an item of clothing's location on the body.

Usage

The input should be the BodyLocation attribute from the item's script file. Use {{Body location|BodyLocation}} and replace BodyLocation with the attribute's value.

{{Body location|FullBody}}
Produces:
Protection FullBody.png
  • Head
  • Neck
  • Upper Torso
  • Lower Torso
  • Upper Arms
  • Forearms
  • Hands
  • Groin
  • Thighs
  • Shins
  • Feet

Variables

The following values are accepted.

  • FullBody
  • BodyCostume
  • FullHat, Hat, MakeUp, Mask
  • JacketHat, SweaterHat
  • Jacket
  • Shirt, Sweater
  • TankTop, TorsoExtra
  • Hands
  • Neck, Scarf
  • Dungarees
  • Pants
  • Shorts
  • Underwear
  • Shoes
  • None

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| head = Head
| neck = Neck
| upper_torso = Upper Torso
| lower_torso = Lower Torso
| upper_arms = Upper Arms
| forearms = Forearms
| hands = Hands
| groin = Groin
| thighs = Thighs
| shins = Shins
| feet = Feet
| #default = [[Category:Incorrect template usage]]
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.