- Target
- ?
- Send
- ?
- Share
- ?
- Scrap
- ?
Template:Artifact
Senatorhung (Talk | contribs) m |
Thaumanovic (Talk | contribs) (Add relic badges scrap type) |
||
(12 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | < | + | <div class="infobox"> |
- | + | <div class="header"><span class="icon icon-artifact">{{PAGENAME}}</span></div> | |
- | + | {{#if:{{{image|}}}| | |
- | + | <div class="image-container image-container-artifact">{{GameImage|artifacts/{{{image}}}}}</div> | |
- | + | |}} | |
- | + | <div class="content"> | |
- | | | + | ;Target |
- | + | :{{#if:{{{target|}}}| | |
- | + | {{{target}}} [[Category:"{{{target}}}" artifacts]] | |
- | + | |''?'' [[Category:Artifacts with unknown target]] | |
- | + | }} | |
- | + | ;Send | |
- | + | :{{#switch:{{{send|}}} | |
- | + | |yes=Yes [[Category:Sendable artifacts]] | |
- | + | |no= No [[Category:Unsendable artifacts]] | |
- | + | |''?'' [[Category:Artifacts with unknown sendability]] | |
- | + | }} | |
- | + | ;Share | |
- | + | :{{#switch:{{{share|}}} | |
- | ''' | + | |yes=Yes [[Category:Shareable artifacts]] |
- | + | |no= No [[Category:Unshareable artifacts]] | |
- | + | |''?'' [[Category:Artifacts with unknown shareability]] | |
- | + | }} | |
- | ''' | + | {{#ifeq:{{{scrapType|}}}|no| |
- | : | + | ; Scrap |
- | + | : No [[Category:Unscrappable artifacts]] | |
- | + | |{{#if:{{{scrapValue|}}}| | |
- | : | + | {{#switch:{{{scrapType|}}} |
- | + | |credits= | |
- | + | ; Scrap | |
- | + | : {{{scrapValue}}} [[Credits|CR]] [[Category:Artifacts that scrap for Credits]] | |
- | ''' | + | |ctp= |
- | : | + | ; Scrap |
- | + | : {{{scrapValue}}} [[Complex Tech Parts|CTP]] [[Category:Artifacts that scrap for Complex Tech Parts]] | |
- | + | | [[Category:Template usage errors]] | |
- | : | + | |em= |
- | + | ; Scrap | |
- | + | : {{{scrapValue}}} [[Exotic Matter|EM]] [[Category:Artifacts that scrap for Exotic Matter]] | |
- | : | + | | [[Category:Template usage errors]] |
- | + | |relics= | |
- | + | ; Scrap | |
- | + | : {{{scrapValue}}} [[Relic Badges]] [[Category:Artifacts that scrap for Relic Badges]] | |
- | + | | [[Category:Template usage errors]] | |
- | + | }} | |
- | : | + | | |
- | + | ; Scrap | |
- | + | : ''?'' [[Category:Artifacts with unknown scrapability]] | |
- | + | }} | |
- | + | }} | |
- | + | {{#if:{{{useCost|}}}| | |
- | + | ; {{{useText|Use}}} cost | |
- | + | : {{{useCost}}} | |
- | + | |}} | |
- | + | <div style="clear: both;"></div> | |
- | + | </div> | |
- | + | </div> | |
- | + | {{#if:{{{description|}}}| | |
- | + | {{Quote|{{{description}}}}} | |
- | + | |}} | |
- | + | <noinclude> | |
- | + | Displays an information box at the right of the page, detailing an [[Artifact]]. If provided, it was also provide the artifact's description in the form of a quote at the top of the page. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | == Usage == | ||
+ | <pre> | ||
+ | {{Artifact | ||
+ | |target= | ||
+ | |image= | ||
+ | |description= | ||
+ | |send= | ||
+ | |share= | ||
+ | |scrapType= | ||
+ | |scrapValue= | ||
+ | |useText= | ||
+ | |useCost= | ||
+ | }} | ||
+ | </pre> | ||
+ | {| class="table" | ||
+ | ! Parameter | ||
+ | ! Valid Values | ||
+ | ! Usage | ||
+ | |- | ||
+ | | target | ||
+ | | ''any'' | ||
+ | | The value displayed for the artifact under the "target" column on the trade tab. | ||
+ | |- | ||
+ | | image | ||
+ | | filename | ||
+ | | The filename of the artifact's image, e.g. "crystal.png". | ||
+ | |- | ||
+ | | description | ||
+ | | text | ||
+ | | The full description text of the artifact. Best copied from the "Use an Artifact" window. | ||
+ | |- | ||
+ | | send | ||
+ | | ''yes'' or ''no'' | ||
+ | | Whether the artifact may be sent between players. | ||
+ | |- | ||
+ | | share | ||
+ | | ''yes'' or ''no'' | ||
+ | | Whether the artifact may be shared to other players. | ||
+ | |- | ||
+ | | scrapType | ||
+ | | ''no'', ''credits'', ''ctp'', 'em'', or ''relics'' | ||
+ | | The scrap type of the artifact. | ||
+ | |- | ||
+ | | scrapValue | ||
+ | | Form: ''lower'' - ''higher'' | ||
+ | | The scrap value of the artifact. Include only the raw values with a space either side of the hyphen, e.g. "10 - 20" | ||
+ | |- | ||
+ | | useText | ||
+ | | ''text'' | ||
+ | | The text displayed on the button used to use the artifact. Defaults to "Use" if not specified. | ||
+ | |- | ||
+ | | useCost | ||
+ | | ''text'' | ||
+ | | The full markup used to represent the costs required to use the artifact. Example: | ||
+ | <nowiki>10,000 [[Energy]]<br> 100[[Complex Tech Parts|CTP]]</nowiki> | ||
+ | |} | ||
</noinclude> | </noinclude> |
Current revision as of 00:36, 24 November 2024
Artifact
Displays an information box at the right of the page, detailing an Artifact. If provided, it was also provide the artifact's description in the form of a quote at the top of the page.
Usage
{{Artifact |target= |image= |description= |send= |share= |scrapType= |scrapValue= |useText= |useCost= }}
Parameter | Valid Values | Usage |
---|---|---|
target | any | The value displayed for the artifact under the "target" column on the trade tab. |
image | filename | The filename of the artifact's image, e.g. "crystal.png". |
description | text | The full description text of the artifact. Best copied from the "Use an Artifact" window. |
send | yes or no | Whether the artifact may be sent between players. |
share | yes or no | Whether the artifact may be shared to other players. |
scrapType | no, credits, ctp, 'em, or relics | The scrap type of the artifact. |
scrapValue | Form: lower - higher | The scrap value of the artifact. Include only the raw values with a space either side of the hyphen, e.g. "10 - 20" |
useText | text | The text displayed on the button used to use the artifact. Defaults to "Use" if not specified. |
useCost | text | The full markup used to represent the costs required to use the artifact. Example:
10,000 [[Energy]]<br> 100[[Complex Tech Parts|CTP]] |