Template:Corpse: Difference between revisions

292 bytes added ,  19:35, 16 December 2021
m
exclude tooltips from search index
(add categories parameter)
m (exclude tooltips from search index)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude> <!--(Cargo Declare)-->
<noinclude> <!--(Cargo Declare)-->
{{#cargo_declare:_table=Corpses|Title=Wikitext|Description=Wikitext|Disassemblesinto=String|ObjectID=String|EatDescription=Wikitext}}
{{#cargo_declare:_table=Corpses|Title=Wikitext|Description=Wikitext|Disassemblesinto=String|ObjectID=String|EatDescription=Wikitext|JoinKey=String}}
{{#cargo_attach:
{{#cargo_attach:
_table = GeneralData}}<!----
_table = GeneralData}}<!----
Line 6: Line 6:
   Corpse Cargo Storage
   Corpse Cargo Storage


--></noinclude><includeonly>{{#cargo_store:_table=Corpses|
--></noinclude><includeonly>{{#cargo_store:_table=Corpses
Title={{{title|}}}|
|Title={{{title|}}}
Description={{qud text|{{{desc|}}}|unbolded}}|
|Description={{qud text|{{{desc|}}}|unbolded}}
Weight={{{weight|5}}}|Commerce={{{commerce|-1}}}|
|Weight={{{weight|5}}}|Commerce={{{commerce|-1}}}
Disassemblesinto={{{bits|}}}|
|Disassemblesinto={{{bits|}}}
EatDescription={{qud text|{{{eatdesc|}}}|unbolded}}|
|EatDescription={{qud text|{{{eatdesc|}}}|unbolded}}
ObjectID={{{id|}}} }}<!--
|ObjectID={{{id|}}}
|JoinKey={{FULLPAGENAME}} }}<!--


   General Data Storage
   General Data Storage


-->{{#cargo_store:_table=GeneralData|
-->{{#cargo_store:_table=GeneralData
ObjectID={{{id|}}}|
|ObjectID={{{id|}}}
DisplayName={{{title|}}}|
|DisplayName={{{title|}}}
Image={{{image|corpse1.png}}}|
|Image={{{image|corpse1.png}}}
PlainName={{stripFormatting|{{{title|}}}}}|
|PlainName={{stripFormatting|1={{{title|}}}}}
DisplayChar={{qud char|{{{colorstr|&amp;y}}}|{{{renderstr|.}}}}}|
|DisplayChar={{qud char|{{{colorstr|&amp;y}}}|{{{renderstr|.}}}}}
Commerce={{{commerce|-1}}}|
|Commerce={{{commerce|-1}}}
Weight={{{weight|5}}}|
|Weight={{{weight|5}}}
Tier={{{tier|}}}|
|Tier={{{tier|}}}
ParentObject={{{inheritingfrom|}}}|
|ParentObject={{{inheritingfrom|}}}
Categories={{{categories|}}} }}<!---
|Categories={{{categories|}}}
|JoinKey={{FULLPAGENAME}}
|Description={{qud text|{{{desc|}}}|unbolded}} }}<!---


   Variable Definition
   Variable Definition


-->{{#vardefine:name|{{{title|{{PAGENAME}} }}} }}<!---
-->{{#vardefine:name|{{{title|{{PAGENAME}} }}} }}{{#vardefine:id|{{{id|}}}}}<!---


   Infobox Start
   Infobox Start


--->
--->{{#invoke:Infobox| infobox| title= {{{title|}}}
{{#invoke:Infobox| infobox| title= {{{title|}}}
| imagearea =
| image= {{{image|Corpse1.png}}}
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} | <div>[[File:{{{image|Corpse1.png}}}|160px|alt={{{PAGENAME}}}]]</div> }}
| rows=
| rows =
{{infobox row|Character|{{qud char|{{{colorstr|&amp;y}}}|{{{renderstr|.}}} }} }}
{{infobox row|Character|{{qud char|{{{colorstr|&amp;y}}}|{{{renderstr|.}}} }} }}
{{infobox row|Weight|{{{weight|5}}}{{pounds}} }}
{{infobox row|Weight|{{{weight|5}}}{{pounds}} }}
{{infobox row|[[Commerce]]|{{{commerce|}}} }}
{{infobox row|[[Commerce]]|{{{commerce|}}} }}
{{#if: {{{butcheredinto|}}}|{{infobox row|Butchered Into|{{{butcheredinto}}} }} }}
{{#if: {{{butcheredinto|}}}|{{infobox row|[[Butchered]] Into|{{{butcheredinto}}} }} }}
{{#if: {{{bits|}}}|{{infobox row|Disassembled Into|{{bits|{{{bits}}} }} }} }}  
{{#if: {{{bits|}}}|{{infobox row|Disassembled Into|{{bits|{{{bits}}} }} }} }}  
{{infobox row|Creatures that drop|{{#cargo_query:table=Characters|fields=_pageName=Page,CONCAT(CorpseChance,'%')=|where=Corpse='{{#replace:{{stripFormatting|{{{title|}}}}}|'|''}}'|format=list|delimiter=</br>|limit=5}} }}
{{infobox row|Creatures that drop|{{#cargo_query:table=Characters
|fields=CONCAT('{{(}}favilink id{{!}}',Characters.ObjectID,'{{)}}')=Page,CONCAT(CorpseChance,'%')=
|where=Corpse='{{#replace:{{{id|}}}|'|''}}'|format=list|delimiter=</br>|limit=5}} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{#if: {{{dynamictable|}}} | {{infobox row|Spawns in|{{{dynamictable}}} }} }}
{{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item}}|{{{id}}} }}
{{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item||nosearch}}|{{{id}}} }}
}}<!--
}}<!--


Line 51: Line 56:


-->{{#if: {{{desc|}}}|{{qud look|text={{{desc|}}}|title={{{title|}}} }} }}
-->{{#if: {{{desc|}}}|{{qud look|text={{{desc|}}}|title={{{title|}}} }} }}
{{#if: {{{eatdesc|}}}|{{qud quote|{{{eatdesc|}}}.|upon consuming}} }}{{#if:{{{categories|}}}|[[Category:{{{categories}}}]] }}</includeonly><noinclude>
{{#if: {{{eatdesc|}}}|{{qud quote|{{{eatdesc|}}}|upon consuming}} }}{{#if:{{{categories|}}}|[[Category:{{{categories}}}]] }}</includeonly><noinclude>
[[Category:Cargo Store Templates]]
[[Category:Cargo Store Templates]]


</noinclude>
</noinclude>