Template:Kbd: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(Created template for styling keyboard-buttons)
 
(Adjusted design and added a bigger example)
 
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|<kbd style="margin: 0px 0.1em; padding: 0.1em 0.6em; border-radius: 3px; border: 1px solid rgb(204, 204, 204); color: rgb(51, 51, 51); line-height: 1.4; font-family: Arial,Helvetica,sans-serif; font-weight: bold; font-size: 14px; display: inline-block; box-shadow: 0px 1px 0px rgba(0,0,0,0.2), inset 0px 0px 0px 2px #ffffff; background-color: rgb(247, 247, 247); -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; -moz-border-radius: 3px; -webkit-border-radius: 3px; text-shadow: 0 1px 0 #fff;">{{{1}}}</kbd>|}}</includeonly><noinclude>
<includeonly>{{#if: {{{1|}}}|<kbd style="-moz-border-radius:3px;-moz-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;-webkit-border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;color:#333;display:inline-block;font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:1.4;margin:0 .1em;padding:.1em .6em;text-shadow:0 1px 0 #fff;">'''{{{1}}}'''</kbd>|}}</includeonly><noinclude>
== About ==
== About ==
Displays a key in a css-styled <code><nowiki><kbd></nowiki></code> tag, intended use in [[Keyboard Shortcuts]]. This template (with its massivly ugly inline-css) will become obsolete as soon as the kbd-styling is globally updated ( https://www.mediawiki.org/wiki/MediaWiki:Gadget-site.css ).
Displays a key in a css-styled <code><nowiki><kbd></nowiki></code> tag, intended use in [[Keyboard Shortcuts]]. This template (with its massivly ugly inline-css) will become obsolete as soon as the kbd-styling is globally updated ( https://www.mediawiki.org/wiki/MediaWiki:Gadget-site.css ).
Line 26: Line 26:
<pre>Using {{Kbd|Shift}} + {{Kbd|B}} you can put the item in your backpack.</pre>
<pre>Using {{Kbd|Shift}} + {{Kbd|B}} you can put the item in your backpack.</pre>
Using {{Kbd|Shift}} + {{Kbd|B}} you can put the item in your backpack.
Using {{Kbd|Shift}} + {{Kbd|B}} you can put the item in your backpack.
=== A list of things ===
* {{Kbd|Shift}}+{{Kbd|Click}} &rarr; Examine something.
* {{Kbd|Shift}}+{{Kbd|Middle Click}} &rarr; Point at something.
* {{Kbd|Alt}}+{{Kbd|Click a tile}} &rarr; Open a new tab with a list of all the items of the clicked tile next to you.
* {{Kbd|Alt}}+{{Kbd|Click a PDA}} &rarr; Remove the ID from the PDA.
* {{Kbd|Alt}}+{{Kbd|Click a locker}} &rarr; Lock the locker.
* {{Kbd|Alt}}+{{Kbd|Click a clothing}} &rarr; Toggles any possible aesthetic settings (breath mask up/down, rolling down jumpsuit, buttons labcoat, flip baseball cap etc).
* {{Kbd|Alt}}+{{Kbd|Click a bag/container}} &rarr; Opens the container. also works on things that are in another container.
* {{Kbd|Alt}}+{{Kbd|Click a vent or scrubber}} &rarr; Crawl into the pipes if you have the "ventcrawl" ability. Monkeys, slimes and several other creatures can do this.
* {{Kbd|Alt}}+{{Kbd|Click a machine}}
** [[File:Microwave.png]][[Guide_to_food#Microwave_Oven|Microwave]] &rarr; Turns the microwave on.
** [[File:Dispenser.png]][[Guide_to_chemistry#Chemistry_Dispensers|Chem Dispenser]], [[File:Chemical_Heater.png]][[Guide_to_chemistry#Chemical_Heater|Chemical Heater]], [[File:Mixer.png]][[Guide_to_chemistry#ChemMaster_3000|ChemMaster 3000]] or [[File:Pandm.gif]][[Virus#PanD.E.M.I.C_2200|PanD.E.M.I:C]] &rarr; Ejects any loaded beaker.
* {{Kbd|Control}}+{{Kbd|Click}} &rarr; Pull an object or person you're standing next to.
* {{Kbd|Control}}+{{Kbd|Click a [[PDA]]}} &rarr; Take out pen.
* {{Kbd|Control}}+{{Kbd|Up/Down}} &rarr; In your text bar will shift through the history of everything you've entered in the red bar at the bottom.
* {{Kbd|Delete}} &rarr; Stop pulling.
* {{Kbd|F12}} &rarr; Toggle minimal HUD.
* {{Kbd|Tab}} &rarr; Toggle between [[#Hotkey-mode_Enabled|hotkey]] and normal mode. While in [[#Hotkey-mode_Enabled|hotkey]] mode, WASD will move your character.
* {{Kbd|Spacebar}} &rarr; While entering commands auto-completes them.
* {{Kbd|Ctrl}}+{{Kbd|W}} or {{Kbd|End}}&rarr; Toggle [[Throw|throwing]] mode.
* {{Kbd|Ctrl}}+{{Kbd|A}} or {{Kbd|Page Down}} &rarr; Use the object in your active hand.
* {{Kbd|Ctrl}}+{{Kbd|S}} or {{Kbd|Page Up}} or {{Kbd|Numpad 9}} or {{Kbd|Middle Mouse Button}} &rarr; Switch your active hand.
* {{Kbd|Ctrl}}+{{Kbd|D}} or {{Kbd|Home}} or {{Kbd|Numpad 7}} &rarr; Drop the item in your active hand.
* {{Kbd|Insert}} or {{Kbd|Numpad 0}} &rarr; Cycle through [[Intent|intent]]s.
* {{Kbd|Click empty floor tile with empty hand}} &rarr; Drag any pulled object to the clicked floortile if possible.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 15:53, 5 May 2020

About

Displays a key in a css-styled <kbd> tag, intended use in Keyboard Shortcuts. This template (with its massivly ugly inline-css) will become obsolete as soon as the kbd-styling is globally updated ( https://www.mediawiki.org/wiki/MediaWiki:Gadget-site.css ).

Parameter-Usage

Parameter Default Description
1 Title of the button

Examples

Bare

{{Kbd}}


Normal

{{Kbd|Shift}} + {{Kbd|E}}

Shift + E

In a sentence

Using {{Kbd|Shift}} + {{Kbd|B}} you can put the item in your backpack.

Using Shift + B you can put the item in your backpack.

A list of things

  • Shift+Click → Examine something.
  • Shift+Middle Click → Point at something.
  • Alt+Click a tile → Open a new tab with a list of all the items of the clicked tile next to you.
  • Alt+Click a PDA → Remove the ID from the PDA.
  • Alt+Click a locker → Lock the locker.
  • Alt+Click a clothing → Toggles any possible aesthetic settings (breath mask up/down, rolling down jumpsuit, buttons labcoat, flip baseball cap etc).
  • Alt+Click a bag/container → Opens the container. also works on things that are in another container.
  • Alt+Click a vent or scrubber → Crawl into the pipes if you have the "ventcrawl" ability. Monkeys, slimes and several other creatures can do this.
  • Alt+Click a machine
  • Control+Click → Pull an object or person you're standing next to.
  • Control+Click a PDA → Take out pen.
  • Control+Up/Down → In your text bar will shift through the history of everything you've entered in the red bar at the bottom.
  • Delete → Stop pulling.
  • F12 → Toggle minimal HUD.
  • Tab → Toggle between hotkey and normal mode. While in hotkey mode, WASD will move your character.
  • Spacebar → While entering commands auto-completes them.
  • Ctrl+W or End→ Toggle throwing mode.
  • Ctrl+A or Page Down → Use the object in your active hand.
  • Ctrl+S or Page Up or Numpad 9 or Middle Mouse Button → Switch your active hand.
  • Ctrl+D or Home or Numpad 7 → Drop the item in your active hand.
  • Insert or Numpad 0 → Cycle through intents.
  • Click empty floor tile with empty hand → Drag any pulled object to the clicked floortile if possible.