Template:ArtifactSummary: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<includeonly><!-- -->{{#cargo_query: tables = Artifact = A, Translation = T | join on = A.id = T.target_id | where = A.id = {{{id}}} AND T.type = 'artifact' | fields = H.id = id, T.name = name, T.description = description, T.language = lang | format = template | template = ArtifactSummary/base | named args = yes | default = {{Label|none|{{{lang|en}}}|nolink}} }}<!-- ######################################################..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
     Artifact = A,
     Artifact = A,
     Translation = T
     Translation = T
| join on =
|join on =
     A.id = T.target_id
     A.id = T.target_id
| where =
|where =
     A.id = {{{id}}}
     A.id = '{{{id}}}'
    AND T.language = '{{{lang}}}'
     AND T.type = 'artifact'
     AND T.type = 'artifact'
| fields =
|fields =
     H.id = id,
     A.id = id,
     T.name = name,
     T.name = name,
     T.description = description,
     {{#if:{{{description|}}} | CONCAT("{{{description}}}") | T.description}} = description,
     T.language = lang
     T.language = lang,
| format =
    A.rarity = rarity,
    A.slot = slot
|format =
     template
     template
| template =
|template =
     ArtifactSummary/base
     ArtifactSummary/base
| named args =
|named args =
     yes
     yes
| default =
|default =
     {{Label|none|{{{lang|en}}}|nolink}}
     {{Label|none|{{{lang|en}}}|nolink}}
}}<!--
}}<!--
Line 51: Line 54:


{{Color|lime|Output:}} {{ArtifactSummary | id=foo}}
{{Color|lime|Output:}} {{ArtifactSummary | id=foo}}
----<!--=====================================================================-->
4. With {{b|description}}, to override the Cargo value:
{{Color|yellow|Input:}} <code><nowiki>{{ArtifactSummary | lang=en | id=cards_deck_artifact | description=foo}}</nowiki></code>
{{Color|lime|Output:}} {{ArtifactSummary | lang=en | id=cards_deck_artifact | description=foo}}


</noinclude>
</noinclude>

Latest revision as of 14:48, 28 June 2026


Displays brief information about an artifact.

Usage

1. English:

Input: {{ArtifactSummary | lang=en | id=cards_deck_artifact }}

Output:

Deck of Spells  — Rare Item
Makes all tier-1 spells available to the hero.

2. Japanese:

Input: {{ArtifactSummary | lang=ja | id=cards_deck_artifact }}

Output:

呪文札  — Rare Item
ヒーローがティア1の呪文をすべて使えるようになる。

3. When the id is wrong, the wiki_none text is displayed:

Input: {{ArtifactSummary | id=foo}}

Output: None


4. With description, to override the Cargo value:

Input: {{ArtifactSummary | lang=en | id=cards_deck_artifact | description=foo}}

Output:

Deck of Spells  — Rare Item
foo