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 |
||
| Line 1: | Line 1: | ||
<includeonly |
<includeonly><span class="horizon-claimshield">[[File:ClaimShield.png |
||
|link={{{link|}}} |
|||
|alt={{{1|Claim Shield}}} |
|||
|title={{{1|Claim Shield}}} |
|||
|x16px |
|||
]]</span></includeonly><noinclude> |
|||
==Usage== |
==Usage== |
||
| Line 8: | Line 13: | ||
===Examples=== |
===Examples=== |
||
| ⚫ | |||
| ⚫ | |||
Basic (default tooltip): |
|||
| ⚫ | |||
| ⚫ | |||
Custom tooltip: |
|||
| ⚫ | |||
| ⚫ | |||
Clickable to a page (e.g., [[Claim Shield]]): |
|||
| ⚫ | |||
Inline usage with a mob: |
|||
| ⚫ | |||
<noinclude> |
|||
===Optional styling (Common.css)=== |
|||
If you want this to line up neatly with text, add something like this to [[MediaWiki:Common.css]]: |
|||
<pre> |
|||
.horizon-claimshield img { |
|||
vertical-align: text-bottom; |
|||
margin-left: .25em; |
|||
height: 16px; /* adjust if your icon is larger/smaller */ |
|||
} |
|||
</pre> |
|||
<!-- 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]] |
|||
</noinclude> |
|||
Revision as of 16:46, 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 with a mob: [[Tiamat]] {{claimshield}}