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 text/doc: Difference between revisions

Template page
No edit summary
improve documentation, move category from main template page
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|name=Shortcut text
  |1        = 1
|desc="Shortcut" caption of shortcut templates
  |1label  = plural
|namespace=all
  |1d-en    = If it has any value, the text is “Shortcuts” instead of “Shortcut”
|usergroup=all
  |1aliases = <!-- List of aliases, separated by / (a slash) -->
|usage-notes=<code><short><paragraph><nowiki>{{Shortcut text|{{{2}}} }}</nowiki></code>
  |1type    = <!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown -->
<code>2345</code><open>2.5pensoniquiwes</code></endtext>
  |1def    = <!-- default value for the parameter -->
If '''1''' is filled, template writes the text in plural
  |1stat    = optional
|type=
 
|example=
  |2        = lang
|i18n-method=switch
  |2label  = language
|i18n-desc=
  |2d-en    = Fix language code. Useful on translated Commons namespace pages, or in other translated templates.
|seealso=
  |2aliases =
|setscats=
  |2type    = string/line
|lines=one
  |2def    = <nowiki>{{int:lang}}</nowiki>
|shorthand=
  |2stat    = optional-
}}
 
</html>....
  |name              = Shortcut text
  |desc              = “Shortcut” caption of shortcut templates
  |usage-notes        =
  |namespace          = all
  |usergroup          = all
  |placement          =
  |example            =  
  |example-value      =  
  |relieson          =
  |shorthand          =
  |setscats          =
  |seealso            =
  |type              =
  |i18n-method       = switch
  |i18n-desc         =  
  |i18n-subpage      =  
  |i18n-mediawiki-msg =  
  |print              =  
  |mustbesubst        =  
}}<includeonly>
[[Category:Internationalization templates using LangSwitch]]</includeonly>

Latest revision as of 19:04, 13 March 2018

“Shortcut” caption of shortcut templates

Usage

{{Shortcut text |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1pluralIf it has any value, the text is “Shortcuts” instead of “Shortcut”emptyoptional
langlanguageFix language code. Useful on translated Commons namespace pages, or in other translated templates.{{int:lang}}optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

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