Difference between revisions of "Template:Extension"
>HappyDog (Added username field. Making a save, but I will need to test it... Also jigged the instructions a bit, as the recent changes to the PRE tag format (scrolling overflow) screwed with the layout.) |
>HappyDog m (Fix a bracketing error...) |
||
| Line 21: | Line 21: | ||
| style="vertical-align: top" | '''Description:''' || {{{description}}} | | style="vertical-align: top" | '''Description:''' || {{{description}}} | ||
|- | |- | ||
{{#if:{{{author|{{{username<includeonly>|</includeonly>}}}| | {{#if:{{{author|{{{username<includeonly>|</includeonly>}}}}}}| | ||
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Author:''' | <!-- -->{{!}} style="vertical-align: top" {{!}} '''Author:''' | ||
<!-- -->{{!}} {{#if: {{{username|}}} | {{#ifeq: {{{username}}}|{{{author|}}}||{{{author}}} - }}[[User:{{{username}}}]]}} <small>[[User talk:{{{username}}}|talk]]</small> | {{{author}}} }} | <!-- -->{{!}} {{#if: {{{username|}}} | {{#ifeq: {{{username}}}|{{{author|}}}||{{{author}}} - }}[[User:{{{username}}}]]}} <small>[[User talk:{{{username}}}|talk]]</small> | {{{author}}} }} | ||
Revision as of 20:21, 16 July 2007
Purpose
This template should be added to the main page of all extensions documented on this wiki (and only the main page). It will add a useful infobox using the information supplied (see below) and will automatically add the extension to Category:All extensions, plus the appropriate status and type categories.
Example
| Extension Release status: unknown | |
|---|---|
| Type: | {{{type}}} |
| Description: | {{{description}}} |
| Author: | [[User talk:{{{username}}}|talk]]
}} |
| Version: | {{{version}}} |
| MediaWiki: | {{{mediawiki}}} |
| Download: | {{{download}}} |
| Parameters: | {{{parameters}}} |
| Added rights: | {{{rights}}} |
| Example: | {{{example}}} |
Usage
Using the infoboxExisting extension pagesIf you want to add the infobox to an existing page, copy and paste the following code and add it to the top: {{Extension
|name =
|status =
|type =
|author =
|username =
|image =
|version =
|update =
|mediawiki =
|download =
|readme =
|changelog =
|description =
|parameters=
|rights =
|example =
}}
Create a new extension articleIf you want to create a new extension page, enter the name below and click the button. A new page will be created with the infobox template already in place. |