Difference between revisions of "Template:Extension"

Jump to navigation Jump to search
72 bytes added ,  07:36, 17 March 2007
m
no edit summary
>Patrick~mediawikiwiki
(parser, hook, special=Parser extensionCategory:Parser extensions, HookCategory:Hook extensions, and Special PageCategory:Special page extensions)
>Patrick~mediawikiwiki
m
Line 12: Line 12:
{{#if:{{{type<includeonly>|</includeonly>}}}|
{{#if:{{{type<includeonly>|</includeonly>}}}|
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:'''
<!-- -->{{!}} style="vertical-align: top" {{!}} '''Type:'''
<!-- -->{{!}} {{#switch: {{lc: {{{type}}}}}|special=Special Page[[Category:Special page extensions]]|pfunc=[[Extension:Parser function extensions|Parser function]][[Category:Parser function extensions]]|parser=Parser extension[[Category:Parser extensions]]|parser,pfunc=[[Extension:Parser function extensions|Parser function]][[Category:Parser extensions]] and Parser function[[Category:Parser function extensions]]|hook=Hook[[Category:Hook extensions]]|interface=User interface[[Category:User interface extensions]]|parser, hook, special=Parser extension[[Category:Parser extensions]], Hook[[Category:Hook extensions]], and Special Page[[Category:Special page extensions]]|{{{type}}}<includeonly>[[Category:Category to catch extensions with an unrecognised type]]</includeonly>}}
<!-- -->{{!}} {{#switch: {{lc: {{{type}}}}}|special=Special page[[Category:Special page extensions]]|pfunc=[[Extension:Parser function extensions|Parser function]][[Category:Parser function extensions]]|parser=Parser extension[[Category:Parser extensions]]|parser,pfunc=[[Extension:Parser function extensions|Parser function]][[Category:Parser extensions]] and Parser function[[Category:Parser function extensions]]|hook=Hook[[Category:Hook extensions]]|interface=User interface[[Category:User interface extensions]]|parser, hook, special=Parser extension[[Category:Parser extensions]], hook[[Category:Hook extensions]], and special page[[Category:Special page extensions]]|{{{type}}}<includeonly>[[Category:Category to catch extensions with an unrecognised type]]</includeonly>}}
}}
}}
|-
|-
Line 71: Line 71:
| '''type''' || '''type of extension'''
| '''type''' || '''type of extension'''
Can contain any value, but the following special values ensure proper categorisation:
Can contain any value, but the following special values ensure proper categorisation:
* ''pfunc'' - Parser Function
* ''pfunc'' - Parser function
* ''parser'' - Parser Extension (new tag)
* ''parser'' - Parser extension (new tag)
* ''parser,pfunc'' - available as Parser Function AND as Parser Extension
* ''parser,pfunc'' - available as Parser Function AND as Parser Extension
* ''hook'' - Hook Extension (using $wgHooks)
* ''hook'' - Hook extension (using $wgHooks)
* ''special'' - Special Page
* ''special'' - Special page
* ''interface'' - User interface extension (e.g. javascript code).
* ''interface'' - User interface extension (e.g. javascript code).
* ''parser, hook, special''  - Parser extension, hook, and special page
Please add to this list if necessary.
Please add to this list if necessary.
|-
|-

Navigation menu