Difference between revisions of "Template:Artifact"

From Emperor's Hammer Encyclopaedia Imperia
m
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<!-- OUTER FRAME: creates a rarity-colored border without relying on style in the opening table tag -->
+
{| width="250" align="right" cellpadding="0" cellspacing="0" style="float:right; clear:right; margin-left:1em; margin-bottom:1em;"
{| align="right" cellpadding="0" cellspacing="0" style="float:right; clear:right; margin-left:1em; margin-bottom:1em;"
 
 
|-
 
|-
<!-- TOP BORDER -->
+
| style="height:2px; background-color: {{{borderhex|#bfbfbf}}};" colspan="3" |
| style="height:2px; background-color: {{#switch: {{{rarity|Common}}}
 
{{!}}Common=#bfbfbf
 
{{!}}Uncommon=#3cb371
 
{{!}}Rare=#3b6bdc
 
{{!}}Epic=#7b3bdc
 
{{!}}Legendary=#d48a00
 
{{!}}Mythic=#b80000
 
{{!}}#default=#bfbfbf
 
}};" colspan="3" |
 
 
|-
 
|-
<!-- LEFT BORDER -->
+
| style="width:2px; background-color: {{{borderhex|#bfbfbf}}};" |
| style="width:2px; background-color: {{#switch: {{{rarity|Common}}}
 
{{!}}Common=#bfbfbf
 
{{!}}Uncommon=#3cb371
 
{{!}}Rare=#3b6bdc
 
{{!}}Epic=#7b3bdc
 
{{!}}Legendary=#d48a00
 
{{!}}Mythic=#b80000
 
