Difference between revisions of "Template:Disambigentry/sandbox"
GrampaSwood (talk | contribs) m |
GrampaSwood (talk | contribs) m (Let's see how cool this is) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Complex template|user=GrampaSwood}}</noinclude>[[File:{{{icon-override|Item icon {{{1}}}.png}}}|link={{{link|{{{1}}}{{if lang}}}}}|{{{size|64px}}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{l1|{{{1}}}}}}]]|{{#if:{{{icon-override|}}}|[[{{{link|{{{1}}}}}}|{{{l1|{{{1}}}}}}]]|{{item link|{{{1}}}}}}}}}<noinclude> | + | <noinclude>{{Complex template|user=GrampaSwood}}</noinclude>[[File:{{#switch:{{{icon}}}|unusual=Viewmode unusual.png|community-map=Item icon Map Stamp - {{{1}}}.png|unknown=Unknown.png|scout-set=Backpack Curse-a-Nature.png|soldier-set=Backpack Tin Soldier.png|pyro-set=Backpack Infernal Imp.png|engineer-set=Backpack Brundle Bundle.png|heavy-set=Backpack FrankenHeavy.png|demoman-set=Backpack Highland Hound.png|medic-set=Backpack Mad Doktor.png|sniper-set=Backpack Camper Van Helsing.png|spy-set=Backpack Invisible Rogue.png|video=Camera.png|music|soundtrack=Fight Songs TMOTF2.jpg|#default={{{icon-override|Item icon {{{1}}}.png}}}}}|link={{{link|{{{1}}}{{if lang}}}}}|{{#switch:{{{size}}}|unusual|unknown|soundtrack=44px|#default={{{size|64px}}}}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{l1|{{{1}}}}}}]]|{{#if:{{{icon-override|}}}|[[{{{link|{{{1}}}}}}|{{{l1|{{{1}}}}}}]]|{{item link|{{{1}}}}}}}}}<noinclude> |
{{doc begin}} | {{doc begin}} | ||
== Usage == | == Usage == |
Revision as of 19:23, 6 March 2024
This template is very complex. If you have questions about this template, feel free to ask on the IRC. GrampaSwood has offered to maintain this template, you may contact them if you need further assistance. |
[[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" or "icon-override" 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
- Optional, 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