Template:Infobox Object: Difference between revisions

From Shadow Chronicles - Mortal
Jump to navigation Jump to search
(Created page with "<includeonly>{{raw:scGM:Infobox Object |type={{{type|}}} |name = {{{name|}}} |image = {{{image|}}} |link = {{{link|}}} |damage = {{{damage|}}...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{raw:scGM:Infobox Object |type={{{type|}}}
<includeonly>{{#ifeq:{{lc:{{{type|}}}}}|artifact|{{pageHeader|{{{name|}}}}}}}
|name          = {{{name|}}}
{{{!}} class="floatright" style="width: 300px;"
|image        = {{{image|}}}
{{#if: {{{image|}}}|
|link          = {{{link|}}}
{{!}}colspan="2" style="text-align:center;" {{!}} [[File:{{{type|}}}_{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}.{{{image|}}}{{!}}290px{{!}}]]
 
{{!}}-}}
|damage        = {{{damage|}}}
<!--            Weapons            -->
|ranges        = {{{ranges|}}}
{{#if:{{{damage|}}}|{{infobox|section|'''Damage:'''|{{{damage|}}}}}}}
|capacity      = {{{capacity|}}}
{{#if:{{{ranges|}}}|{{infobox|section|'''Ranges:'''|{{{ranges|}}}}}}}
|clip          = {{{clip|}}}
{{#if:{{{capacity|}}}|{{infobox|section|'''Capacity:'''|{{{capacity|}}}}}}}
|initiative    = {{{initiative|}}}
{{#if:{{{clip|}}}|{{infobox|section|'''Clip:'''|{{{clip|}}}}}}}
|strength      = {{{strength|}}}
{{#if:{{{initiative|}}}|{{infobox|section|'''Initiative:'''|{{{initiative|}}}}}}}
 
{{#if:{{{strength|}}}|{{infobox|section|'''Strength:'''|{{{strength|}}}}}}}
|blast        = {{{blast|}}}
<!--            Explosives            -->
|force        = {{{force|}}}
{{#if:{{{blast|}}}|{{infobox|section|'''Blast Area:'''|{{{blast|}}}}}}}
 
{{#if:{{{force|}}}|{{infobox|section|'''Force:'''|{{{force|}}}}}}}
|tags          = {{{tags|}}}
<!--            Generic            -->
|effects      = {{{effects|}}}
{{#if:{{{size|}}}|{{infobox|section|'''Size:'''|{{{size|}}}}}}}
 
{{#if:{{{availability|}}}|{{infobox|section|'''Availability:'''|{{O|{{{availability|}}}}}}}}}
|size          = {{{size|}}}
{{#if:{{{cost|}}}|{{infobox|section|'''Cost:'''|{{$|{{{cost|}}}}}}}}}
|availability  = {{{availability|}}}
{{#if:{{{tags|}}}|{{infobox|section|'''Tags:'''|{{{tags|}}}}}}}
|cost          = {{{cost|}}}
{{#if:{{{effects|}}}|{{infobox|section|'''Effects:'''|{{{effects|}}}}}}}
{{!}}}{{#switch: {{lc:{{{type|}}}}}
| artifact = {{#ifeq:{{{active|}}}|no|[[Category:Inactive (Artifact)]]|[[Category:Artifacts]]}}
| item = [[Category:Objects]]
| weapon = [[Category:Weapons]]
| #default = [[Category:Objects]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==Example use==
==Example use==
  <nowiki>{{Infobox Object |type=<weapon/artifact/item/object>
  <nowiki>{{Infobox Object |type=<weapon/artifact/item/object> |active=<default:null/yes/no>
|name          =  
|name          =  
|image        =  
|image        =  
Line 38: Line 43:


|tags          =  
|tags          =  
|effects      =  
|effects      = <!-- List below -->
 
 
|size          =
|availability  =
|cost          =
}}</nowiki>
[[Category:Templates]]
==Templates==
=== Artifacts ===
{{Hide|  |
<nowiki>{{Infobox Object |type=Artifact |active=<yes/no>
|name          =
|image        =
|link          =
 
|effects      = <!-- List below -->


|size          =  
|size          =  
Line 44: Line 65:
|cost          =  
|cost          =  
}}</nowiki>
}}</nowiki>
[[Category:Templates]]</noinclude>
}}

Latest revision as of 13:09, 4 January 2024

Example use

{{Infobox Object |type=<weapon/artifact/item/object> |active=<default:null/yes/no>
|name          = 
|image         = 
|link          = 

|damage        = 
|ranges        = 
|capacity      = 
|clip          = 
|initiative    = 
|strength      = 

|blast         = 
|force         = 

|tags          = 
|effects       = <!-- List below -->


|size          = 
|availability  = 
|cost          = 
}}

Templates

Artifacts

{{Infobox Object |type=Artifact |active=<yes/no>
|name          = 
|image         = 
|link          = 

|effects       = <!-- List below -->

|size          = 
|availability  = 
|cost          = 
}}