[go: nahoru, domu]

Jump to content

Template:Transwiki guide/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Added Category:Wikipedia notification templates
TemplateData
Line 14: Line 14:
{{transwiki guide|''page''|''category sort''|small=''yes''}}
{{transwiki guide|''page''|''category sort''|small=''yes''}}


== Parameters ==
== TemplateData ==
{{TemplateData header}}


<templatedata>
* <code>1</code> - a custom transwiki page. The default is <nowiki>[[{{FULLPAGENAME}}/Transwiki guide]]</nowiki>.
{
* <code>2</code> - a custom sort key for [[:Category:Transwiki guide]]. The default is <nowiki>{{PAGENAME}}</nowiki>.
"params": {
* <code>small</code> - if this is set to "yes", a small template is output.
"1": {
"label": "Transwiki page override",
"type": "wiki-page-name",
"default": "{{FULLPAGENAME}}/Transwiki guide"
},
"2": {
"label": "Sort key",
"type": "string",
"default": "{{PAGENAME}}",
"description": "A custom sort key for [[:Category:Transwiki guide]]"
},
"small": {
"label": "Small ombox",
"type": "boolean",
"default": "0"
},
"text": {
"label": "Complete text override",
"type": "content",
"deprecated": true
}
}
}
</templatedata>


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 03:20, 17 June 2024

This adds a tag to the top of a template documentation page indicating that the template has a transwiki guide. It automatically includes pages it is transcluded on in Category:Transwiki guide. If the template has a document page, you should add it inside <includeonly>...</includeonly> tags at the top.

Syntax

Basic

{{transwiki guide}}

All parameters

{{transwiki guide|page|category sort|small=yes}}

TemplateData

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

TemplateData for Transwiki guide

No description.

Template parameters

ParameterDescriptionTypeStatus
Transwiki page override1

no description

Default
{{FULLPAGENAME}}/Transwiki guide
Page nameoptional
Sort key2

A custom sort key for [[:Category:Transwiki guide]]

Default
{{PAGENAME}}
Stringoptional
Small omboxsmall

no description

Default
0
Booleanoptional
Complete text overridetext

no description

Contentdeprecated