Difference between revisions of "Template:Disambigentry/sandbox"
(Redirected page to Template:Disambigentry/Sandbox) (Tag: New redirect) |
GrampaSwood (talk | contribs) m (Undo edit by Mgpt (Talk) (3607598) Please don't change this into a redirect for no reason, rather ask which one of the sandboxes should be kept as this one was much newer) (Tags: Removed redirect, Undo) |
||
Line 1: | Line 1: | ||
− | # | + | [[File:{{{icon-override|Item icon {{{1}}}.png}}}|link={{{link|{{{1}}}{{if lang}}}}}|{{{size|64px}}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{l1|{{{1}}}}}}]]|{{item link|{{{1}}}}}}}<noinclude> |
+ | {{doc begin}} | ||
+ | == Usage == | ||
+ | :<code><nowiki>{{Disambigentry|1|icon-override=<image name>.jpg/png|size=<number>px|link=<article link>}}</nowiki></code> | ||
+ | {{Note|<code><nowiki>{{de}}</nowiki></code> also works!}} | ||
+ | For usage on disambiguations, automatically adds link + item icon. | ||
+ | |||
+ | == Parameters == | ||
+ | ; 1 | ||
+ | : Name of the item, if "link" parameter is not used it defaults to using {{tl|item link}}. Also used for the displayed text, the item icon filename, the icon's link, and the default displayed text when using the "link" parameter. | ||
+ | |||
+ | :;l1 | ||
+ | : Optiona, used to override the displayed text for the text link. | ||
+ | |||
+ | ; icon-override | ||
+ | : Optional, used to override the default item icon (for usage on non-items). | ||
+ | |||
+ | ; size | ||
+ | : Optional, same as size argument from {{tl|item icon}}, defaults to 64px. | ||
+ | |||
+ | ; link | ||
+ | : Optional, used when the linked item is not compatible with {{tl|item link}}. Additionally, determines link on the icon and the link next to it. | ||
+ | |||
+ | == Example == | ||
+ | {{tlx|Disambigentry|Bat}} generates {{Disambigentry|Bat}}. | ||
+ | |||
+ | {{tlx|Disambigentry|Bat|2=icon-override=Standard icon RED Bat.png|3=link=Bat/nl|4=size=70px}} generates {{Disambigentry|Bat|icon-override=Standard icon RED Bat.png|link=Bat/nl|size=70px}} | ||
+ | |||
+ | </noinclude> |
Revision as of 22:12, 29 January 2024
[[File:Item icon {{{1}}}.png|link={{{1}}}|64px]] [[{{{1}}}|{{dictionary/items/{{{1}}}|null=|list=}}]]
Documentation for Disambigentry/sandbox
Usage
{{Disambigentry|1|icon-override=<image name>.jpg/png|size=<number>px|link=<article link>}}
{{de}}
also works!
For usage on disambiguations, automatically adds link + item icon.
Parameters
- 1
- Name of the item, if "link" parameter is not used it defaults to using
{{item link}}
. Also used for the displayed text, the item icon filename, the icon's link, and the default displayed text when using the "link" parameter.
- l1
- Optiona, used to override the displayed text for the text link.
- icon-override
- Optional, used to override the default item icon (for usage on non-items).
- size
- Optional, same as size argument from
{{item icon}}
, defaults to 64px.
- link
- Optional, used when the linked item is not compatible with
{{item link}}
. Additionally, determines link on the icon and the link next to it.
Example
{{Disambigentry|Bat}}
generates Bat.
{{Disambigentry|icon-override=Standard icon RED Bat.png|link=Bat/nl|size=70px}}
generates Bat