Template:Key: Difference between revisions

From Subnautica Wiki
(Changing <span> to the semantic tag <kbd>.)
(Removing optional parameters for subscript and superscript. See Template talk:Key#Color variations (Edit: plus other oddities and suggestions for change))
Line 1: Line 1:
<onlyinclude><kbd style="position:relative; background-color:#272727;color:white;padding:1px 4px;border:2px solid #aaadb4;border-radius:5px;font-size:12px;">{{#switch:{{{1}}}|Up=[[File:Uparrow.png|x12px|link=]]|Down=[[File:Downarrow.png|x12px|link=]]|{{{1|E}}}}}{{#if:{{{2|}}}|<span style="position:absolute; top:-17px; left:{{#switch:{{{2}}}|Impact|Puncture|Slash|Cold|Freeze|Electric|Electricity|Heat|Fire|Toxin|Poison|Blast|Corrosive|Gas|Magnetic|Radiation|Viral=3|1200%|2400%|1600%=-3|-1}}px;color:black;font-size:8px;">{{#switch:{{{2}}}|Impact|Puncture|Slash|Cold|Freeze|Electric|Electricity|Heat|Fire|Toxin|Poison|Blast|Corrosive|Gas|Magnetic|Radiation|Viral={{Icon|Proc|{{{2}}}|imgsize=x8}}|{{{2|}}}}}</span>}}{{#if:{{{3|}}}|<span style="position:absolute; top:11px; left:3px;color:black;font-size:8px;">{{#switch:{{{3}}}|Impact|Puncture|Slash|Cold|Freeze|Electric|Electricity|Heat|Fire|Toxin|Poison|Blast|Corrosive|Gas|Magnetic|Radiation|Viral={{Icon|Proc|{{{3}}}|imgsize=x8}}|{{{3|}}}}}</span>}}</kbd></onlyinclude>
<onlyinclude><kbd style="position:relative; background-color:#272727;color:white;padding:1px 4px;border:2px solid #aaadb4;border-radius:5px;font-size:12px;">{{#switch:{{{1}}}|Up=[[File:Uparrow.png|x12px|link=]]|Down=[[File:Downarrow.png|x12px|link=]]|{{{1|E}}}}}</kbd></onlyinclude>


[[Category:Key Template]]
[[Category:Key Template]]

Revision as of 04:46, 13 January 2019

E

{{Key}} prints as E and {{Key|W}} prints as W. The template allows any letter as a parameter.
{{Key|Up}} and {{Key|Down}} prints as Uparrow.png and Downarrow.png respectively.
{{Key|E|200%|2X}} prints as E. The superscript and subscript refers to the damage dealt and the amount of hits respectively.

PS4 X O ☐ △ buttons can be found here:

Xbox A B X Y buttons can be found here:

Switch A B X Y buttons can be found here: