Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Misc item page: Difference between revisions

Template page
Insert uid into item icon table
No edit summary
 
(49 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>{{PageSeo
<includeonly>{{PageSeo
| image = {{{image|}}}
| image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
| description = {{{seo description|{{MiscItemPage/Description
| description = {{#if: {{{description|}}} | {{{description}}} | {{Misc item page/description
   | type = {{{type}}}
   | type = {{{type}}}
   | rarity = {{{rarity|}}}
   | rarity = {{{rarity|}}}
   }}}}}
   }}}}
}} __NOTOC__
}} __NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-{{#if: {{{rarity|}}}  
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-{{#if: {{{rarity|}}}  
| {{#replace: {{lc: {{{rarity}}} }} | <nowiki> </nowiki> | }}
| {{#replace: {{lc: {{{rarity}}} }} | <nowiki> </nowiki> | }}
| common
| common
}}"> {{#if: {{{image|}}} | [[File:{{{image}}}|link=|300px|right|alt={{PAGENAME}} image]] | {{#if:{{{icon|}}}|[[File:{{{icon}}}|64px|right|alt={{PAGENAME}} icon]]}} {{Main only|[[Category:Misc pages without images]]}}}}{{Main only|{{#if:{{{icon|}}} ||[[Category:Item pages without icons]]}} }}
}}"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right|alt={{PAGENAME}} image]] | {{#if:{{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right|alt={{PAGENAME}} controller icon]] | {{#if:{{{icon|}}} | [[File:{{{icon}}}|frameless|right|alt={{PAGENAME}} icon]] | }} }} }}{{#if: {{{image|}}} || {{Main only|[[Category:Misc pages without images]]}} }}{{#if: {{{controller icon|}}} || {{Main only|[[Category:Item pages without controller icons]]}} }}{{#if: {{{icon|}}} || {{Main only|[[Category:Item pages without icons]]}} }}
{{{description}}}{{#if: {{{quote|}}} | {{blank}}
{{{description}}}{{#if: {{{quote|}}} | {{blank}}
{{Description|{{{quote|Missing quote ... imagine some nice flavour text here.}}}}}
{{Description|{{{quote|Missing quote ... imagine some nice flavour text here.}}}}}
Line 17: Line 17:
<h2> Properties </h2>
<h2> Properties </h2>


<ul class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
<li> {{#switch: {{{type|}}}
* {{#switch: {{{type|}}}
| Arrows = {{SmallIcon|Ammunition Icon.png}} [[Arrows]]
| Arrows = {{SmallIcon|Ammunition Icon.png}} [[Arrows]]
| Books = {{Books}}
| Books = {{Books}}
Line 26: Line 26:
| Drinks = {{Drinks}}
| Drinks = {{Drinks}}
| Elixirs = {{Elixirs}}
| Elixirs = {{Elixirs}}
| Keys = {{Keys}}
| Grenades = {{Grenades}}
| Grenades = {{Grenades}}
| Potions = {{SmallIcon|Potions Icon.png}} [[Potions]]
| Potions = {{SmallIcon|Potions Icon.png}} [[Potions]]
Line 33: Line 34:
| Misc = {{SmallIcon|Miscellaneous Icon.png}} [[Miscellaneous|Miscellaneous Items]]
| Misc = {{SmallIcon|Miscellaneous Icon.png}} [[Miscellaneous|Miscellaneous Items]]
| Containers = {{SmallIcon|Containers Icon.png}} [[Containers]]
| Containers = {{SmallIcon|Containers Icon.png}} [[Containers]]
| Instruments = {{SmallIcon|Instruments Icon.png}} [[Instruments]]
| Alchemy Ingredients = {{Alchemical Ingredients}}
| Alchemy Ingredients = {{Alchemical Ingredients}}
| Alchemical Ingredients = {{Alchemical Ingredients}}
| Alchemical Ingredients = {{Alchemical Ingredients}}
Line 38: Line 40:
| Alchemical Extracts = {{Alchemical Extracts}}
| Alchemical Extracts = {{Alchemical Extracts}}
| #default = [[{{{type}}}]]
| #default = [[{{{type}}}]]
}} </li> {{#if: {{{camp supplies|}}} |
<!--}} {{#if: {{{book author|}}} |
<li> {{Camp Supplies}}: {{{camp supplies}}} </li> {{main namespace only|{{#cargo_store:
* {{SmallIcon|Books Icon.png}} Author: {{{book author}}}-->
_table=camp_supplies
}} {{#if: {{{book author|}}} |
|supplies={{{camp supplies|0}}}
* {{#ifexist: {{{book author}}} | {{SmallIcon|Journal Icon.webp}} Author: {{CharLink|{{{book author}}}}} | {{SmallIcon|Journal Icon.webp}} Author: {{{book author}}} }}
|price={{{price|1}}}
}} {{#if: {{{camp supplies|}}} |
|is_drink={{#switch:{{{type|}}}|Drinks=yes|#default=no}}
* {{Camp Supplies}}: {{{camp supplies}}}
}} }} }} {{#if: {{{single use|}}} |
}} {{#if: {{{single use|}}} |
<li> {{SmallIcon|Consumables Icon.png}} Single Use </li>
* {{SmallIcon|Consumables Icon.png}} Single Use
}}
}} {{#if: 1 |
<li> {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }} </li>
* {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }}
<li> {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }} </li>
}} {{#if: {{{weight kg|}}} |
<li> {{Price | {{{price}}} | {{{price honour|}}} }} </li>
* {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
{{#if:{{{uid|}}}{{{uuid|}}}|<li>{{SmallIcon|Ico stats.png}}{{#if:{{{uid|}}}|{{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }}</li>}}
}} {{#if: {{{price|}}} |
</ul>
* {{Price | {{{price}}} | {{{price honour|}}} }}
}} {{#if: {{{uid|}}} {{{uuid|}}} |
* {{SmallIcon|Ico stats.png}} {{#if: {{{uid|}}} | {{Uid|{{{uid}}}}} }} {{#if: {{{uuid|}}} | {{Uuid|{{{uuid}}}}} }}
}} {{#if: {{{uid2|}}} {{{uuid2|}}} |
* {{SmallIcon|Ico stats.png}} {{#if: {{{uid2|}}} | {{Uid|{{{uid2}}}}} }} {{#if: {{{uuid2|}}} | {{Uuid|{{{uuid2}}}}} }}
}} {{#if: {{{uid3|}}} {{{uuid3|}}} |
* {{SmallIcon|Ico stats.png}} {{#if: {{{uid3|}}} | {{Uid|{{{uid3}}}}} }} {{#if: {{{uuid3|}}} | {{Uuid|{{{uuid3}}}}} }}
}} {{#if: {{{uid4|}}} {{{uuid4|}}} |
* {{SmallIcon|Ico stats.png}} {{#if: {{{uid4|}}} | {{Uid|{{{uid4}}}}} }} {{#if: {{{uuid4|}}} | {{Uuid|{{{uuid4}}}}} }}
}} {{#if: {{{uid5|}}} {{{uuid5|}}} |
* {{SmallIcon|Ico stats.png}} {{#if: {{{uid5|}}} | {{Uid|{{{uid5}}}}} }} {{#if: {{{uuid5|}}} | {{Uuid|{{{uuid5}}}}} }}
}}  
</div>
 
{{#if: {{{effect|}}} |
{{#if: {{{effect|}}} |
<h3> Effect </h3>
<h3> Effect </h3>
{{#switch: {{{usage cost|}}}
{{#if: {{{usage cost|}}} | {{InfoBlob | {{r|{{{usage cost|}}}}} }} }}
| action = {{InfoBlob | {{action}} }}
| bonus action = {{InfoBlob | {{action|bonus}} }}
| #default =
}}
{{{effect}}}
{{{effect}}}


Line 65: Line 75:
{{#if: {{{special|}}} | {{blank}}
{{#if: {{{special|}}} | {{blank}}


{{h3|Special}}
=== Special ===


The wearer of this item gains:
The wearer of this item gains:
Line 81: Line 91:
| dc = {{{condition dc|}}}
| dc = {{{condition dc|}}}
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
| radius m = {{{condition radius m|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|item}}}}
{{main namespace only|{{Inflicts|{{{condition}}}|item|type=item|save={{{condition save|}}}|dc={{{condition dc|}}}|duration={{{condition duration|}}}}}}}
</div>
</div>
{{#if: {{{condition2|}}} |
}} {{#if: {{{condition2|}}} |


<h2> Condition: {{{condition2}}} </h2>
<h2> Condition: {{{condition2}}} </h2>
Line 93: Line 104:
| dc = {{{condition2 dc|}}}
| dc = {{{condition2 dc|}}}
| duration = {{{condition2 duration|}}}
| duration = {{{condition2 duration|}}}
| radius m = {{{condition2 radius m|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|item}}}}
{{main namespace only|{{Inflicts|{{{condition2}}}|item|type=item|save={{{condition2 save|}}}|dc={{{condition2 dc|}}}|duration={{{condition2 duration|}}}}}}}
</div>
</div>
}} {{#if: {{{area|}}} |


  }}
<h2> Area: {{{area}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
</div>
}} {{#if: {{{where to find|}}} |
}} {{#if: {{{where to find|}}} |


Line 104: Line 121:
<div class="bg3wiki-tooltip-box">
<div class="bg3wiki-tooltip-box">
{{{where to find}}}
{{{where to find}}}
</div>
}} {{#if: {{{usage|}}} |
<h2> Usage </h2>
<div class="bg3wiki-tooltip-box">
{{{usage}}}
</div>
</div>


Line 118: Line 143:
}}
}}


<!--
}} {{#if: {{{book author|}}} |
<h2> Author </h2>
<div class="bg3wiki-tooltip-box">
{{CharLink|{{{book author}}}}}
</div>
-->
}} {{#if: {{{notes|}}} |
}} {{#if: {{{notes|}}} |


<h2> Notes </h2>
<h2> Notes </h2>
<div class="bg3wiki-tooltip-box">
{{{notes}}}
</div>
}} {{#if: {{{bugs|}}} |


{{{notes}}}
<h2> Bugs </h2>
}}
 
{{Main only|{{#switch:{{{type}}}
<div class="bg3wiki-tooltip-box">
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
}} {{Main namespace only|{{#switch:{{{type}}}
| Misc = [[Category:Misc items]]  
| Misc = [[Category:Misc items]]  
| Alchemy Extracts|Alchemical Extracts = [[Category:Alchemical extracts]]  
| Alchemy Extracts|Alchemical Extracts = [[Category:Alchemical extracts]]  
| Alchemy Ingredients|Alchemical Ingredients = [[Category:Alchemical ingredients]]  
| Alchemy Ingredients|Alchemical Ingredients = [[Category:Alchemical ingredients]]  
| #default = [[Category:{{{type}}}]]
| #default = [[Category:{{{type}}}]]
}}{{#ifeq: {{{rarity|}}} | very rare | [[Category:Very Rare items]] | [[Category:{{{rarity|common}}} items]]}}
}}{{#switch: {{lc:{{{rarity|}}}}}
}}{{ItemIcon Insert|
| common = [[Category:Common items]]
| uncommon = [[Category:Uncommon items]]
| rare = [[Category:Rare items]]
| very rare = [[Category:Very rare items]]
| legendary = [[Category:Legendary items]]
| story = [[Category:Story items]]
| #default = [[Category:Common items]]}}
{{ItemIcon Insert|
|icon={{{icon|}}}
|icon={{{icon|}}}
|image={{{image|}}}
|image={{{controller icon|}}}
|uid={{{uid|}}}
|uid={{{uid|}}}
|uid={{{uid2|}}}
|uid={{{uid3|}}}
|uid={{{uid4|}}}
|uid={{{uid5|}}}
|rarity={{#if:{{{rarity|}}}|{{{rarity}}}|common}}
|rarity={{#if:{{{rarity|}}}|{{{rarity}}}|common}}
}}{{#cargo_store:
_table=misc_items
|name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
|uid = {{{uid|}}}
|uid = {{{uid2|}}}
|uid = {{{uid3|}}}
|uid = {{{uid4|}}}
|uid = {{{uid5|}}}
|camp_supplies = {{{camp supplies|0}}}
|action_type = {{{usage cost|}}}
|price = {{{price|0}}}
|weight_kg = {{{weight kg|}}}
|rarity = {{#if:{{{rarity|}}}|{{{rarity}}}|common}}
|book_author = {{{book author|}}}
}}
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
_table=camp_supplies
_table=misc_items
|is_drink = Boolean
|name = String (mandatory)
|supplies = Integer
|uid = String
|price = Integer
|type = String(allowed values = Arrows, Books, Coatings, Elixirs, Food, Drinks, Grenades, Potions, Scrolls, Consumables, Instruments, Containers, Misc, Notes, Alchemical Ingredients, Alchemical Extracts, Dyes)
}}</noinclude>
|image = File
|controller_icon = File
|icon = File
|description = Wikitext
|quote = Wikitext
|camp_supplies = Integer
|rarity = String(allowed values = common, uncommon, rare, very rare, legendary, story)
|action_type = String
|effect = WikiText
|condition_duration = String
|condition_save = String
|price = String
|weight_kg = String
|book_author = String
}}
[[Category:Templates]]
[[Category:Item page templates]]
[[Category:Page generating templates]]
[[Category:Cargo templates]]
</noinclude>