<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AShortcut_compact%2Fdoc</id>
	<title>Template:Shortcut compact/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AShortcut_compact%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Shortcut_compact/doc&amp;action=history"/>
	<updated>2026-10-31T16:19:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Shortcut_compact/doc&amp;diff=120123&amp;oldid=prev</id>
		<title>Wikipedia&gt;Oklopfer: +data for new params</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Shortcut_compact/doc&amp;diff=120123&amp;oldid=prev"/>
		<updated>2026-09-30T15:37:10Z</updated>

		<summary type="html">&lt;p&gt;+data for new params&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{tsh|Csh|Hsh}}&lt;br /&gt;
{{tl|Shortcut compact}} is a compact version of the {{Tl|shortcut}} template, for use in vertically-constrained locations, such as alongside [[Help:List|list]] items. &lt;br /&gt;
&lt;br /&gt;
It flows to the right of the page, displaying all the shortcuts in a single line of text. &lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Usage is similar to the {{tl|shortcut}} template, see full documentation there. 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 {{Tl|shortcut}} if you need to display more than two shortcuts in the same box.&lt;br /&gt;
&lt;br /&gt;
Originally this template is for use on the [[WP:EIW|Editor&amp;#039;s index]], which needs to display shortcuts alongside list items and subitems which are vertically close together. The goal is to make the Editor&amp;#039;s index more useful as a tool for answering questions, for example on the [[WP:HD|Help desk]]. A user can look up entries on the Editor&amp;#039;s index, copy the relevant shortcuts, and paste them into [[Help:Link|links]] in replies to Help desk questions. &lt;br /&gt;
&lt;br /&gt;
The template may be useful on other pages where multiple shortcut boxes would crowd together vertically.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Result&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{tlc|{{BASEPAGENAME}}|WP:V}}&lt;br /&gt;
| {{{{BASEPAGENAME}}|WP:V}}&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{tlc|{{BASEPAGENAME}}|WP:V|WP:VERIFY|WP:SOURCE}}&lt;br /&gt;
| {{{{BASEPAGENAME}}|WP:V|WP:VERIFY|WP:SOURCE}}&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{tlc|{{BASEPAGENAME}}|csh|hsh|template{{=}}y}}&lt;br /&gt;
| {{{{BASEPAGENAME}}|csh|hsh|template=y}}&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{tlc|{{BASEPAGENAME}}|csh|hsh|template{{=}}y|subst{{=}}y}}&lt;br /&gt;
| {{{{BASEPAGENAME}}|csh|hsh|template=y|subst=y}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
An example showing how to use the template in a list:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Result&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;* A list item&lt;br /&gt;
* Another list item&lt;br /&gt;
** A subitem &lt;br /&gt;
** Learning: {{Shortcut compact|WP:EIW#Learn}}&lt;br /&gt;
*** A subsubitem about learning&lt;br /&gt;
*** Another subsubitem&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
* A list item&lt;br /&gt;
* Another list item&lt;br /&gt;
** A subitem &lt;br /&gt;
** Learning: {{Shortcut compact|WP:EIW#Learn}}&lt;br /&gt;
*** A subsubitem about learning&lt;br /&gt;
*** Another subsubitem&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Anchors ==&lt;br /&gt;
&lt;br /&gt;
Unlike {{Tl|Shortcut}}, this template does not place anchors automatically at its location. To enable displayed shortcuts to link to positions other than section heading names, use the {{Tl|Anchor}} template alongside this template.&lt;br /&gt;
&lt;br /&gt;
Adding an anchor automatically tends not to work correctly when the displayed shortcut itself contains a [[fragment identifier]] (an anchor name after a [[number sign]] character), since the anchor should only consist of the fragment identifier, but the template cannot parse out the fragment from the rest of the displayed shortcut string. Automatic anchor insertion works best for top-of-page shortcuts which do not normally display fragment identifiers, the kind that {{Tl|Shortcut}} is intended to display. &lt;br /&gt;
&lt;br /&gt;
Displaying shortcuts with fragment identifiers saves a lot of work for a long page with many section-specific or list-item-specific shortcuts, since one shortcut page provides a [[Help:Redirect|redirect]] that can then link to any anchor on the target page via a fragment identifier. &lt;br /&gt;
&lt;br /&gt;
== Portability notes ==&lt;br /&gt;
&lt;br /&gt;
This template uses HTML table code, which may create problems on non-Wikimedia Foundation wikis that are not running HTML Tidy. The template itself generally works when a page transcludes it, but may cause problems if you use it inside another template that uses parser functions. See:&lt;br /&gt;
&lt;br /&gt;
* [[Wikipedia:WikiProject Transwiki#Special templates]] - an explanation of the problem.&lt;br /&gt;
* [[Wikipedia:WikiProject Transwiki/Template:Shortcut compact]] - a portable version of this template that uses wikitext table code. (Unfortunately, the portable version is not compatible with nested list sub-items.)&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Shortcut&amp;quot;,&lt;br /&gt;
			&amp;quot;aliases&amp;quot;: [&lt;br /&gt;
				&amp;quot;2&amp;quot;,&lt;br /&gt;
                &amp;quot;3&amp;quot;,&lt;br /&gt;
				&amp;quot;4&amp;quot;,&lt;br /&gt;
                &amp;quot;5&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;The shortcut(s) to display. May provide up to 5 shortcuts.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;template&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Use template syntax?&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;If set to a truthy value, will wrap the shortcut(s) around curly brackets: {{Example}}.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;subst&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Use subst: prefix?&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: &amp;quot;If both this parameter and \&amp;quot;template\&amp;quot; are set to truthy values, will wrap the shortcut(s) around curly brackets and display the substitution prefix: {{subst:Example}}.&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Shortcut templates}}&lt;br /&gt;
* [[Wikipedia:Editor&amp;#039;s index to Wikipedia]] - a page that uses this template extensively.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Shortcut templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Oklopfer</name></author>
	</entry>
</feed>