Difference between revisions of "Template:Disambigentry/sandbox"
GrampaSwood (talk | contribs) m (May be support for section links?) |
GrampaSwood (talk | contribs) m (test) |
||
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> | + | [[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}} | {{doc begin}} | ||
== Usage == | == Usage == |
Revision as of 21:43, 27 December 2023
[[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=<page name>}}
{{de}}
also works!
For usage on disambiguations, automatically adds link + item icon.
Parameters
- 1
- Uses
{{item link}}
, anything that can be used with that can be used with this. If argument "icon-override" is used, removes{{item link}}
usage and requires "l1" argument to display translated names.
- l1
- Used to override the display text for the text link.
- icon-override
- Optional, used to override the default item icon (for usage on non-items). If used, removes the usage of
{{item link}}
.
- size
- Optional, same as size argument from
{{item icon}}
, defaults to 64px.
- link
- Optional, used to add a link to the image (for usage on non-items). Automatically links to non-English pages.
Example
{{Disambigentry|Bat}}
generates Bat.
{{Disambigentry|icon-override=Standard icon RED Bat.png|link=Bat/nl|size=70px}}
generates Bat