User:Habatchii/Books/Extension: Accolade

From MediaWiki.org
Jump to: navigation, search
This is the storage place of a book (collection of pages). You can load it from here, generate a PDF, let a book printed, edit it or otherwise update its content. Be reminded that when overwriting this book storage page with an updated version of the book, the previously assigned categories are not automatically copied to the recent version: you need to manually copy the categories from the former version. (Problem has been filed as enhancement request 27952)
Title
Please select an appropriate cover image for this book. See "Template:Saved book" for instructions."
This user book is a user-generated collection of MediaWiki articles that can be easily saved, rendered electronically, and ordered as a printed book. If you are the creator of this book and need help, see Help:Books (general tips) and WikiProject Wikipedia-Books (questions and assistance).
PDF ]  [ epub ]  [ ODT ]  [ ZIM ]

Open in Book Creator ]  [ Order Printed Book ]

[ About ] [ FAQ ] [ Feedback ] [ Help ] [ WikiProject ] [ Recent Changes ]


Extension: Accolade[edit | edit source]

Source files and variables to build Accolade 1.0[edit | edit source]

Introduction to the Accolade Criterion Collection Library

This is a introductory overview of a work in progress known in its public form as Extension:Accolade; defined in usage as a informational tool suite for exemplary article recognition.

In its most basic state, it uses a library of images (i.e.- Accolades) to prepend, affix and or embed into existing and or new article titles. In its more advanced state, it performs higher functions of parser movement such as namespace grouping, permissions and awards, etcetera.

Extension Framework and Convention[edit | edit source]

MediaWiki extensions manual
Crystal Clear action run.png
Accolade

Release status: beta

Implementation Tag
Description Creates a text level bookmarker (accolade), which serves as a icon style image for reader recognition.
Author(s) Habatchii
Latest version 1.0 (2012-04-08)
MediaWiki 1.19.1
License GPL
Download Accolade.php

Translate the Habatchii/Books/Extension: Accolade extension if it is available at translatewiki.net

Warning: Default sort key "ACCOLADE" overrides earlier default sort key "Extension: Accolade".

Introduction[edit | edit source]

Accolade is an extension to MediaWiki that creates icon style accolades for outstanding articles in specific namespaces.

It is based on the deprecated Icon extension.

Note: This extension is in development and may include more features in future releases than its initial version.

Features[edit | edit source]

  • Accolades may be created for featured article links per namespace.
  • Bookmarking of existing links
  • Can be used inline or through transclusion.
  • Direct linking may be disabled for security.


Installation[edit | edit source]

  1. Download Accolade.php and save it in the extensions directory of your wiki.
  2. Insert this line in the LocalSettings.php file:
    include_once('extensions/Accolade/Accolade.php');
    

Configuration[edit | edit source]

There are several default variables for Accolade and various additional settings.

$wgSpecialAccolade['base'] = '*';    // default pattern for regular affix to listed pages
$wgSpecialAccolade['require'] = '÷';   // used to make required exceptions
$wgSpecialAccolade['adduse'] = '$';        // used to include bookmarks/cite
$wgSpecialAccolade['ns_'] = '!';       // used to limit specific namespaces
$wgSpecialAccolade['disable'] = none;      // disabled links to article pages
$wgSpecialAccolade['opt'] = none;      // used to 'option' in specific groups
$wgSpecialAccolade['nobut'] = none;    // used to only show page link to selected articles

These vars can be tailored on individual basis in each call to the tag function, or the parser function, named accordingly.


Usage[edit | edit source]

Use this extension by creating a page entitled "Special:Accolade on the main site of usage. Then create a list of output pages (existing or empty pages of which the accolades are to link to.) using the aforementioned delimiters to narrow linkage types. If namespaces are to be used, make the namespace partitions by separating each with header designators (====).


After the special page has been created, upload your images, add existing ones or use the default accolades included with the extension. Create a gallery for each header on the special page with all selected images. Images will automatically:

  • resize to 20px
  • justify and center with vertical/horizontal align.
  • prepend to all existing links to pages in the special page directory.
  • bookmark pages with text matches to special pages directory.
  • create new special page for results report of all namespaces listed.


Inline[edit | edit source]

Through transclusion[edit | edit source]

Extras[edit | edit source]

Alternatives[edit | edit source]

Feedback[edit | edit source]

Use the discussion page for feedback, questions, feature requests and bug reports.


@@@@@@@@@@@@@@@@@@

Namespace Variables
Manual:$wgContentNamespaces
Manual:$wgArticlePath
Manual:$wgRestrictionLevels
Manual:$wgNamespaceRobotPolicies
Manual:$wgNamespaceProtection
Manual:$wgArticleCountMethod
Manual:$wgAutopromote
Manual:$wgRestrictionTypes
Manual:$wgReadOnly
Manual:$wgAllowSpecialInclusion
Manual:$wgLogRestrictions
Manual:$wgAutoConfirmCount
Manual:$wgGroupsAddToSelf
Manual:$wgGroupsRemoveFromSelf
Manual:$wgAvailableRights
Manual:$wgRevokePermissions
Image Variables
Manual:$wgMediaHandlers
Manual:$wgUseImageResize
Manual:$wgScriptPath
Manual:$wgFileExtensions
Manual:$wgStrictFileExtensions
Manual:$wgStylePath
Manual:$wgUseFileCache
Manual:$wgMaxImageArea
Manual:$wgReadOnlyFile
Manual:Linked images
Link Variables
Extension:LinkSuggest
Extension:LinkHint
Extension:HttpImage
Extension:FaviconLink
Extension:ImageLink
Extension:Icon
Embedded Text/Find Variables
Manual:$wgExtensionFunctions
Build and Settings Tables Variables
Manual:$wgAutoloadClasses
Manual:Configuration settings
Manual:$wgResourceModules
Manual:$wgDBname
Manual:$wgRightsPage
Manual:$wgRightsText
Manual:$wgUseCopyrightUpload
Manual:$wgFeed
Manual:$wgCustomConvertCommand
Manual:$wgMaintenanceScripts
Manual:$wgUpgradeKey
Extension:Validator