Jump to content

Template:Shortcut: Difference between revisions

From MicroVault
Created page with "<includeonly> <div style="float: right; clear: right; margin: 0 0 0.5em 1em; border: 1px solid #ccc; padding: 0.4em 0.6em; background: #f9f9f9; font-size: 90%; border-radius: 4px;"> <b>Shortcut:</b> <ul style="margin: 0; padding-left: 1.2em;"> {{#if: {{{1|}}} | <li>[[{{{1}}}]]</li> }} {{#if: {{{2|}}} | <li>[[{{{2}}}]]</li> }} {{#if: {{{3|}}} | <li>[[{{{3}}}]]</li> }} {{#if: {{{4|}}} | <li>[[{{{4}}}]]</li> }} {{#if: {{{5|}}} | <li>[[{{{5}}}]]</li> }} </ul> </div></inclu..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<div style="float:right; clear:right; margin:0 0 0.5em 1em; padding:0.4em 0.6em; border:1px solid #ccc; background:#f9f9f9; font-size:90%; border-radius:4px;">
<div style="float: right; clear: right; margin: 0 0 0.5em 1em; border: 1px solid #ccc; padding: 0.4em 0.6em; background: #f9f9f9; font-size: 90%; border-radius: 4px;">
 
<b>Shortcut:</b>
<b>Shortcut:</b>
<ul style="margin: 0; padding-left: 1.2em;">
<ul style="margin:0; padding-left:1.2em;">
{{#if: {{{1|}}} | <li>[[{{{1}}}]]</li> }}
{{#if: {{{2|}}} | <li>[[{{{2}}}]]</li> }}
{{#if: {{{3|}}} | <li>[[{{{3}}}]]</li> }}
{{#if: {{{4|}}} | <li>[[{{{4}}}]]</li> }}
{{#if: {{{5|}}} | <li>[[{{{5}}}]]</li> }}
</ul>


</div></includeonly>
<li>{{{1}}}</li>
<noinclude>
<li>{{{2|}}}</li>
'''Template:Shortcut'''
<li>{{{3|}}}</li>
<li>{{{4|}}}</li>
<li>{{{5|}}}</li>


This template displays one or more shortcut links in a small box floated to the right of a page.
</ul>
 
</div>
== Usage ==
Basic:
<pre>
{{shortcut|MV:ABOUT}}
</pre>
 
Multiple:
<pre>
{{shortcut|MV:ABOUT|MV:A|ABOUT}}
</pre>
 
== Parameters ==
* <code>1</code> – first shortcut (required)
* <code>2</code> – second shortcut (optional)
* <code>3</code> – third shortcut (optional)
* <code>4</code>, <code>5</code> – additional shortcuts
 
</noinclude>

Latest revision as of 01:25, 19 November 2025

Shortcut:

  • {{{1}}}