Difference between revisions of "Template:Extension"
Jump to navigation
Jump to search
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 | <!-- -->{{!}} {{#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 | * ''pfunc'' - Parser function | ||
* ''parser'' - Parser | * ''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 | * ''hook'' - Hook extension (using $wgHooks) | ||
* ''special'' - Special | * ''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. | ||
|- | |- |