Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Shortcut/doc: Difference between revisions

Template page
+cat moved from subject page
+template data
Line 1: Line 1:
{{TemplateBox
{{documentation subpage}}
|1=1
{|
|1d=Shortcut
|+ Usage
|1stat=required
|-
|2=2
!input
|2d=Second shortcut
!result
|2stat=optional-
|-
|3=3
|<code style="font-size:smaller">{{tlx|shortcut|COM:COM}}</code>
|3d=Second shortcut
|{{Shortcut text}}{{colon}}[[COM:COM]]
|3stat=optional-
|-
|name=Shortcut
|<code style="font-size:smaller">{{tlx|shortcut|COM:COM|CAT:CAT}}</code>
|desc=This template is primarily used on guideline and policy pages to show the shortest alias of a given page. For example, [[COM:VP]] redirects to [[Commons:Village Pump]].
|{{Shortcut text}}{{colon}}[[COM:COM]] · [[CAT:CAT]]
|namespace=Commons
|}
|usergroup=all
 
|usage-notes=
The output is shown with <code>class="coordinates"</code>, see [[mediawikiwiki:Help:Page status indicators]] for details. Localization by {{tl|Shortcut text}}.  
Please '''do not use''' this template on other templates, e.g. to state that the shortcut to [[Template:Foo]] is in fact <nowiki>{{Foo}}</nowiki>. There's no need to state the obvious like that, '''each''' template uses its own name as a shortcut, by default.
 
|type=marker
See also {{tl|Shortcut2}} to produce a box floating right, and {{tl|Redirects}} for redirects to templates.
|example=
----
|i18n-method=-
<templatedata>
|i18n-desc=Localization is via {{tl|Shortcut text}}.
{ "description": "One or two shortcuts for the given page or section",
|seealso=* {{tl|Shortcut2}} produces a box floating to the right
"params":
* {{tl|Redirects}} aka [[Template:Template shortcut]]
{ "1":
|setscats=
{ "type": "wiki-page-name",
|lines=one
"description": "1st shortcut",
|shorthand=
"required": true
|relieson={{tl|shortcut text}}
},
}}<includeonly>
"2":
{ "type": "wiki-page-name",
"description": "2nd shortcut"
} } }</templatedata><includeonly>
[[Category:Header templates]]
[[Category:Header templates]]
[[Category:Internationalised header templates]]
[[Category:Internationalised header templates]]
</includeonly>
</includeonly>

Revision as of 05:03, 24 April 2015

Usage
input result
{{shortcut|COM:COM}} Shortcut: COM:COM
{{shortcut|COM:COM|CAT:CAT}} Shortcut: COM:COM · CAT:CAT

The output is shown with class="coordinates", see mediawikiwiki:Help:Page status indicators for details. Localization by {{Shortcut text}}.

See also {{Shortcut2}} to produce a box floating right, and {{Redirects}} for redirects to templates.


One or two shortcuts for the given page or section

Template parameters

ParameterDescriptionTypeStatus
11

1st shortcut

Page namerequired
22

2nd shortcut

Page nameoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.