Difference between revisions of "Template talk:Key"

From OCE Space Simulation
Jump to: navigation, search
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
...What is this? [[User:Cslatlantis|---<font color="red">Wernstrum</font>, <font color="#0099CC">Stargakat</font>, <font color="green">Jonas</font>]] 10:47, 3 April 2010 (EDT)
 
...What is this? [[User:Cslatlantis|---<font color="red">Wernstrum</font>, <font color="#0099CC">Stargakat</font>, <font color="green">Jonas</font>]] 10:47, 3 April 2010 (EDT)
 
:I was thinking of trying to make some sort of template to indicate a key-press on the keyboard. This would be useful for the Procedures Project, if they decide to write procedures in excrutiating how-to detail, as opposed to organisational generality. It didn't exactly turn out how I wanted, but I'm not done yet. [[User:Stefanido|-- Stefanido]] 01:01, 6 April 2010 (EDT)
 
:I was thinking of trying to make some sort of template to indicate a key-press on the keyboard. This would be useful for the Procedures Project, if they decide to write procedures in excrutiating how-to detail, as opposed to organisational generality. It didn't exactly turn out how I wanted, but I'm not done yet. [[User:Stefanido|-- Stefanido]] 01:01, 6 April 2010 (EDT)
 +
::Works now. Seems like the particular function I needed was built into the .css of the wiki. However, Wikipedia has some awesomeness that I really want to add here. Unfortunately, our copy of mediawiki is a little outdated. [[User:Stefanido|-- Stefanido]] 12:37, 6 April 2010 (EDT)
 +
:::Woah.. I still don't quite understand. [[User:Cslatlantis|---<font color="red">Wernstrum</font>, <font color="#0099CC">Stargakat</font>, <font color="green">Jonas</font>]] 17:30, 16 April 2010 (EDT)
 +
::::See [[Talk:Stefan De Young#Sandbox]]. I have a couple of examples of what I have in mind there. [[User:Stefanido|-- Stefanido]] 21:40, 17 April 2010 (EDT)
 +
:::::Oh, so like, when you have instructions for, say the flight software, you want to tell the person to press the "s" key or the sequence "a,f,o,n" and you'll actually have a button shape there?[[User:Cslatlantis|---<font color="red">Wernstrum</font>, <font color="#0099CC">Stargakat</font>, <font color="green">Jonas</font>]] 21:58, 17 April 2010 (EDT)
 +
::::::Exactly. See {{procs|Cold Start}} for a more complete example. [[User:Stefanido|-- Stefanido]] 16:28, 20 April 2010 (EDT)
 +
 +
==Wikipedia Awesomeness==
 +
 +
We're going to need to update our version of MediaWiki and install the [http://www.mediawiki.org/wiki/Extension:ParserFunctions Parser Functions Extension] before we can use the awesomeness.
 +
 +
Copied from [http://en.wikipedia.org/wiki/Template:Keypress Wikipedia]
 +
{{'keypress/core| {{{1}}} }}<!--
 +
-->{{#if:{{{2|}}}| +{{'keypress/core| {{{2}}} }} }}<!--
 +
-->{{#if:{{{3|}}}| +{{'keypress/core| {{{3}}} }} }}<!--
 +
-->{{#if:{{{4|}}}| +{{'keypress/core| {{{4}}} }} }}<!--
 +
-->{{#if:{{{5|}}}| +{{'keypress/core| {{{5}}} }} }}<!--
 +
-->{{#if:{{{6|}}}| [[Category:Wikipedia keypress template parameter needs fixing]] }}<noinclude>
 +
The guts of this template are transcluded from [[Template:keypress/core]].
 +
 +
Note that I added apostrophes in front of the keypress/core template calls, so that it wouldn't be transcluded here a bunch of times.
 +
 +
[[User:Stefanido|-- Stefanido]] 12:39, 6 April 2010 (EDT)

Latest revision as of 16:28, 20 April 2010

...What is this? ---Wernstrum, Stargakat, Jonas 10:47, 3 April 2010 (EDT)

I was thinking of trying to make some sort of template to indicate a key-press on the keyboard. This would be useful for the Procedures Project, if they decide to write procedures in excrutiating how-to detail, as opposed to organisational generality. It didn't exactly turn out how I wanted, but I'm not done yet. -- Stefanido 01:01, 6 April 2010 (EDT)
Works now. Seems like the particular function I needed was built into the .css of the wiki. However, Wikipedia has some awesomeness that I really want to add here. Unfortunately, our copy of mediawiki is a little outdated. -- Stefanido 12:37, 6 April 2010 (EDT)
Woah.. I still don't quite understand. ---Wernstrum, Stargakat, Jonas 17:30, 16 April 2010 (EDT)
See Talk:Stefan De Young#Sandbox. I have a couple of examples of what I have in mind there. -- Stefanido 21:40, 17 April 2010 (EDT)
Oh, so like, when you have instructions for, say the flight software, you want to tell the person to press the "s" key or the sequence "a,f,o,n" and you'll actually have a button shape there?---Wernstrum, Stargakat, Jonas 21:58, 17 April 2010 (EDT)
Exactly. See Cold Start for a more complete example. -- Stefanido 16:28, 20 April 2010 (EDT)

Wikipedia Awesomeness

We're going to need to update our version of MediaWiki and install the Parser Functions Extension before we can use the awesomeness.

Copied from Wikipedia Template:'keypress/core{{#if:| +Template:'keypress/core }}{{#if:| +Template:'keypress/core }}{{#if:| +Template:'keypress/core }}{{#if:| +Template:'keypress/core }}{{#if:| }} The guts of this template are transcluded from Template:keypress/core.

Note that I added apostrophes in front of the keypress/core template calls, so that it wouldn't be transcluded here a bunch of times.

-- Stefanido 12:39, 6 April 2010 (EDT)