Template:Claimshield: Difference between revisions

From HorizonXI Wiki
(Created page with "<includeonly><onlyinclude><span class="horizon-claimshield">{{{1|Claim Shield}}}|alt={{{1|Claim Shield}}}|title={{{1|Claim Shield}}}|link={{{link|}}}</span></onlyinclude></includeonly> ==Usage== Use <nowiki>{{claimshield}}</nowiki> to mark enemies or sections that have a Claim Shield on HorizonXI. * Optional unnamed param: sets the tooltip/alt text. Defaults to "Claim Shield". * Optional named param <code>link=</code>: makes the icon clickable...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude><span class="horizon-claimshield">[[File:ClaimShield.png|{{{1|Claim Shield}}}|alt={{{1|Claim Shield}}}|title={{{1|Claim Shield}}}|link={{{link|}}}]]</span></onlyinclude></includeonly>
{{construction}}
<includeonly><onlyinclude><span class="horizon-claimshield">[[File:ClaimShield.png|{{{1|Claim Shield}}}|alt={{{1|Claim Shield}}}|link={{{link|}}}]]</span></onlyinclude></includeonly>
==Usage==
==Usage==


Use <nowiki>{{claimshield}}</nowiki> to mark enemies or sections that have a Claim Shield on HorizonXI.
Use <nowiki>{{ClaimShield}}</nowiki> to indicate that something (e.g., a mob, mechanic, or note) is affected by Claim Shield on HorizonXI.
The template uses an optional argument to display a tooltip/alt text.  


* Optional unnamed param: sets the tooltip/alt text. Defaults to "Claim Shield".
The icon is unclickable by default. There is an optional parameter "link" to make it clickable and direct to a given wiki page, which can be used when it makes sense.
* Optional named param <code>link=</code>: makes the icon clickable to a given wiki page. By default the icon is not a link.


===Examples===
===Examples===


Basic (default tooltip):
Claim Shield without using the optional parameter <nowiki>{{ClaimShield}}</nowiki> will default to "Claim Shield".
<nowiki>{{claimshield}}</nowiki>


Custom tooltip:
Claim Shield using "Claim Shield active on HorizonXI" as the optional parameter <nowiki>{{ClaimShield|Claim Shield active on HorizonXI}}</nowiki>
<nowiki>{{claimshield|immune to outside claims during window}}</nowiki>


Clickable to a page (e.g., [[Claim Shield]]):
Make the icon clickable to a specific page (e.g., mechanics explainer):
<nowiki>{{claimshield|details on claim shield|link=Claim Shield}}</nowiki>
<nowiki>{{ClaimShield|Claim Shield mechanic|link=Claim Shield}}</nowiki>


Inline usage with a mob:
Example inline usage:
<nowiki>[[Tiamat]] {{claimshield}}</nowiki>
[[Serket]]<nowiki>{{ClaimShield}}</nowiki>


<noinclude>
use with Template:TableMobLine-NM
===Optional styling (Common.css)===
<b><br><nowiki>
If you want this to line up neatly with text, add something like this to [[MediaWiki:Common.css]]:
{{TableMobLine-NM | claimshield= true |Name= Fafnir| Spawn= | Lvl= 88-90 | Drop= | Steal=   | Family=Wyrms| NumSpawns= {{Tooltip-NMMap|map= Dragons-aery NM.png|NM= Fafnir}} | Note=  A, T(S)}}
<pre>
</nowiki></b>
.horizon-claimshield img {
{{TableMobHeader-NM}}  
  vertical-align: text-bottom;
  margin-left: .25em;
  height: 16px; /* adjust if your icon is larger/smaller */
}
</pre>


<!-- TemplateData for VisualEditor -->
{{test | claimshield= true |Name= Fafnir| Spawn= | Lvl= 88-90 | Drop= | Steal=   | Family=Wyrms| NumSpawns=  {{Tooltip-NMMap|map= Dragons-aery NM.png|NM= Fafnir}} | Note=  A, T(S)}}
<templatedata>
{
   "description": "Inline Claim Shield marker for HorizonXI pages.",
  "params": {
    "1": {
      "label": "Tooltip text",
      "description": "Text shown on hover and used for accessibility.",
      "type": "string",
      "required": false,
      "default": "Claim Shield"
    },
    "link": {
      "label": "Link target",
      "description": "Wiki page to open when the icon is clicked. Leave blank to keep it unclickable.",
      "type": "wiki-page-name",
      "required": false
    }
  }
}
</templatedata>


[[Category:Templates]]
[[Category:Horizon Templates]]
</noinclude>

Latest revision as of 18:54, 25 October 2025


Construction.gif NOTICE: This article is currently undergoing construction by a single editor or group of editors.

Usage

Use {{ClaimShield}} to indicate that something (e.g., a mob, mechanic, or note) is affected by Claim Shield on HorizonXI. The template uses an optional argument to display a tooltip/alt text.

The icon is unclickable by default. There is an optional parameter "link" to make it clickable and direct to a given wiki page, which can be used when it makes sense.

Examples

Claim Shield without using the optional parameter {{ClaimShield}} will default to "Claim Shield".

Claim Shield using "Claim Shield active on HorizonXI" as the optional parameter {{ClaimShield|Claim Shield active on HorizonXI}}

Make the icon clickable to a specific page (e.g., mechanics explainer): {{ClaimShield|Claim Shield mechanic|link=Claim Shield}}

Example inline usage: Serket{{ClaimShield}}

use with Template:TableMobLine-NM
{{TableMobLine-NM | claimshield= true |Name= Fafnir| Spawn= | Lvl= 88-90 | Drop= | Steal= | Family=Wyrms| NumSpawns= {{Tooltip-NMMap|map= Dragons-aery NM.png|NM= Fafnir}} | Note= A, T(S)}}

Name Level Drops Steal Family Spawns Notes
Fafnir Claim Shield
88-90 Wyrms Fafnir Spawn Location

A, T(S)