Difference between revisions of "Template:Extension/doc"

Jump to navigation Jump to search
6,106 bytes added ,  00:37, 13 October 2019
cleanup/reformat JSON
>Uzume
(TemplateData: expand number of documented hooks supported from 48 to 90)
>Uzume
(cleanup/reformat JSON)
Line 4: Line 4:
<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"
},
        },
"name": {
        "name":{
"description": "name of the extension",
            "description":"name of the extension",
"label": "Name",
            "label":"Name",
"type": "string"
            "type":"string"
},
        },
"license": {
        "license":{
"description": "Extension's license.",
            "description":"Extension's license.",
"label": "License",
            "label":"License",
"type": "string"
            "type":"string"
},
        },
"templatemode": {
        "templatemode":{
"description": "Controls auto-categorization of host page. Normally left blank. Alternate values are: nocats, nousage.",
            "description":"Controls auto-categorization of host page. Normally left blank. Alternate values are: nocats, nousage.",
"label": "Mode"
            "label":"Mode"
},
        },
"image": {
        "image":{
"description": "Screenshot or logo of extension. It should be provided without namespace and without [[]]s.",
            "description":"Screenshot or logo of extension. It should be provided without namespace and without [[]]s.",
"label": "Screenshot or logo"
            "label":"Screenshot or logo"
},
        },
"imagesize": {
        "imagesize":{
"description": "Facultative, size of the image (default size is 220px)"
            "description":"Facultative, size of the image (default size is 220px)"
},
        },
"type": {
        "type":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Primary type"
            "label":"Primary type"
},
        },
"type1": {
        "type1":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Secondary type"
            "label":"Secondary type"
},
        },
"type2": {
        "type2":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Tertiary type"
            "label":"Tertiary type"
},
        },
"type3": {
        "type3":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Quaternary type"
            "label":"Quaternary type"
},
        },
"type4": {
        "type4":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Quaternary type"
            "label":"Quaternary type"
},
        },
"type5": {
        "type5":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Quinary type"
            "label":"Quinary type"
},
        },
"type6": {
        "type6":{
"description": "Implementation type. See detailed doc.",
            "description":"Implementation type. See detailed doc.",
"label": "Senary type"
            "label":"Senary type"
},
        },
"description": {
        "description":{
"description": "Short description."
            "description":"Short description."
},
        },
"author": {
        "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)."
            "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)."
},
        },
"username": {
        "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."
            "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."
},
        },
"version": {
        "version":{
"aliases": [
            "aliases":[
"latest release version",
                "latest release version",
"latest_release_version"
                "latest_release_version"
]
            ]
},
        },
"update": {
        "update":{
"description": "date of the last update"
            "description":"date of the last update"
},
        },
"version preview": {
        "version preview":{
"description": "version preview"
            "description":"version preview"
},
        },
"update preview": {
        "update preview":{
"description": "version preview"
            "description":"version preview"
},
        },
"mediawiki": {
        "mediawiki":{
"description": "Required version of MediaWiki"
            "description":"Required version of MediaWiki"
},
        },
"php": {
        "php":{
"description": "Required version of PHP"
            "description":"Required version of PHP"
},
        },
"needs-updatephp": {
        "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."
            "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."
},
        },
"composer
        "composer":{
            "description":"If applicable the name of
Anonymous user

Navigation menu