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

Template page
Created page with '{{TemplateBox |1 = 1 |1label = <!-- A (very) brief name for the parameter. --> |1d-en = <!-- English description of the first parameter the t...'
 
add parameter documentation, use TemplateData
 
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
   |1        = 1
   |1        = 1
   |1label  = <!-- A (very) brief name for the parameter. -->
   |1label  = description
   |1d-en    = <!-- English description of the first parameter the template takes -->
   |1d-en    = Description of the other page
  |1d-td    = <!-- description of the first parameter the template takes without any wiki marking-->
   |1type    = content
  |1aliases = <!-- List of aliases, separated by / (a slash) -->
   |1type    = <!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown -->
   |1def    = <!-- default value for the parameter -->
   |1def    = <!-- default value for the parameter -->
   |1stat    = required
   |1stat    = required


   |2        = 2
   |2        = 2
   |2label  =  
   |2label  = link
   |2d-en    =  
   |2d-en    = Link to the other page (formatted as link)
  |2d-td    =
   |2type    = content
  |2aliases =
   |2type    =  
   |2def    =  
   |2def    =  
   |2stat    = required
   |2stat    = required
  |3        = lang
  |3label  = language
  |3d-en    = Fix the language of the template. Useful on translated pages
  |3type    = line
  |3def    = (user interface language)
  |3stat    = optional-


   |name              = For2
   |name              = For2
Line 34: Line 37:
   |i18n-method        = ext.translate
   |i18n-method        = ext.translate
   |print              =  
   |print              =  
  |useTemplateData    = only
}}<includeonly>
}}<includeonly>
[[Category:Disambiguation and redirection templates]]</includeonly>
[[Category:Disambiguation and redirection templates]]</includeonly>

Latest revision as of 16:11, 22 May 2019

No description yet available.

Usage

{{For2 |1= |2= }}

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
description1

Description of the other page

Contentrequired
link2

Link to the other page (formatted as link)

Contentrequired
languagelang

Fix the language of the template. Useful on translated pages

Default
(user interface language)
Lineoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Placement: At the top of the page

Example

{{For2|something|[[this page]]}}

renders as:

See also

Templates linking contents

"1-N" means from one to many.

Upwards links

Downwards links

Sideways page links

Sideways category links

Interproject links

Localization

العربية  বাংলা  català  dansk  Deutsch  English  Esperanto  español  فارسی  suomi  français  हिन्दी  magyar  Bahasa Indonesia  italiano  日本語  한국어  македонски  Bahasa Melayu  norsk bokmål  Nederlands  norsk nynorsk  polski  português  português do Brasil  русский  slovenščina  српски / srpski  svenska  ไทย  Tiếng Việt  中文

This template makes use of {{Autotranslate}} and the translate extension.


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