Template:Artifact

(Add relic badges scrap type)
 
(18 intermediate revisions not shown)
Line 1: Line 1:
-
<--<includeonly><onlyinclude>
+
<div class="infobox">
-
[[
+
<div class="header"><span class="icon icon-artifact">{{PAGENAME}}</span></div>
-
  {{{2|}}}|
+
{{#if:{{{image|}}}|
-
  <span class="itemlink ajaxttlink
+
<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.
-
  {{#if:{{{db|}}}|db-{{lc:{{{db}}}}}}}
+
== Usage ==
-
  qc-{{lc:{{{1|common}}}}}
+
-
  " title="{{{2|Unknown}}} is {{#switch:{{lc:{{{1|}}}}}|enchant=an enchant|artifact|epic|uncommon|heirloom=an {{lc:{{{1}}}}} quality item|#default=a {{lc:{{{1|common}}}}} quality item}}.">
+
-
<span class="bracket">&#91;</span>
+
<pre>
-
{{#ifeq:{{{3}}}|s|{{{2}}}s|{{{3|{{{2|Unknown}}}}}}}}
+
{{Artifact
-
<span class="bracket">&#93;</span>
+
|target=
-
</span>
+
|image=
-
]]
+
|description=
 +
|send=
 +
|share=
 +
|scrapType=
 +
|scrapValue=
 +
|useText=
 +
|useCost=
 +
}}
 +
</pre>
-
</onlyinclude></includeonly>
 
-
-->
 
-
<includeonly><onlyinclude>
 
-
[[
 
-
  <span class="" title="{{2}}">
 
-
<span class="bracket">&#91;</span>
 
-
<span class="bracket">&#93;</span>
 
-
</span>
 
-
]]
 
-
</onlyinclude></includeonly>
+
{| class="table"
-
 
+
! Parameter
-
 
+
! Valid Values
-
<script type="text/javascript">
+
! Usage
-
  // white balloon with default configuration
+
|-
-
  // (see http://www.wormbase.org/wiki/index.php/Balloon_Tooltips)
+
| target
-
  var balloon    = new Balloon;
+
| ''any''
-
  //BalloonConfig(balloon,'GBubble');
+
| The value displayed for the artifact under the "target" column on the trade tab.
-
 
+
|-
-
  // plain balloon tooltip
+
| image
-
  var tooltip  = new Balloon;
+
| filename
-
  BalloonConfig(tooltip,'GPlain');
+
| The filename of the artifact's image, e.g. "crystal.png".
-
 
+
|-
-
  // fading balloon
+
| description
-
  var fader = new Balloon;
+
| text
-
  BalloonConfig(fader,'GFade');
+
| The full description text of the artifact. Best copied from the "Use an Artifact" window.
-
 
+
|-
-
  // a plainer popup box
+
| send
-
  var box        = new Box;
+
| ''yes'' or ''no''
-
  BalloonConfig(box,'GBox');
+
| Whether the artifact may be sent between players.
-
 
+
|-
-
  // a box that fades in/out
+
| share
-
  var fadeBox    = new Box;
+
| ''yes'' or ''no''
-
  BalloonConfig(fadeBox,'GBox');
+
| Whether the artifact may be shared to other players.
-
  fadeBox.bgColor    = 'black';
+
|-
-
  fadeBox.fontColor  = 'white';
+
| scrapType
-
  fadeBox.borderStyle = 'none';
+
| ''no'', ''credits'', ''ctp'', 'em'', or ''relics''
-
  fadeBox.delayTime  = 200;
+
| The scrap type of the artifact.
-
  fadeBox.allowFade  = true;
+
|-
-
  fadeBox.fadeIn      = 750;
+
| scrapValue
-
  fadeBox.fadeOut    = 200;
+
| 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"
-
  </script>
+
|-
 +
| 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>

Current revision as of 00:36, 24 November 2024

Artifact
Target
?
Send
?
Share
?
Scrap
?


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]]

Looking for something?

Use the form below to search the wiki:

 

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!