|
|
| Line 1: |
Line 1: |
| <noinclude>
| |
| {{#cargo_declare:_table=ItemsSandbox
| |
| |flavor_text=Wikitext
| |
| |gets=List (,) of Wikitext
| |
| |rarity=String
| |
| |price=Integer
| |
| |currency=String
| |
| |sell=Integer
| |
| |flavor=String
| |
| |nature=String
| |
| |curren
| |
| }}
| |
| </noinclude>
| |
| <includeonly>
| |
| {{#cargo_store:_table=ItemsSandbox
| |
| |flavor_text={{{flavor_text|}}}
| |
| |gets={{{gets|}}}
| |
| |currency={{{curr|}}}
| |
| |rarity=String
| |
| |price={{{price|}}}
| |
| |sell={{{sell|}}}
| |
| |flavor={{{flavor|}}}
| |
| |nature={{{nature|}}}
| |
| }}
| |
| {| class="infobox" style="float: right; margin:1%;"
| |
| ! colspan="4"|'''{{#if: {{{name|}}}|{{{name|}}}|{{PAGENAME}} }}'''
| |
|
| |
|
| |-
| |
| ! colspan="4" | {{#if: {{{img|}}}|[[File:{{{img}}}]]|[[File:Placeholder.png|200px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Image]]|#default=}}}}
| |
| |-
| |
| | colspan="4" style="text-align: center; background:#965c2d; color:white; border-radius:2em;"| <small>{{#if:{{{capt1|}}}|{{{capt1}}}|''Missing Caption'' }}</small>
| |
|
| |
| |- {{#if: {{{smallimg|}}}||style="display: none"}}
| |
| ! colspan="4" | [[File:{{{smallimg|}}}|x100px]]
| |
| |- {{#if: {{{smallimg|}}}||style="display: none"}}
| |
| | colspan="4" style="text-align: center; background:#965c2d; color:white; border-radius:2em;"| <small>{{{capt2|}}}</small>
| |
|
| |
| |-
| |
| | colspan="4" style="text-align: center; padding-left: 2px; padding-right: 2px;"| {{#if:{{{flavor_text|}}}|{{{flavor_text}}}|''Missing Description''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Description]]|#default=}}}}
| |
|
| |
| |-
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Type
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{#if:{{{type|}}}|{{i|{{{type}}}}}|''Missing Type''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Type]]|#default=}}}}
| |
|
| |
| |-
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Obtainment Method
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:10px;"| {{#if:{{{gets|}}}|{{{gets}}}|''Missing Obtainment''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Obtainment]]|#default=}}}}
| |
|
| |
| |-
| |
| ! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Cost
| |
| | colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#if:{{{price|}}}|{{{price}}} {{#switch: {{lc:{{{curr|}}}}}
| |
| |copper|c={{c}}
| |
| |silver|s={{s}}|}}|N/A}}
| |
| |-
| |
| ! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Sell Price
| |
| | colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#if: {{{sell|}}}|{{{sell}}}|0}} {{c}}
| |
|
| |
| |-{{#if: {{{flavor|}}}||style="display: none"}}
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Flavor
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{flavor|}}}
| |
|
| |
| |-{{#if: {{{nature|}}}||style="display: none"}}
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Nature
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{nature|}}}
| |
|
| |
| |-{{#if: {{{position|}}}||style="display: none"}}
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Position
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{position}}}
| |
|
| |
| |-{{#if: {{{taxonomy|}}}||style="display: none"}}
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Taxonomy Class
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{taxonomy}}}
| |
|
| |
| |-{{#if: {{{stam|}}}||style="display: none"}}
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Stamina
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| +{{{stam|}}}
| |
|
| |
| |-
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Rarity
| |
| | colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#switch: {{{rarity}}}
| |
| |0=0[[Category:Rarity 0]]
| |
| |1=[[File:Pb wiki rarity - 1 star.png|x25px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Rarity 1]]|#default=}}
| |
| |2|3|4|5|6=[[File:Pb wiki rarity - {{{rarity}}} stars.png|x25px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Rarity {{{rarity}}}]]|#default=}}
| |
| |#default=''Missing Rarity''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Rarity]]|#default=}}
| |
| }}
| |
|
| |
| |-{{#if: {{{debut|}}}||style="display: none"}}
| |
| ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Debut Date
| |
| | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{debut|}}}
| |
| |}{{#switch: {{NAMESPACE}} | {{ns:0}} = [[Category:Items]]{{#switch:{{lc:{{{type}}}}}
| |
| |accessory=[[Category:Accessory]]
| |
| |backdrop=[[Category:Backdrop]]
| |
| |combat=[[Category:Combat]]
| |
| |crest=[[Category:Crest]]
| |
| |decor=[[Category:Decor]]
| |
| |dye=[[Category:Dye]]
| |
| |fauna=[[Category:Fauna]]
| |
| |food=[[Category:Food]]
| |
| |formula=[[Category:Formula]]
| |
| |incense=[[Category:Incense]]
| |
| |metamorphic=[[Category:Metamorphic]]
| |
| |pelt=[[Category:Pelt]]
| |
| |pouch=[[Category:Pouch]]}}{{#switch:{{lc:{{{position}}}}}
| |
| |back=[[Category:Back]]
| |
| |back legs=[[Category:Back Legs]]
| |
| |back paws=[[Category:Back Paws]]
| |
| |body=[[Category:Body]]
| |
| |crown=[[Category:Crown]]
| |
| |ears=[[Category:Ears]]
| |
| |face=[[Category:Face]]
| |
| |front legs=[[Category:Front Legs]]
| |
| |front paws=[[Category:Front Paws]]
| |
| |full body=[[Category:Full Body]]
| |
| |head=[[Category:Head]]
| |
| |legs=[[Category:Legs]]
| |
| |lower torso=[[Category:Lower Torso]]
| |
| |neck=[[Category:Neck]]
| |
| |shoulders=[[Category:Shoulders]]
| |
| |tail=[[Category:Tail]]
| |
| |upper torso=[[Category:Upper Torso]]
| |
| |other=[[Category:Position Other]]
| |
| }}{{#switch:{{lc:{{{taxonomy}}}}}
| |
| |aquatic=[[Category:Aquatic]]
| |
| |avian=[[Category:Avian]]
| |
| |insectoid=[[Category:Insectoid]]
| |
| |mammalian=[[Category:Mammalian]]
| |
| |quartz=[[Category:Quartz]]
| |
| |saurian=[[Category:Saurian]]
| |
| |synthetic=[[Category:Synthetic]]}}
| |
| | #default = }}</includeonly><noinclude>
| |
|
| |
| ==Usage==
| |
| An infobox template for items pages. All article pages that transclude this template are put into [[:Category:Items]]. Additional categories are added if parameters meet certain criteria. See the list of automatic categories below.
| |
|
| |
| Maintenance Categories:
| |
| * If <code>|flavor_text=</code> is empty then [[:Category:Missing Description]]
| |
| * If <code>|type=</code> is empty then [[:Category:Missing Type]]
| |
| * If <code>|img=</code> is empty then [[:Category:Missing Image]]
| |
| * If <code>|gets=</code> is empty then [[:Category:Missing Obtainment]]
| |
| * If <code>|rarity=</code> is empty then [[:Category:Missing Rarity]]
| |
|
| |
| General Categories:
| |
| * <code>|item=</code>
| |
| ** [[:Category:Accessory]]
| |
| ** [[:Category:Backdrop]]
| |
| ** [[:Category:Combat]]
| |
| ** [[:Category:Crest]]
| |
| ** [[:Category:Decor]]
| |
| ** [[:Category:Dye]]
| |
| ** [[:Category:Fauna]]
| |
| ** [[:Category:Food]]
| |
| ** [[:Category:Formula]]
| |
| ** [[:Category:Incense]]
| |
| ** [[:Category:Metamorphic]]
| |
| ** [[:Category:Pelt]]
| |
| ** [[:Category:Pouch]]
| |
| * <code>|taxonomy=</code>
| |
| ** [[:Category:Aquatic]]
| |
| ** [[:Category:Avian]]
| |
| ** [[:Category:Insectoid]]
| |
| ** [[:Category:Mammalian]]
| |
| ** [[:Category:Quartz]]
| |
| ** [[:Category:Saurian]]
| |
| ** [[:Category:Synthetic]]
| |
| * <code>|position=</code>
| |
| ** [[:Category:Back]]
| |
| ** [[:Category:Back Legs]]
| |
| ** [[:Category:Back Paws]]
| |
| ** [[:Category:Body]]
| |
| ** [[:Category:Crown]]
| |
| ** [[:Category:Ears]]
| |
| ** [[:Category:Face]]
| |
| ** [[:Category:Front Legs]]
| |
| ** [[:Category:Front Paws]]
| |
| ** [[:Category:Full Body]]
| |
| ** [[:Category:Head]]
| |
| ** [[:Category:Legs]]
| |
| ** [[:Category:Lower Torso]]
| |
| ** [[:Category:Neck]]
| |
| ** [[:Category:Shoulders]]
| |
| ** [[:Category:Tail]]
| |
| ** [[:Category:Upper Torso]]
| |
| ** [[:Category:Position Other]]
| |
| * <code>|rarity=</code>
| |
| ** [[:Category:Rarity 0]]
| |
| ** [[:Category:Rarity 1]]
| |
| ** [[:Category:Rarity 2]]
| |
| ** [[:Category:Rarity 3]]
| |
| ** [[:Category:Rarity 4]]
| |
| ** [[:Category:Rarity 5]]
| |
| ** [[:Category:Rarity 6]]
| |
|
| |
| ==Syntax==
| |
| <pre>
| |
| {{Item/Sandbox
| |
| |name=
| |
| |img=
| |
| |capt1=
| |
| |smallimg=
| |
| |capt2=
| |
| |flavor_text=
| |
| |type=
| |
| |gets=
| |
| |price=
| |
| |curr=
| |
| |sell=
| |
| |flavor=
| |
| |nature=
| |
| |position=
| |
| |taxonomy=
| |
| |stam=
| |
| |rarity=
| |
| |debut=
| |
| </pre>
| |
|
| |
| ==Examples==
| |
| {{Item/Sandbox
| |
| |name=
| |
| |img=
| |
| |capt1=
| |
| |smallimg=
| |
| |capt2=
| |
| |flavor_text=
| |
| |type=
| |
| |gets=
| |
| |price=
| |
| |curr=
| |
| |sell=
| |
| |flavor=
| |
| |nature=
| |
| |position=
| |
| |taxonomy=
| |
| |stam=
| |
| |rarity=
| |
| |debut=
| |
| }}
| |
| <pre>{{Item/Sandbox
| |
| |name=
| |
| |img=
| |
| |capt1=
| |
| |smallimg=
| |
| |capt2=
| |
| |flavor_text=
| |
| |type=
| |
| |gets=
| |
| |price=
| |
| |curr=
| |
| |sell=
| |
| |flavor=
| |
| |nature=
| |
| |position=
| |
| |taxonomy=
| |
| |stam=
| |
| |rarity=
| |
| |debut=
| |
| }}</pre>
| |
| {{-}}
| |
|
| |
| {{Item/Sandbox
| |
| |name=Northern Lunasagi
| |
| |img=Lunasagi.png
| |
| |capt1=The Lunasagi
| |
| |smallimg=Placeholder.png
| |
| |capt2=Caption Two
| |
| |flavor_text=Hello world.
| |
| |type=Fauna
| |
| |gets=[[Errands]]
| |
| |price=500
| |
| |curr=silver
| |
| |sell=1000
| |
| |flavor={{f|Savory}}
| |
| |nature={{n|Nervous}}
| |
| |position=Back Legs
| |
| |taxonomy=Mammalian
| |
| |stam=20
| |
| |rarity=6
| |
| |debut=Date Here
| |
| }}
| |
| <pre>{{Item/Sandbox
| |
| |name=Northern Lunasagi
| |
| |img=Lunasagi.png
| |
| |capt1=The Lunasagi
| |
| |smallimg=Placeholder.png
| |
| |capt2=Caption Two
| |
| |flavor_text=Hello world.
| |
| |type=Fauna
| |
| |gets=[[Errands]]
| |
| |price=500
| |
| |curr=silver
| |
| |sell=1000
| |
| |flavor={{f|Savory}}
| |
| |nature={{n|Nervous}}
| |
| |position=Back Legs
| |
| |taxonomy=Mammalian
| |
| |stam=20
| |
| |rarity=6
| |
| |debut=Date Here
| |
| }}</pre>
| |
| {{-}}
| |
|
| |
| == Template Parameters ==
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "name": {
| |
| "default": "{{PAGENAME}}",
| |
| "description": "Name of the item, defaults to page name.",
| |
| "required": true
| |
| },
| |
| "img": {
| |
| "description": "Full resolution image of item.",
| |
| "example": "Placeholder.png",
| |
| "required": true
| |
| },
| |
| "capt1": {
| |
| "description": "Caption for large image.",
| |
| "example": "The [NAME] | [NAME] Item",
| |
| "required": true
| |
| },
| |
| "smallimg": {},
| |
| "capt2": {},
| |
| "type": {
| |
| "description": "Item category, associated icon and link are added automatically.",
| |
| "suggestedvalues": [
| |
| "Accessory",
| |
| "Backdrop",
| |
| "Combat",
| |
| "Crest",
| |
| "Decor",
| |
| "Dye",
| |
| "Fauna",
| |
| "Food",
| |
| "Formula",
| |
| "Incense",
| |
| "Metamorphic",
| |
| "Pelt",
| |
| "Pouch",
| |
| "Supply"
| |
| ],
| |
| "required": true
| |
| },
| |
| "gets": {
| |
| "description": "How the item is obtained. Obtainment methods should be linked, if there are multiple obtainment sources separate them with commas and order alphabetically.",
| |
| "required": true
| |
| },
| |
| "price": {
| |
| "description": "The Copper/Silver/USD price of the item if found in NPC shops or premium bundles. Default is \"N/A\" if left empty.",
| |
| "type": "number",
| |
| "required": true,
| |
| "default": "N/A"
| |
| },
| |
| "curr": {
| |
| "description": "Adds {{c}} or {{s}} to the end of Price. Case insensitive.",
| |
| "suggestedvalues": [
| |
| "copper",
| |
| "silver",
| |
| "c",
| |
| "s"
| |
| ],
| |
| "suggested": true
| |
| },
| |
| "sell": {
| |
| "description": "Sell price of the item, defaults to 0.",
| |
| "type": "number",
| |
| "default": "0",
| |
| "required": true
| |
| },
| |
| "flavor": {
| |
| "description": "Flavor of the item, if applicable. Wrap template {{f}} around each flavor.",
| |
| "suggestedvalues": [
| |
| "bitter",
| |
| "salty",
| |
| "savory",
| |
| "sour",
| |
| "spiced",
| |
| "sweet"
| |
| ],
| |
| "suggested": true
| |
| },
| |
| "nature": {
| |
| "description": "Nature of the item, if applicable. Wrap template {{n}} around each nature. ",
| |
| "suggestedvalues": [
| |
| "assertive",
| |
| "careful",
| |
| "cranky",
| |
| "gentle",
| |
| "hardy",
| |
| "headstrong",
| |
| "heroic",
| |
| "jolly",
| |
| "lonely",
| |
| "mischievous",
| |
| "nervous",
| |
| "protective",
| |
| "relaxed",
| |
| "timid"
| |
| ],
| |
| "suggested": true
| |
| },
| |
| "taxonomy": {
| |
| "description": "For fauna items, the general taxonomy class as seen in the database. Adds associated category automatically.",
| |
| "suggestedvalues": [
| |
| "Aquatic",
| |
| "Avian",
| |
| "Insectoid",
| |
| "Mammilian",
| |
| "Quartz",
| |
| "Suarian",
| |
| "Synthetic"
| |
| ]
| |
| },
| |
| "position": {
| |
| "description": "For accessory items, the position of the accessory as seen in the Wardrobe. Adds associated category automatically.",
| |
| "suggestedvalues": [
| |
| "Back",
| |
| "Back Legs",
| |
| "Back Paws",
| |
| "Body",
| |
| "Crown",
| |
| "Ears",
| |
| "Face",
| |
| "Front Legs",
| |
| "Front Paws",
| |
| "Full Body",
| |
| "Head",
| |
| "Legs",
| |
| "Lower Torso",
| |
| "Neck",
| |
| "Shoulders",
| |
| "Tail",
| |
| "Upper Torso",
| |
| "Other"
| |
| ],
| |
| "suggested": true
| |
| },
| |
| "rarity": {
| |
| "description": "Star rarity of the item. Rarity 1 and above have associated star icons. Each rarity applies a category.",
| |
| "suggested": true
| |
| },
| |
| "debut": {
| |
| "description": "When the item was released.",
| |
| "suggested": true
| |
| },
| |
| "stam": {
| |
| "description": "If a food item, the amount of replenished stamina upon use in Errands as seen in the database.",
| |
| "suggested": true
| |
| },
| |
| "flavor_text": {
| |
| "description": "The item's description/flavor text as seen in the database.",
| |
| "required": true
| |
| }
| |
| },
| |
| "description": "Infobox template for item pages.",
| |
| "paramOrder": [
| |
| "name",
| |
| "img",
| |
| "capt1",
| |
| "smallimg",
| |
| "capt2",
| |
| "flavor_text",
| |
| "type",
| |
| "gets",
| |
| "price",
| |
| "curr",
| |
| "sell",
| |
| "flavor",
| |
| "nature",
| |
| "position",
| |
| "taxonomy",
| |
| "stam",
| |
| "rarity",
| |
| "debut"
| |
| ]
| |
| }
| |
| </templatedata>
| |
| [[Category:Templates]]
| |
| </noinclude>
| |