Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
#ifeq:{{{itype}}} | item | {{
#ifeq:{{{itype}}} | item | {{
IfMatch| atmo | {{{special}}} | true=*This is an [[Atmospheric item|atmo item]] that will periodically emit messaging to the entire room.[[has item property::atmo| ]]}}{{
IfMatch| atmo | {{{special}}} | true=*This is an [[Atmospheric item|atmo item]] that will periodically emit messaging to the entire room.[[has item property::atmo| ]]}}{{
IfMatch| clothing | {{{special}}} | true=[[has item property::clothing| ]]}}{{
IfMatch| clothing | {{{special}}} | true=[[item category is::clothing| ]]}}{{
IfMatch| jewelry | {{{special}}} | true=[[has item property::jewelry| ]]}} }}{{
IfMatch| jewelry | {{{special}}} | true=[[item category is::jewelry| ]]}} }}{{
IfMatch| container | {{{special}}} | true=*This {{{itype}}} is a [[has item property::container]] or has pockets.{{#if:{{{ilsize|}}}||[[missing::Infobox entry on internal size| ]]}} }}{{
IfMatch| container | {{{special}}} | true=*This {{{itype}}} is a [[has item property::container]] or has pockets.{{#if:{{{ilsize|}}}||[[missing::Infobox entry on internal size| ]]}} }}{{
IfMatch| autolooter | {{{special}}} | true=*This {{{itype}}} is an [[has item property::autolooter| ]] [[Autoloot command|autoloot container]] that can hold up to {{#if:{{{imax|}}}|[[item capacity is::{{{imax}}}]]|''?''[[missing::Infobox entry on item capacity max| ]]}} items.}}{{
IfMatch| autolooter | {{{special}}} | true=*This {{{itype}}} is an [[has item property::autolooter| ]] [[Autoloot command|autoloot container]] that can hold up to {{#if:{{{imax|}}}|[[item capacity is::{{{imax}}}]]|''?''[[missing::Infobox entry on item capacity max| ]]}} items.}}{{
Line 55: Line 55:
IfMatch| string instrument | {{{special}}} }}{{
IfMatch| string instrument | {{{special}}} }}{{
IfMatch| percussion instrument | {{{special}}} }}|
IfMatch| percussion instrument | {{{special}}} }}|
*This is a musical [[has item property::instrument]] (or a tool to play, repair, or clean one).}}{{
*This is a musical [[item category is::instrument]] (or a tool to play, repair, or clean one).}}{{
IfMatch| gives light | {{{special}}} | true=*This item is a [[has item property::gives light| ]][[light source]] or is used to start fires.}}{{
IfMatch| gives light | {{{special}}} | true=*This item is a [[has item property::gives light| ]][[light source]] or is used to start fires.}}{{
IfMatch| smoking | {{{special}}} | true=*This is a [[has item property::smoking]] instrument or type of tobacco.}}{{
IfMatch| smoking | {{{special}}} | true=*This is a [[has item property::smoking]] instrument or type of tobacco.}}{{
IfMatch| housing | {{{special}}} | true=*This item is designed to be used in or on [[Homes|player houses]].[[has item property::housing| ]]}}{{
IfMatch| housing | {{{special}}} | true=*This item is designed to be used in or on [[Homes|player houses]].[[item category is::housing| ]]}}{{
IfMatch| hood | {{{special}}} | true=*This item can hide the wearer's features or worn items.[[has item property::hood| ]]}}{{#If:{{IfMatch | hiding | {{{special}}}}}{{{hidetype|}}}|{{Cat|Item hiders}}[[has item property::hiding| ]]{{#if:{{{hidetype|}}}|{{#switch:{{lc:{{{hidetype}}}}} | n | -= | *This item hides {{#arraymap:{{{hidetype}}}|,|@@@@|[[hides item type::@@@@]]| and }}.}} | *This item hides [[missing::Infobox entry on items hidden|''unknown'']] objects and/or features.}}}}{{
IfMatch| hood | {{{special}}} | true=*This item can hide the wearer's features or worn items.[[has item property::hood| ]]}}{{#If:{{IfMatch | hiding | {{{special}}}}}{{{hidetype|}}}|{{Cat|Item hiders}}[[has item property::hiding| ]]{{#if:{{{hidetype|}}}|{{#switch:{{lc:{{{hidetype}}}}} | n | -= | *This item hides {{#arraymap:{{{hidetype}}}|,|@@@@|[[hides item type::@@@@]]| and }}.}} | *This item hides [[missing::Infobox entry on items hidden|''unknown'']] objects and/or features.}}}}{{
IfMatch| writing | {{{special}}} | true=*This item can be written on or with.[[has item property::writing| ]]}}{{
IfMatch| writing | {{{special}}} | true=*This item can be written on or with.[[has item property::writing| ]]}}{{

Revision as of 21:12, 12 December 2021

Essential Template
  • This template is so essential that it has been protected to prevent tampering.
  • If you have suggestions to extend its function or have observed bugs, please post to the discussion page.

This template is a display and categorization plug-in for other templates, including Template:Item, Template:Shield,Template:Armor, and Template:Weapon.

This is because several of the basic ones share features in addition to becoming too large.