[go: nahoru, domu]

Jump to content

Template:Interconnected template/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Remove inappropriate copy and paste from {{intricate}}
TemplateData
 
Line 15: Line 15:
</syntaxhighlight>
</syntaxhighlight>


== Technical details ==
==Parameters==
The text for the template itself can be found at {{t|Interconnected template/text}}.


== TemplateData ==
This template has one named, and four unnamed parameters; all optional:
{{TemplateData header}}


<templatedata>
* {{para|page}} : to change the word ''template'' in the bold header ("This template...") to something else.
{
* {{para|1}} – name of a related template, module, config, or other page related to this one to be listed; add brackets if wikilinks are desired.
"params": {
* {{para|2}} .. {{para|4}} : name of additional related pages
"1": {

"label": "Related page",
''Note:'' for internal documentation purposes, an unlimited number of unnamed parameters identifying related pages may be specified, but only the first four will be displayed.
"description": "Name of a related template, module, config, or other page related to this one to be listed; add brackets if wikilinks are desired",

"type": "content"
== Technical details ==
},
The text for the template itself can be found at {{t|Interconnected template/text}}.
"2": {
"label": "Additional related page name 1",
"type": "content"
},
"3": {
"label": "Additional related page name 2",
"type": "content"
},
"4": {
"label": "Additional related page name 3",
"type": "content",
"description": "More than this can be specified, but the extra pages won't be displayed"
},
"form": {
"type": "string",
"suggestedvalues": [
"editnotice",
" "
]
},
"id": {
"label": "Editnotice HTML ID",
"type": "string"
},
"page": {
"description": "Changes the word template in the bold header (\"This template...\") to something else",
"type": "string",
"default": "template"
},
"expiry": {
"label": "Editnotice expiry date",
"type": "date"
}
}
}
</templatedata>


== See also ==
== See also ==

Latest revision as of 06:20, 17 June 2024

This is the {{interconnected template}} message box. It can be put at the top of the documentation for any templates that are tightly interconnected, i.e., having complex interrelations, with less obvious dependencies, combining different templates, modules, configs, or other pages, and so on.

This template adds templates to Category:Interconnected templates.

Usage[edit]

When this template is placed on a template's /doc page, please add this within <includeonly> tags so it only gets visible on the template page. The full code on the top of the /doc subpage can look like this:

{{documentation subpage}}
<includeonly>{{interconnected}}</includeonly>

Technical details[edit]

The text for the template itself can be found at {{Interconnected template/text}}.

TemplateData[edit]

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

TemplateData for Interconnected template

No description.

Template parameters

ParameterDescriptionTypeStatus
Related page1

Name of a related template, module, config, or other page related to this one to be listed; add brackets if wikilinks are desired

Contentoptional
Additional related page name 12

no description

Contentoptional
Additional related page name 23

no description

Contentoptional
Additional related page name 34

More than this can be specified, but the extra pages won't be displayed

Contentoptional
formform

no description

Suggested values
editnotice
Stringoptional
Editnotice HTML IDid

no description

Stringoptional
pagepage

Changes the word template in the bold header ("This template...") to something else

Default
template
Stringoptional
Editnotice expiry dateexpiry

no description

Dateoptional

See also[edit]

  • {{high-use}} – for high-use templates.
  • {{intricate}} – for templates with intriate parser function usage, recursion, and so on