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 difference)
|
Revision as of 16:16, 25 October 2025
Usage
Use {{claimshield}} 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
link=: makes the icon clickable to a given wiki page. By default the icon is not a link.
Examples
Basic (default tooltip): {{claimshield}}
Custom tooltip: {{claimshield|immune to outside claims during window}}
Clickable to a page (e.g., Claim Shield): {{claimshield|details on claim shield|link=Claim Shield}}
Inline usage with a mob: [[Tiamat]] {{claimshield}}
Optional styling (Common.css)
If you want this to line up neatly with text, add something like this to MediaWiki:Common.css:
.horizon-claimshield img {
vertical-align: text-bottom;
margin-left: .25em;
height: 16px; /* adjust if your icon is larger/smaller */
}
<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>
