MediaWiki-API-Ergebnis

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "warnings": {
        "main": {
            "*": "Unrecognized parameter: sfr."
        }
    },
    "batchcomplete": "",
    "query": {
        "gadgets": [
            {
                "id": "AutoImageAltText",
                "metadata": {
                    "settings": {
                        "actions": [],
                        "categories": [],
                        "category": "",
                        "contentModels": [],
                        "default": "",
                        "namespaces": [],
                        "rights": [],
                        "skins": []
                    },
                    "module": {
                        "datas": [],
                        "dependencies": [],
                        "messages": [],
                        "peers": [],
                        "scripts": [
                            "MediaWiki:Gadget-AutoImageAltText.js"
                        ],
                        "styles": []
                    }
                },
                "desc": "\n<h2><span class=\"mw-headline\" id=\"Auto_Image_Alt_Text\">Auto Image Alt Text</span></h2>\n<p>Adds a <b>\u2728 Generate Alt Text</b> button to the media dialog in VisualEditor. When clicked, it fetches the selected image and uses AI vision to generate a descriptive, meaningful alt text \u2014 improving accessibility without manual effort.\n</p>\n<h4><span class=\"mw-headline\" id=\"Usage\">Usage</span></h4>\n<ol><li>Add the following line to <a href=\"/wiki/MediaWiki:Gadgets-definition\" title=\"MediaWiki:Gadgets-definition\" data-bs-title=\"MediaWiki:Gadgets-definition\">MediaWiki:Gadgets-definition</a>: <code>* AutoImageAltText[ResourceLoader|default|messages=bs-ai-alt-text-button,bs-ai-alt-text-loading,bs-ai-alt-text-filename-error,bs-ai-alt-text-fetching,bs-ai-alt-text-success,bs-ai-alt-text-error]|AutoImageAltText.js</code></li>\n<li>Enable this gadget in <a href=\"/wiki/Spezial:Preferences\" title=\"Spezial:Preferences\">Special:Preferences</a> \u2192 Gadgets.</li>\n<li>Open a page in VisualEditor.</li>\n<li>Insert or edit an image to open the media dialog.</li>\n<li>Click <b>\u2728 Generate Alt Text</b> next to the alt text field.</li>\n<li>The AI-generated description is filled in automatically and can be edited before saving.</li></ol>\n<h4><span class=\"mw-headline\" id=\"Requirements\">Requirements</span></h4>\n<ul><li>VisualEditor must be active.</li>\n<li>The image must be accessible via a public URL resolvable by the AI service.</li>\n<li>The AI service endpoint must support vision/image input and must be configured in the wiki's environment settings.</li></ul>\n<h4><span class=\"mw-headline\" id=\"Message_keys\">Message keys</span></h4>\n<p>The following <a href=\"/w/index.php?title=Hilfe:System_message&amp;action=view\" class=\"new\" title=\"Hilfe:System message (Seite nicht vorhanden)\" data-bs-title=\"Hilfe:System_message\">system messages</a> can be translated by creating <code>MediaWiki:&lt;key&gt;/&lt;language-code&gt;</code> pages:\n</p>\n<table class=\"wikitable\">\n<tbody><tr>\n<th>Key</th>\n<th>Default (English)\n</th></tr>\n<tr>\n<td><code>bs-ai-alt-text-button</code></td>\n<td>\u2728 Generate Alt Text\n</td></tr>\n<tr>\n<td><code>bs-ai-alt-text-loading</code></td>\n<td>\u23f3 Generating...\n</td></tr>\n<tr>\n<td><code>bs-ai-alt-text-filename-error</code></td>\n<td>Could not extract filename from URL\n</td></tr>\n<tr>\n<td><code>bs-ai-alt-text-fetching</code></td>\n<td>Fetching image and generating alt text...\n</td></tr>\n<tr>\n<td><code>bs-ai-alt-text-success</code></td>\n<td>Alt text generated successfully!\n</td></tr>\n<tr>\n<td><code>bs-ai-alt-text-error</code></td>\n<td>Failed to generate alt text: $1\n</td></tr></tbody></table>"
            }
        ]
    }
}