Template:Ephemera: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable"
<includeonly>{| class=wikitable width=67%
{{!}} {{#if:{{{name|}}}|[[Ephemera name is::{{{name}}}]]|[[Ephemera name is::{{PAGENAME}}]]}}
! colspan="2" align="center" | {{#if:{{{name|}}}|[[Ephemera name is::{{{name}}}]]|[[Ephemera name is::{{PAGENAME}}]]}}
|-
|-
{{#if:{{{rarity|}}} | {{!}} '''Rarity:''' {{!}}{{!}} {{#switch:{{lc:{{{rarity}}}}}|-|none=None|[[Ephemera rarity is::{{{rarity}}}]]}}}}
{{#if:{{{rarity|}}} | {{!}} width=15% {{!}} '''Rarity:''' {{!}}{{!}} {{#switch:{{lc:{{{rarity}}}}}|-|none=None|[[Ephemera rarity is::{{{rarity}}}]]}}}}
|-
|-
{{#if:{{{class|}}} | {{!}} '''Class:''' {{!}}{{!}} {{#switch:{{lc:{{{class}}}}}|-|none=None|[[Ephemera class is::{{{class}}}]]}}}}
{{#if:{{{class|}}} | {{!}} width=15% {{!}} '''Class:''' {{!}}{{!}} {{#switch:{{lc:{{{class}}}}}|-|none=None|[[Ephemera class is::{{{class}}}]]}}}}
|-
|-
{{#if:{{{energy|}}} | {{!}} '''Energy:''' {{!}}{{!}} {{#switch:{{lc:{{{energy}}}}}|-|none=None|[[Ephemera energy is::{{{energy}}}]]}}}}
{{#if:{{{energy|}}} | {{!}} width=15% {{!}} '''Energy:''' {{!}}{{!}} {{#switch:{{lc:{{{energy}}}}}|-|none=None|[[Ephemera energy is::{{{energy}}}]]}}}}
|-
|-
{{#if:{{{description|}}} | {{!}} '''Description:''' {{!}}{{!}} {{#switch:{{lc:{{{description}}}}}|-|none=None|[[Ephemera description is::{{{description}}}]]}}}}
{{#if:{{{description|}}} | {{!}} width=15% {{!}} '''Description:''' {{!}}{{!}} {{#switch:{{lc:{{{description}}}}}|-|none=None|[[Ephemera description is::{{{description}}}]]}}}}
|-
{{#if:{{{location|}}} | {{!}} width=15% {{!}} '''Location(s):''' {{!}}{{!}} {{#arraymap:{{{location}}}|,|@@@@|[[Ephemera location is::@@@@|@@@@<br>]] | }}}}
|}
|}
{{cat|Ephemera}}

{{#switch: {{lc:{{{rarity}}}}}
{{#switch: {{lc:{{{rarity}}}}}
| common = {{cat|Common Ephemera}}
| common = {{cat|Common ephemera}}
| uncommon = {{cat|Uncommon Ephemera}}
| uncommon = {{cat|Uncommon ephemera}}
| rare = {{cat|Rare Ephemera}}
| rare = {{cat|Rare ephemera}}
| limited = {{cat|Limited Ephemera}}
| limited = {{cat|Limited ephemera}}
}}
{{#switch: {{lc:{{{class}}}}}
| beast = {{cat|Beast ephemera}}
| construct = {{cat|Construct ephemera}}
| draconic = {{cat|Draconic ephemera}}
| extraplanar = {{cat|Extraplanar ephemera}}
| fae = {{cat|Fae ephemera}}
| humanoid = {{cat|Humanoid ephemera}}
| undead = {{cat|Undead ephemera}}
}}
{{#switch: {{lc:{{{energy}}}}}
| demonic = {{cat|Demonic ephemera}}
| divine = {{cat|Divine ephemera}}
| primal = {{cat|Primal ephemera}}
| psychic = {{cat|Psychic ephemera}}
| sylvan = {{cat|Sylvan ephemera}}
| unattuned = {{cat|Unattuned ephemera}}
}}
}}
{{cat|Ephemera}}
</includeonly>
</includeonly>
<noinclude>==Usage==
<noinclude>==Usage==
Line 28: Line 46:
|energy=
|energy=
|description=
|description=
|location=
}}
}}
</pre>
</pre>
==Notes==
* The name parameter is optional, to be used if page name does not match the name of the ephemeron.
* Location supports multiple values (comma-delimited).
{{cat|Templates}}</noinclude>
{{cat|Templates}}</noinclude>

Latest revision as of 17:36, 19 August 2022

Usage

A template for details about Ephemera.

{{Ephemera
  |name=
  |rarity=
  |class=
  |energy=
  |description=
  |location=
}}

Notes

  • The name parameter is optional, to be used if page name does not match the name of the ephemeron.
  • Location supports multiple values (comma-delimited).