MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=mllesson (ml)
- Denna modul kräver skrivrättigheter.
- Denna modul accepterar endast POST-begäranden.
- Source: MLExercises
- License: unknown
- mlaction
One of get, lessonCreate, lessonRename, lessonDelete, lessonEdit, contentAdd, contentRearrange, contentEdit, contentDelete, noop.
- get - get a list of lessons with basic info. If lesson ID provided, will get only that lesson and with more info.
- lessonCreate - Create new lesson. Optionally provide lesson name to init with name.
- lessonRename - Provide lesson ID and lesson name.
- lessonDelete - Provide lesson ID. Will delete lesson and all content in it.
- lessonEdit - Not implemented currently.
- contentAdd - require lesson ID and content type. For ex and th types, requires a pageid. Will add content at end of lesson.
- contentRearrange - requires lessonid, contentid, and newindex. Rearrange order of content.
- contentEdit - Implemented but do not use.
- contentDelete - Provide lessonid and contentid. Will delete that content from the lesson.
- noop - Does nothing. Can be used with defaultprops parameter to only get default props and do nothing else.
- Denna parameter är obligatorisk.
- mllessonid
Lesson ID.
- The value must be no less than 1.
- Type: integer
- mllessoncode
Lesson code.
- mllessonname
Lesson name.
- mllessonuserdisplayname
Lesson teacher display name.
- mllessonuserdisplayemail
Lesson teacher display email.
- mllessontype
Lesson type. One of lesson, worksheet, test
- mlcontentid
Content ID. Must be part of lesson.
- The values must be no less than 0.
- Type: list of integers
- Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
- mlcontenttype
Content type. May be one of 'ex', 'th'. When adding multiple contents at once, specify each separated with a pipe (|).
- mlpageid
Page ID of an exercise from the exercise bank or a theory page. When adding multiple contents at once, specify each separated with a pipe (|).
- The values must be no less than 1.
- Type: list of integers
- Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
- mlpagetitle
Page title of a theory page. When adding multiple contents at once, specify each separated with a pipe (|).
- Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
- mlnewindex
Index (starting from 0) to move content to. Content will be put at this index.
- The value must be no less than 0.
- Type: integer
- mlpropname
Option name (not used)
- Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
- mlpropval
Option value (not used)
- Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
- mlnocache
- (no description)
- Type: boolean (details)
- mlprop_append
- (no description)
- Type: boolean (details)