User:Proactive programming/Extension tutorial part 1
Appearance
Welcome to the MediaWiki Extension tutorial. In this tutorial, you will learn how to make a basic extension without a special page. Creation of special pages and creating SQL tables will be covered in later tutorials.
Extension Title
[edit]Extension: PageInfoDeluxe
Extension Purpose
[edit]Purpose: To set and get several variables that will be stored on the page PageInformation page.
Technial Details
[edit]Technical Details: These variables are stored in the SQL table mw_page_props.
variable | gui title | Description |
---|---|---|
displaytitle | Display_title | the Pretty version of an article |
page_image_free | Page_image | the featured image |
short_desc | Local_description | the short description the appears in search results |
summary | summary | Summary text that will appear in popup boxes. |
Source code file tree
[edit]- PageInfoDeluxe/i18n/ -- stores language message strings
- PageInfoDeluxe/includes/ -- stores the php files.
- PageInfoDeluxe/includes/ApiQueryPageInfoDeluxe.php
- PageInfoDeluxe/includes/PageInfoDeluxe.php
- PageInfoDeluxe/includes/PageInfoDeluxe.class.php
- PageInfoDeluxe/includes/PageInfoDeluxe.hooks.php
- PageInfoDeluxe/includes/PageInfoDeluxe.settings.php
- PageInfoDeluxe/includes/PageInfoDeluxe.db.php
- PageInfoDeluxe/includes/PageInfoDeluxe.i18n.magic.php
- PageInfoDeluxe/resources/ -- stores resources like images, css, and js files
- PageInfoDeluxe/extension.json