Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Example  





3 Parameters  





4 Tracking categories  





5 See also  














Template:TemplateData header






Acèh
Afrikaans
ि
Аԥсшәа
العربية
Aragonés
Արեւմտահայերէն

Авар
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú

Български

Bosanski
Brezhoneg
Català
Cebuano
Čeština
ChiTumbuka
Corsu
Dagbanli
Dansk
الدارجة
ދިވެހިބަސް

Ελληνικά
Español
Esperanto
Euskara
فارسی
Fiji Hindi
Føroyskt
Français
Gaelg
Galego

  / Gõychi Konknni
Gungbe
/Hak-kâ-ngî

Հայերեն
ि
Bahasa Hulontalo
Ido
Ilokano
Bahasa Indonesia
IsiXhosa
Íslenska
Jawa

Kernowek
Ikirundi
Kurdî
Кыргызча
Ladin

Lietuvių
ि
Македонски

Malti
Māori

مصرى

Bahasa Melayu
Minangkabau
 / Mìng-dĕ̤ng-nḡ
Mirandés
Мокшень



Нохчийн
Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

پنجابی

پښتو
Português
Română
Русский
Gagana Samoa

سرائیکی
Scots
Sesotho sa Leboa
Shqip

Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Taqbaylit
 


Thuɔŋjäŋ
Тоҷикӣ

Türkçe
Українська
اردو
Tiếng Vit
Volapük

Winaray


Zazaki

 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikimedia Outreach
Multilingual Wikisource
Wikispecies
Wikibooks
Wikidata
Wikifunctions
Wikimania
Wikiquote
Wikisource
Wikiversity
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Templatedata header)

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.

TemplateData for TemplateData header

The {{TemplateData header}} template inserts a brief header for the template data section, and adds the page to Category:Templates using TemplateData.

Usage

==TemplateData==
{{TemplateData header}}
<templatedata>{
...
}</templatedata>

Note: Section headers of ==Parameters== or ==Usage== may also be used.

Use {{TemplateData header|Template name}} to display a name for the template other than the default, which is {{BASEPAGENAME}}. Do not add Template:.

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Template name in articles based on its TemplateData.

TemplateData for Template name

Use {{TemplateData header|nolink=1}} to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.

TemplateData for TemplateData header

Use {{TemplateData header|noheader=1}} to omit the first sentence of the header text.

See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.

TemplateData for TemplateData header

Example

Using a collapse box for [[Template:User]]:
{{collapse top|title=TemplateData}}
{{TemplateData header|User}}
<templatedata>
{
 "description": "This template is used to create a link to a user's user page (unless using {{Useranon}}), talk page, and contributions, and generates a special notification (aka 'ping').",
 "params": {
  "1": {
   "label": "User name",
   "type": "string",
   "required": true,
   "description": "The user name that you want to create links to and notify.",
   "aliases":["user"]
  },
  "project": {
   "label": "Sister project",
   "type": "string",
   "description": "Used to link to a sister project instead of the English Wikipedia. Use the standard interwiki prefix."
  },
  "lang": {
   "label": "Other language project",
   "type": "string",
   "description": "Used to link to another language project. If used with the \"sister project\" parameter, links to another language of a sister project. Otherwise links to another language Wikipedia. Use the standard language code."
  },
  "separator": {
   "label": "Separator",
   "description": "Used to change the separator between the links. If unused, defaults to a dot."
  }
 }
}
</templatedata>
{{collapse bottom}}


TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:User in articles based on its TemplateData.

TemplateData for User

This template is used to create a link to a user's user page (unless using {{Useranon}}), talk page, and contributions, and generates a special notification (aka 'ping').

Template parameters

ParameterDescriptionTypeStatus
User name1 user

The user name that you want to create links to and notify.

Stringrequired
Sister projectproject

Used to link to a sister project instead of the English Wikipedia. Use the standard interwiki prefix.

Stringoptional
Other language projectlang

Used to link to another language project. If used with the "sister project" parameter, links to another language of a sister project. Otherwise links to another language Wikipedia. Use the standard language code.

Stringoptional
Separatorseparator

Used to change the separator between the links. If unused, defaults to a dot.

Unknownoptional

Parameters

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.

TemplateData for TemplateData header

Inserts a brief header for the TemplateData section. Adds the page to [[:Category:Templates using TemplateData]]

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Template name1

Used to display a name for the template other than the default, which is {{BASEPAGENAME}}.

Stringoptional
No linknolink

Assigning any value to this parameter will omit cause the template to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.

Stringoptional
No headernoheader

Assigning any value to this parameter will cause the template to omit the first sentence of the header text.

Stringoptional

Tracking categories

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:TemplateData_header&oldid=1187786748"

Categories: 
Lua-based templates
TemplateData
Documentation header templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 1 December 2023, at 11:27 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki