Editing
Template:TemplateData/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} == Usage == {{caution|Use of this template's functionality may inhibit maintenance of TemplateData until Phabricator ticket {{phab|T314970}} has been resolved and the Manage TemplateData widget functions correctly.}} {{tlx|TemplateData|''TemplateData content''}} This template is intended for inclusion in template documentation, either within /doc or the {{tag|noinclude}} tags of a template. It displays any content, intended to be TemplateData or transclusions of TemplateData from other locations, along with standard headers. If parameter 1 is not specified, this template detects whether the subpage /TemplateData exists for the current template, and provides a standardized header based on its existence: * /TemplateData exists - the template automatically transcludes the TemplateData subpage into the documentation to be used by the visual editor and other tools that read the machine code, including all of the proper headers, along with links to edit and view the page and its history. * /TemplateData does not exist - the template creates a section header with links to create the TemplateData subpage and preloads basic TemplateData code that is usable by Wikipedia tools. ==Examples== ===Default /TemplateData subpage exists=== {{tlx|TemplateData}} {{TemplateData}} ===Missing /TemplateData subpage=== {{tlx|TemplateData}} <span class="toolbar class" style="font-size:150%; font-weight:bold;">[[File:Template-question.svg|50px]]Template Data </span> [{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/missing page|action=edit&preload=Template:TemplateData/preload}}|name=create}}] [{{plainlink|url={{fullurl:{{SUBJECTSPACE}}:{{ROOTPAGENAME}}/missing page|action=purge}}|name=purge}}] ===Alternate TemplateData content=== {|class=wikitable ! colspan=2 |Simple TemplateData not needing a subpage |- |<syntaxhighlight lang="wikitext"> {{TemplateData| <templatedata>{ "description": "simple template description", "format": "inline", "params": { } }</templatedata> }}</syntaxhighlight> |{{TemplateData| <templatedata>{ "description": "simple template description", "format": "inline", "params": { } }</templatedata> }} |- ! colspan=2 |Complex TemplateData transcluded from elsewhere |- |<syntaxhighlight lang="wikitext"> {{TemplateData| {{TemplateData/other_TD_page|{{PAGENAME}}}} |template:TemplateData/other_TD_page }}</syntaxhighlight> |{{TemplateData| {{TemplateData/other_TD_page|{{PAGENAME}}}} |template:TemplateData/other_TD_page }} |} ==See also== * {{tl|TemplateData header}} β inserts a brief header for the template data section * {{tl|Template data}} β inserts template data using parameters as input <includeonly>{{Sandbox other|| <!-- Categories below this line --> [[Category:TemplateData]] [[Category:Documentation templates]] [[Category:Template namespace templates]] }}</includeonly>
Summary:
Please note that all contributions to Eurovision Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Eurovision Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Caution
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Editnotice EXPECTUNUSEDTEMPLATE
(
edit
)
Template:FULLROOTPAGENAME
(
edit
)
Template:Mbox
(
edit
)
Template:Ns has subpages
(
edit
)
Template:Phab
(
edit
)
Template:Phabricator
(
edit
)
Template:Plain link
(
edit
)
Template:Plainlink
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:Tag
(
edit
)
Template:TemplateData
(
edit
)
Template:TemplateData/TemplateData
(
edit
)
Template:TemplateData/other TD page
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Ns has subpages
(
edit
)
Module:String
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information