Jump to content

Template:Relic: Difference between revisions

From Doom Relics
No edit summary
Tag: Reverted
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable doom-relicbox"
<includeonly>
|-
<div class="relic-card">
! colspan="2" class="doom-relicbox-title" | {{{name|Relic}}}
|-
| colspan="2" class="doom-relicbox-image" | {{{image|}}}
|-
| class="doom-relicbox-label" | Game
| {{{game|}}}
|-
| class="doom-relicbox-label" | Type
| {{{type|}}}
|-
| class="doom-relicbox-label" | Manufacturer
| {{{manufacturer|}}}
|-
| class="doom-relicbox-label" | Year
| {{{year|}}}
|-
| class="doom-relicbox-label" | Region
| {{{region|}}}
|-
| class="doom-relicbox-label" | Rarity
| <span class="doom-rarity-chip doom-rarity-{{#switch:{{{rarity|Unknown}}}
| Common=common
| Uncommon=uncommon
| Rare=rare
| Very Rare=very-rare
| Mythic=mythic
| Prototype=prototype
| #default=unknown
}}">
{{{rarity|Unknown}}}
</span>


|-
  <div class="relic-header">
| class="doom-relicbox-label" | Notes
    <div class="relic-title">{{PAGENAME}}</div>
| {{{notes|}}}
    <div class="relic-chip">{{{rarity|Unknown}}}</div>
|}
  </div>
 
  <div class="relic-body">
 
    <!-- LEFT: IMAGE -->
    <div class="relic-media">
      {{#if: {{{img1|}}}
        | [[File:{{{img1}}}|frameless|360px|link=File:{{{img1}}}]]
        | <div class="relic-noimg">No image uploaded</div>
      }}
    </div>
 
    <!-- RIGHT: META / FIELDS -->
    <div class="relic-meta">
      <div class="relic-row"><span class="k">Category</span><span class="v">{{{category|}}}</span></div>
      <div class="relic-row"><span class="k">Subcategory</span><span class="v">{{{subcat|}}}</span></div>
      <div class="relic-row"><span class="k">Manufacturer</span><span class="v">{{{manufacturer|}}}</span></div>
      <div class="relic-row"><span class="k">Year</span><span class="v">{{{year|}}}</span></div>
      <div class="relic-row"><span class="k">Platform</span><span class="v">{{{platform|}}}</span></div>
    </div>
 
  </div>
 
  <!-- FULL WIDTH DESCRIPTION (below image + meta) -->
  {{#if: {{{description|}}}
    | <div class="relic-desc relic-desc--full">
        <div class="k">Description</div>
        <div class="desc">{{{description}}}</div>
      </div>
    |
  }}
 
[[Category:Relics]]
{{#if: {{{category|}}} | [[Category:{{{category}}}]] }}
{{#if: {{{category|}}}{{{subcat|}}} | [[Category:{{{category}}} – {{{subcat}}}]] }}
 
 
</div>
</includeonly>

Latest revision as of 11:14, 26 December 2025