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
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>
<!-- Shortcut 1 -->
<noinclude>
<li>{{{1}}}</li>
'''Template:Shortcut'''


This template displays one or more shortcut links in a small box floated to the right of a page.
<!-- Shortcut 2 (shows only if filled) -->
{{#ifexpr: {{#len:{{{2|}}}}} > 0 | <li>{{{2}}}</li> }}


== Usage ==
<!-- Shortcut 3 -->
Basic:
{{#ifexpr: {{#len:{{{3|}}}}} > 0 | <li>{{{3}}}</li> }}
<pre>
{{shortcut|MV:ABOUT}}
</pre>


Multiple:
<!-- Shortcut 4 -->
<pre>
{{#ifexpr: {{#len:{{{4|}}}}} > 0 | <li>{{{4}}}</li> }}
{{shortcut|MV:ABOUT|MV:A|ABOUT}}
</pre>


== Parameters ==
<!-- Shortcut 5 -->
* <code>1</code> – first shortcut (required)
{{#ifexpr: {{#len:{{{5|}}}}} > 0 | <li>{{{5}}}</li> }}
* <code>2</code> – second shortcut (optional)
* <code>3</code> – third shortcut (optional)
* <code>4</code>, <code>5</code> – additional shortcuts


</noinclude>
</ul>
</div>

Revision as of 01:25, 19 November 2025

Shortcut:

  • {{{1}}}
  • Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{".