Difference between revisions of "Template:Extension/doc"

3,403 bytes removed ,  23:55, 20 October 2021
Drop parameters that aren't supported from the TemplateData
>Ammarpad
(add ltsrel)
>Pppery
(Drop parameters that aren't supported from the TemplateData)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
==TemplateData==
<noinclude>{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
</noinclude>== TemplateData ==
{{collapse top|title=TemplateData}}
{{collapse top|title=TemplateData}}
{{TemplateData header|editlinks=1|docpage=Extension/doc}}
<templatedata>
<templatedata>
{
{
    "description":"An infobox for a MediaWiki extension.",
"description": "An infobox for a MediaWiki extension.",
    "params":{
"params": {
        "status":{
"status": {
            "description":"Current release status. One of: unstable, experimental, beta, stable, unmaintained, unknown.",
"description": "Current release status. One of: unstable, experimental, beta, stable, unmaintained, unknown.",
            "default":"unknown",
"default": "unknown",
            "label":"Status",
"label": "Status",
            "type":"string"
"type": "string",
        },
"example": "stable",
        "name":{
"suggested": true
            "description":"name of the extension",
},
            "label":"Name",
"name": {
            "type":"string"
"description": "Name of the extension",
        },
"label": "Name",
        "license":{
"type": "string",
            "description":"Extension's license.",
"default": "Current page name",
            "label":"License",
"suggested": true
            "type":"string"
},
        },
"license": {
        "templatemode":{
"description": "Extension's license.",
            "description":"Controls auto-categorization of host page. Normally left blank. Alternate values are: nocats, nousage.",
"label": "License",
            "label":"Mode"
"type": "string",
        },
"suggested": true
        "image":{
},
            "description":"Screenshot or logo of extension. It should be provided without namespace and without [[]]s.",
"templatemode": {
            "label":"Screenshot or logo"
"description": "Controls auto-categorization of host page. Normally left blank. Alternate values are: nocats, nousage.",
        },
"label": "Mode"
        "imagesize":{
},
            "description":"Facultative, size of the image (default size is 220px)"
"image": {
        },
"description": "Screenshot or logo of extension. It should be provided without namespace and without [[]]s.",
        "type":{
"label": "Screenshot or logo",
            "description":"Implementation type. See detailed doc.",
"example": "Example.jpg",
            "label":"Primary type"
"type": "wiki-file-name",
        },
"suggested": true
        "type1":{
},
            "description":"Implementation type. See detailed doc.",
"imagesize": {
            "label":"Secondary type"
"description": "Optional size of the image",
        },
"label": "Image size",
        "type2":{
"default": "220"
            "description":"Implementation type. See detailed doc.",
},
            "label":"Tertiary type"
"type": {
        },
"description": "Implementation type. If more that one type is required, use \"Primary type\", \"Secondary type\", ... instead",
        "type3":{
"label": "Type",
            "description":"Implementation type. See detailed doc.",
"type": "string",
            "label":"Quaternary type"
"suggested": true
        },
},
        "type4":{
"type1": {
            "description":"Implementation type. See detailed doc.",
"description": "Implementation type. See detailed doc.",
            "label":"Quaternary type"
"label": "Primary type",
        },
"type": "string"
        "type5":{
},
            "description":"Implementation type. See detailed doc.",
"type2": {
            "label":"Quinary type"
"description": "Implementation type. See detailed doc.",
        },
"label": "Secondary type"
        "type6":{
},
            "description":"Implementation type. See detailed doc.",
"type3": {
            "label":"Senary type"
"description": "Implementation type. See detailed doc.",
        },
"label": "Third type",
        "description":{
"type": "string"
            "description":"Short description."
},
        },
"type4": {
        "author":{
"description": "Implementation type. See detailed doc.",
            "description":"The extension author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present)."
"label": "Fourth type",
        },
"type": "string"
        "username":{
},
            "description":"The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page. It should be provided without namespace and without [[]]s."
"type5": {
        },
"description": "Implementation type. See detailed doc.",
        "version":{
"label": "Fifth type",
            "aliases":[
"type": "string"
                "latest release version",
},
                "latest_release_version"
"type6": {
            ]
"description": "Implementation type. See detailed doc.",
        },
"label": "Sixth type",
        "update":{
"type": "string"
            "description":"date of the last update"
},
        },
"description": {
        "version preview":{
"description": "Short description",
            "description":"version preview"
"label": "Description",
        },
"suggested": true
        "update preview":{
},
            "description":"version preview"
"author": {
        },
"description": "The extension author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present).",
        "mediawiki":{
"label": "Author",
            "description":"Required version of MediaWiki"
"suggested": true
        },
},
        "php":{
"username": {
            "description":"Required version of PHP"
"description": "The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page. It should be provided without namespace and without [[]]s.",
        },
"label": "Username"
        "needs-updatephp":{
},
            "description":"Yes indicates that the extension requires a database table schema change or a similar action, before the MediaWiki can run. It is a common pitfall: your MediaWiki will stall, if you forgot to run update.php - if the extension requires it. No should be set as a value since this assures that the extension does not need update.php to be run and thus avoids uncertainty."
"mediawiki": {
        },
"description": "Required versions of MediaWiki. Not needed if this information is in extension.json.",
        "composer":{
"label": "MediaWiki version",
            "description":"If applicable the name
"example": ">= 1.35",
"type": "string",
"deprecated": "This value will be read from extension.json where possible."
},
"php": {
}</templatedata>
}</templatedata>
{{collapse bottom}}
{{collapse bottom}}
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Info templates{{#translation:}}]]
[[Category:Extension creation{{#translation:}}]]
[[Category:Categorizing templates{{#translation:}}]]
[[Category:Extension templates{{#translation:}}]]
}}</includeonly>
Anonymous user