Template:Sandbox/Aurelain/ArtifactSummary: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 61: Line 61:
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/ArtifactSummary | lang=en | id=cards_deck_artifact | description=foo}}</nowiki></code>
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/ArtifactSummary | lang=en | id=cards_deck_artifact | description=foo}}</nowiki></code>


{{Color|lime|Output:}} {{Sandbox/Aurelain/ArtifactSummary | lang=en | id=cards_deck_artifact | description=foo}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/ArtifactSummary | lang=en | id=cards_deck_artifact | description=f"o"o}}


</noinclude>
</noinclude>

Revision as of 13:59, 28 June 2026


Displays brief information about an artifact.

Usage

1. English:

Input: {{Sandbox/Aurelain/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: {{Sandbox/Aurelain/ArtifactSummary | lang=ja | id=cards_deck_artifact }}

Output:

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

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

Input: {{Sandbox/Aurelain/ArtifactSummary | id=foo}}

Output: None


4. With description, to override the Cargo value:

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

Output:

Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"o") AS `description`,`T`.`language` AS `lang`,`A`.`rarity` AS `rarity`,`A`.`...' at line 1

Function: CargoSQLQuery::run Query: SELECT `T`.`_pageID` AS `cargo_backlink_page_id_T`,`A`.`_pageID` AS `cargo_backlink_page_id_A`,`A`.`id` AS `id`,`T`.`name` AS `name`,CONCAT("f"o"o") AS `description`,`T`.`language` AS `lang`,`A`.`rarity` AS `rarity`,`A`.`slot` AS `slot` FROM `mw4v_cargo__Artifact` `A` LEFT OUTER JOIN `mw4v_cargo__Translation` `T` ON ((`A`.`id`=`T`.`target_id`)) WHERE `A`.`id` = 'cards_deck_artifact'

   AND `T`.`language` = 'en'
   AND `T`.`type` = 'artifact'  ORDER BY `T`.`_pageID`,`A`.`_pageID`,`A`.`id`,`T`.`name`,CONCAT("f"o"o") LIMIT 100