Template:Claimshield: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Dejey
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..."
 
imported>Dejey
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{construction}}
<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>
<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.


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 unnamed param: sets the tooltip/alt text. Defaults to "Claim Shield".
* 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===


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


Claim Shield using "Claim Shield active on HorizonXI" as the optional parameter <nowiki>{{ClaimShield|Claim Shield active on HorizonXI}}</nowiki>
Custom tooltip:
<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>


use with Template:TableMobLine-NM
<noinclude>
<b><br><nowiki>
===Optional styling (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)}}
If you want this to line up neatly with text, add something like this to [[MediaWiki:Common.css]]:
</nowiki></b>
<pre>
{{TableMobHeader-NM}}
.horizon-claimshield img {
vertical-align: text-bottom;
margin-left: .25em;
height: 16px; /* adjust if your icon is larger/smaller */
}
</pre>


{{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 for VisualEditor -->
<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


Error creating thumbnail: File missing 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 Error creating thumbnail: File missing

A, T(S)