{{!}}#default=#bfbfbf
 
}};" |
 
  
<!-- INNER CONTENT -->
+
| style="padding:0;" |
| style="padding:0; background:transparent;" |
 
 
   {| width="250" cellpadding="3" cellspacing="0" class="sidebar" style="font-size:smaller;"
 
   {| width="250" cellpadding="3" cellspacing="0" class="sidebar" style="font-size:smaller;"
 +
 +
  <!-- IMAGE (optional) -->
 
   |-
 
   |-
 
   {{#if: {{{image|}}}|
 
   {{#if: {{{image|}}}|
Line 33: Line 15:
 
   }}
 
   }}
  
   <!-- ===== HEADER (RARITY-COLORED) ===== -->
+
   <!-- TITLE (no color; uses your site CSS) -->
 
   |-
 
   |-
   {{#switch: {{{rarity|Common}}}
+
   {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps;" {{!}} '''{{#if:{{{name|}}}|{{{name}}}|N/A}}'''
  {{!}}Common    = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#bfbfbf; color:black;" {{!}} '''{{{name|N/A}}}'''
 
  {{!}}Uncommon  = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#3cb371; color:white;" {{!}} '''{{{name|N/A}}}'''
 
  {{!}}Rare      = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#3b6bdc; color:white;" {{!}} '''{{{name|N/A}}}'''
 
  {{!}}Epic      = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#7b3bdc; color:white;" {{!}} '''{{{name|N/A}}}'''
 
  {{!}}Legendary = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#d48a00; color:white;" {{!}} '''{{{name|N/A}}}'''
 
  {{!}}Mythic    = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#b80000; color:white;" {{!}} '''{{{name|N/A}}}'''
 
  {{!}}#default  = {{!}} colspan="2" class="sidebar-heading-heading" style="text-align:center; font-variant:small-caps; background-color:#bfbfbf; color:black;" {{!}} '''{{{name|N/A}}}'''
 
  }}
 
  
   <!-- ===== BASIC INFORMATION ===== -->
+
   <!-- BASIC INFORMATION -->
 
   |-
 
   |-
 
   {{!}} colspan="2" class="sidebar-heading-subheading" style="text-align:center;" {{!}} '''Basic Information'''
 
   {{!}} colspan="2" class="sidebar-heading-subheading" style="text-align:center;" {{!}} '''Basic Information'''
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Type:
 
   {{!}} class="sidebar-label" {{!}} Type:
   {{!}} class="sidebar-value" {{!}} {{{type|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{type|}}}|{{{type}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Rarity:
 
   {{!}} class="sidebar-label" {{!}} Rarity:
   {{!}} class="sidebar-value" {{!}} {{{rarity|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{rarity|}}}|{{{rarity}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Origin / Event:
 
   {{!}} class="sidebar-label" {{!}} Origin / Event:
   {{!}} class="sidebar-value" {{!}} {{{origin|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{origin|}}}|{{{origin}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Owner / Winner:
 
   {{!}} class="sidebar-label" {{!}} Owner / Winner:
   {{!}} class="sidebar-value" {{!}} {{{owner|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{owner|}}}|{{{owner}}}|N/A}}
  
   <!-- ===== ATTRIBUTES ===== -->
+
   <!-- ATTRIBUTES -->
 
   |-
 
   |-
 
   {{!}} colspan="2" class="sidebar-heading-subheading" style="text-align:center;" {{!}} '''Attributes'''
 
   {{!}} colspan="2" class="sidebar-heading-subheading" style="text-align:center;" {{!}} '''Attributes'''
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Effect:
 
   {{!}} class="sidebar-label" {{!}} Effect:
   {{!}} class="sidebar-value" {{!}} {{{effect|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{effect|}}}|{{{effect}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Passive:
 
   {{!}} class="sidebar-label" {{!}} Passive:
   {{!}} class="sidebar-value" {{!}} {{{passiv|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{passiv|}}}|{{{passiv}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Active:
 
   {{!}} class="sidebar-label" {{!}} Active:
   {{!}} class="sidebar-value" {{!}} {{{activ|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{activ|}}}|{{{activ}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Limitation:
 
   {{!}} class="sidebar-label" {{!}} Limitation:
   {{!}} class="sidebar-value" {{!}} {{{limit|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{limit|}}}|{{{limit}}}|N/A}}
  
   <!-- ===== STATUS / GAME DATA ===== -->
+
   <!-- STATUS -->
 
   |-
 
   |-
   {{!}} colspan="2" class="sidebar-heading-subheading" style="text-align:center;" {{!}} '''Status / Game Data'''
+
   {{!}} colspan="2" class="sidebar-heading-subheading" style="text-align:center;" {{!}} '''Status'''
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Status:
 
   {{!}} class="sidebar-label" {{!}} Status:
   {{!}} class="sidebar-value" {{!}} {{{status|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{status|}}}|{{{status}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} ID:
 
   {{!}} class="sidebar-label" {{!}} ID:
   {{!}} class="sidebar-value" {{!}} {{{ID|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{ID|}}}|{{{ID}}}|N/A}}
 
   |-
 
   |-
 
   {{!}} class="sidebar-label" {{!}} Version / Patch:
 
   {{!}} class="sidebar-label" {{!}} Version / Patch:
   {{!}} class="sidebar-value" {{!}} {{{version|N/A}}}
+
   {{!}} class="sidebar-value" {{!}} {{#if:{{{version|}}}|{{{version}}}|N/A}}
 
   |}
 
   |}
<!-- END INNER CONTENT -->
 
  
<!-- RIGHT BORDER -->
+
| style="width:2px; background-color: {{{borderhex|#bfbfbf}}};" |
| style="width:2px; background-color: {{#switch: {{{rarity|Common}}}
 
{{!}}Common=#bfbfbf
 
{{!}}Uncommon=#3cb371
 
{{!}}Rare=#3b6bdc
 
{{!}}Epic=#7b3bdc
 
{{!}}Legendary=#d48a00
 
{{!}}Mythic=#b80000
 
{{!}}#default=#bfbfbf
 
}};" |
 
 
|-
 
|-
<!-- BOTTOM BORDER -->
+
| style="height:2px; background-color: {{{borderhex|#bfbfbf}}};" colspan="3" |
| style="height:2px; background-color: {{#switch: {{{rarity|Common}}}
 
{{!}}Common=#bfbfbf
 
{{!}}Uncommon=#3cb371
 
{{!}}Rare=#3b6bdc
 
{{!}}Epic=#7b3bdc
 
{{!}}Legendary=#d48a00
 
{{!}}Mythic=#b80000
 
{{!}}#default=#bfbfbf
 
}};" colspan="3" |
 
 
|}
 
|}
 
</includeonly>
 
</includeonly>
Line 133: Line 88:
 
|ID=
 
|ID=
 
|version=
 
|version=
 +
|borderhex=#7b3bdc
 
}}
 
}}
 
</pre>
 
</pre>
Line 151: Line 107:
 
|ID= Assigned Library Number (the DC will assign)
 
|ID= Assigned Library Number (the DC will assign)
 
|version= 0.0 (first number changes if artifact changes owner/second number after a major wiki update)
 
|version= 0.0 (first number changes if artifact changes owner/second number after a major wiki update)
 +
|borderhex=Fill in the corresponding hex code for rarity
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 12:43, 30 October 2025


Usage

{{Artifact
|image=
|name=
|type=
|rarity=
|origin=
|owner=
|effect=
|passiv=
|activ=
|limit=
|status=
|ID=
|version=
|borderhex=#7b3bdc 
}}

Example

{{Artifact
|image=[[File:Your_Picture.png|250px|center]]
|name= Names have Power
|type= Weapon/Amulett/Material
|rarity= Pick one (Common/Uncommon/Rare/Epic/Legendary/Mythic)
|origin= Event this Artifact was won in
|owner= House/Member
|effect= Short Description of what the artifact does
|passiv= Any ongoing or always-on effect
|activ= How to use it, cooldowns, or conditions
|limit= Limitations the artifact has
|status= (Active/Lost/Buried/In Storage)
|ID= Assigned Library Number (the DC will assign)
|version= 0.0 (first number changes if artifact changes owner/second number after a major wiki update)
|borderhex=Fill in the corresponding hex code for rarity 
}}

Rarity Colors

  • Common – Gray (#bfbfbf)
  • Uncommon – Green (#3cb371)
  • Rare – Blue (#3b6bdc)
  • Epic – Purple (#7b3bdc)
  • Legendary – Orange (#d48a00)
  • Mythic – Red-Gold (#b80000)