Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Template:Shortcut compact"

From Appropedia
Jump to: navigation, search
 
(go back to using Wikipedia's HTML table code, as the wikitext table code that is safe to use inside other complex templates breaks inside nested list items)
 
Line 1: Line 1:
{| class="shortcutbox shortcutbox-compact noprint" style="clear:right; float:right; border:1px solid #aaa; background:#fff; margin: 0.1em 0.1em 0.1em 0.1em; padding:1px; text-align:center;"
+
<table class="shortcutbox shortcutbox-compact noprint" style="clear:right; float:right; border:1px solid #aaa; background:#fff; margin: 0.1em 0.1em 0.1em 0.1em; padding:1px; text-align:center;"><tr><th><small>'''&nbsp;[[Appropedia:Shortcuts|Shortcut{{#if:{{{2|}}}|s}}]]: &nbsp;&nbsp;{{#if:{{{1|}}}|[[{{{1}}}]] }}{{#if:{{{2|}}}|&nbsp;&nbsp; [[{{{2}}}]] }}{{#if:{{{3|}}}|&nbsp;&nbsp; [[{{{3}}}]] }}{{#if:{{{4|}}}|&nbsp;&nbsp; [[{{{4}}}]] }}{{#if:{{{5|}}}|&nbsp;&nbsp; [[{{{5}}}]] }}&nbsp;'''</small></table><noinclude>
{{!}}-
+
! <small>'''&nbsp;[[Appropedia:Shortcuts|Shortcut{{#if:{{{2|}}}|s}}]]: &nbsp;&nbsp;{{#if:{{{1|}}}|[[{{{1}}}]] }}{{#if:{{{2|}}}|&nbsp;&nbsp; [[{{{2}}}]] }}{{#if:{{{3|}}}|&nbsp;&nbsp; [[{{{3}}}]] }}{{#if:{{{4|}}}|&nbsp;&nbsp; [[{{{4}}}]] }}{{#if:{{{5|}}}|&nbsp;&nbsp; [[{{{5}}}]] }}&nbsp;'''</small>
+
{{!}}-
+
|}<noinclude>
+
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 05:44, 4 April 2011

 Shortcut:    
[view] [edit] [history] [purge] Documentation icon Template documentation

{{Shortcut compact}} is a compact version of the {{shortcut}} template, for use in vertically-constrained locations, such as alongside list items.

It flows to the right of the page, displaying all the shortcuts in a single line of text.

Usage[edit]

Usage is similar to the {{shortcut}} template; also see its documentation on Wikipedia. This template accepts up to five shortcuts as parameters. However, in most cases you will only want to display one or two shortcuts with this template, otherwise it may get too wide. Use {{shortcut}} if you need to display more than two shortcuts in the same box.

Originally this template was for use on the Editor's index to Wikipedia, which needs to display shortcuts alongside list items and subitems which are vertically close together. The goal was to make the Editor's index more useful as a tool for answering questions, for example on the Help desk. A user can look up entries on the Editor's index, copy the relevant shortcuts, and paste them into links in replies to Help desk questions.

The template may be useful on other pages where multiple shortcut boxes would crowd together vertically, and where the page contains multiple chunks of information that people would want to refer to in an easy way.

Examples[edit]

For examples, see the template documentation on Wikipedia. Due to an odd bug, the examples do not display correctly on the documentation subpage of a template. The template works correctly on a "normal" page, however.

See also[edit]

External links[edit]

Wikipedia
This page or section includes content from Wikipedia. The original article was at Template:Shortcut compact. The list of authors can be seen in the history for that page. As with Appropedia, the text of Wikipedia is available under the CC-BY-SA.