Manual:Pywikibot/Scripts/script

From Linux Web Expert


Documentation

<templatedata> { "description": "This template is to include script information onto the scripts overview.", "params": { "1": { "label": "script name", "type": "line", "required": true, "description": "Script name in core" }, "2": { "label": "description", "description": "Short description of what the script does", "type": "content", "suggested": true }, "3": { "label": "core status", "description": "Support in Pywikibot core: “y” (supported), “n” (unsupported) or “-” (unknown)", "type": "line", "default": "-" }, "port": { "label": "porting task", "description": "Phabricator ID for task to port script from compat to core, only used if status is “n”", "example": "T1234", "type": "line" }, "bug": { "label": "bug ID", "description": "Phabricator ID for a bug that makes core script not working, only used if status is “n”", "example": "T5678", "type": "line" }, "folder": { "label": "core folder", "description": "The folder where the script is located, if not in “scripts/”", "type": "line", "default": "scripts/" }, "compatname": { "label": "compat name", "description": "Script name in compat, if different from the core one", "type": "line" }, "compatfolder": { "label": "compat folder", "description": "The folder where the compat script is located", "type": "line" } } } </templatedata>

{{Manual:Pywikibot/Scripts/script
| 1 = 
| 2 = 
| 3 = 
| 4 =
| port = 
| bug = 
| folder = 
| compatname = 
| compatfolder = 
}}

Examples

{{Manual:Pywikibot/Scripts/part|
  {{Manual:Pywikibot/Scripts/script|scriptname|This is a short description of the script|n| port = T1234}}
}}
<translate> Name</translate> <translate> Description</translate> <translate> Code</translate>
scriptname.py This is a short description of the script compat<translate> task</translate>
{{Manual:Pywikibot/Scripts/part|
  {{Manual:Pywikibot/Scripts/script|scriptname|This is a short description of the script|n| bug = T5678}}
}}
<translate> Name</translate> <translate> Description</translate> <translate> Code</translate>
scriptname.py This is a short description of the script <translate> bug</translate>
{{Manual:Pywikibot/Scripts/part|
  {{Manual:Pywikibot/Scripts/script|scriptname|This is a short description of the script|y}}
}}
<translate> Name</translate> <translate> Description</translate> <translate> Code</translate>
scriptname.py This is a short description of the script core