https://wiki.openmw.org/index.php?title=Template:Kbd&feed=atom&action=historyTemplate:Kbd - Revision history2024-03-28T11:40:43ZRevision history for this page on the wikiMediaWiki 1.39.3https://wiki.openmw.org/index.php?title=Template:Kbd&diff=3952&oldid=prevDarklocq: typo2017-08-15T16:13:33Z<p>typo</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:13, 15 August 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l20">Line 20:</td>
<td colspan="2" class="diff-lineno">Line 20:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The template need not be used when what is to be inserted is a variable, though these can be nested, if you want to bother with that level of semantic perfection. E.g.:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The template need not be used when what is to be inserted is a variable, though these can be nested, if you want to bother with that level of semantic perfection. E.g.:</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><blockquote><code><nowiki>Add a <code>data=<<del style="font-weight: bold; text-decoration: none;">samp</del>><var>/path/to/your/mods/</var>Monster Island 1.0</<del style="font-weight: bold; text-decoration: none;">samp</del>></code> entry in <samp>openmw.cfg</samp>.</nowiki></code></blockquote></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><blockquote><code><nowiki>Add a <code>data=<<ins style="font-weight: bold; text-decoration: none;">kbd</ins>><var>/path/to/your/mods/</var>Monster Island 1.0</<ins style="font-weight: bold; text-decoration: none;">kbd</ins>></code> entry in <samp>openmw.cfg</samp>.</nowiki></code></blockquote></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>produces:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>produces:</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><blockquote>Add a <code>data=<<del style="font-weight: bold; text-decoration: none;">samp</del>><var>/path/to/your/mods/</var>Monster Island 1.0</<del style="font-weight: bold; text-decoration: none;">samp</del>></code> entry in <samp>openmw.cfg</samp>.</blockquote></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><blockquote>Add a <code>data=<<ins style="font-weight: bold; text-decoration: none;">kbd</ins>><var>/path/to/your/mods/</var>Monster Island 1.0</<ins style="font-weight: bold; text-decoration: none;">kbd</ins>></code> entry in <samp>openmw.cfg</samp>.</blockquote></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>For program, script, CS, or OS {{em|output}}, see <code><nowiki>{{</nowiki>[[Template:Samp|samp]]<nowiki>}}</nowiki></code>.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>For program, script, CS, or OS {{em|output}}, see <code><nowiki>{{</nowiki>[[Template:Samp|samp]]<nowiki>}}</nowiki></code>.</div></td></tr>
</table>Darklocqhttps://wiki.openmw.org/index.php?title=Template:Kbd&diff=3951&oldid=prevDarklocq: ce2017-08-15T16:11:33Z<p>ce</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:11, 15 August 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Documentation ==</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Documentation ==</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>This is a convenient template wrapper for the <code><nowiki><kbd>...</kbd></nowiki></code> HTML element, the proper markup for {{samp|user input}}, broadly defined. It is rendered in monospace by most browsers, and sometimes with some letter-spacing kerning to make it slightly wider than the appearance of <code><nowiki><code>...</code></nowiki></code> and <code><nowiki><samp>...</samp></nowiki></code> (wiki.OpenMW.org is not presently doing that spacing stylization, but this could change). This can be used in running text or inside <code><nowiki><code>...</code></nowiki></code>.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>This is a convenient template wrapper for the <code><nowiki><kbd>...</kbd></nowiki></code> HTML element, the proper markup for{{samp| user input}}, broadly defined. It is rendered in monospace by most browsers, and sometimes with some letter-spacing kerning to make it slightly wider than the appearance of <code><nowiki><code>...</code></nowiki></code> and <code><nowiki><samp>...</samp></nowiki></code> (wiki.OpenMW.org is not presently doing that spacing stylization, but this could change). This can be used in running text or inside <code><nowiki><code>...</code></nowiki></code>.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>It is usually used for:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>It is usually used for:</div></td></tr>
</table>Darklocqhttps://wiki.openmw.org/index.php?title=Template:Kbd&diff=3949&oldid=prevDarklocq: creating template2017-08-15T16:09:28Z<p>creating template</p>
<p><b>New page</b></p><div><kbd>{{{1|<noinclude>input</noinclude>}}}</kbd><noinclude><br />
<br />
== Documentation ==<br />
<br />
This is a convenient template wrapper for the <code><nowiki><kbd>...</kbd></nowiki></code> HTML element, the proper markup for {{samp|user input}}, broadly defined. It is rendered in monospace by most browsers, and sometimes with some letter-spacing kerning to make it slightly wider than the appearance of <code><nowiki><code>...</code></nowiki></code> and <code><nowiki><samp>...</samp></nowiki></code> (wiki.OpenMW.org is not presently doing that spacing stylization, but this could change). This can be used in running text or inside <code><nowiki><code>...</code></nowiki></code>.<br />
<br />
It is usually used for:<br />
* Material inserted or keys pressed, e.g. in response to a prompt, by the user (in running text or in code examples).<br />
* Specific keystrokes (in running text), e.g. "the <kbd>Left-Shift</kbd> key", or "press {{kbd|Ctrl-V}} (in Mac OS: {{kbd|Cmd-V}}) to paste".<br />
** This can also be done with controller/joystick keys; there are Unicode characters for them: {{kbd|×}}, {{kbd|○}}, {{kbd|△}}, {{kbd|□}}.<br />
** If we want to, we can borrow Wikipedia's [https://en.wikipedia.org/wiki/Template:Key_press Template:Key_press], which actually makes them look like keys, with CSS borders and such. In the interim, just use the current template for this.<br />
<br />
It is best to consistently use this template or its underlying element for user input and key presses, rather than overload the use of the <code><nowiki><code>...</code></nowiki></code> element, because that element on many wikis (including this one) is given a background color and a border, and this can be distracting in running text, especially when used for a single short string. In code, it also doesn't make sense to nest two <code><nowiki><code>...</code></nowiki></code> elements, but it often does make sense to mark input as such within blocks of "code" in a lose sense of that word.<br />
<br />
'''Usage:'''<br />
<br />
<blockquote><code><nowiki>{{kbd|the input here}}</nowiki></code></blockquote><br />
<br />
If the content contains a <code>=</code> character, the parameter must be named (as <code><nowiki>|1=</nowiki></code>), but this is unlikely to arise.<br />
<br />
The template need not be used when what is to be inserted is a variable, though these can be nested, if you want to bother with that level of semantic perfection. E.g.:<br />
<blockquote><code><nowiki>Add a <code>data=<samp><var>/path/to/your/mods/</var>Monster Island 1.0</samp></code> entry in <samp>openmw.cfg</samp>.</nowiki></code></blockquote><br />
produces:<br />
<blockquote>Add a <code>data=<samp><var>/path/to/your/mods/</var>Monster Island 1.0</samp></code> entry in <samp>openmw.cfg</samp>.</blockquote><br />
<br />
For program, script, CS, or OS {{em|output}}, see <code><nowiki>{{</nowiki>[[Template:Samp|samp]]<nowiki>}}</nowiki></code>.<br />
<br />
These templates should not be used as a way to just get monospaced font for some other purpose; use <code><nowiki><span style="font-family: monospace;">...</span></nowiki></code>.<br />
<br />
[[Category:Templates]]<br />
</noinclude></div>Darklocq