Template:Patch: Difference between revisions
No edit summary |
m (1 revision imported: Media wiki templates) |
(No difference)
| |
Latest revision as of 00:00, 6 August 2023
| patch | |
|---|---|
| file | {{{file}}}
|
| function | {{{function}}}
|
| description | {{{description}}}
|
| author(s) | {{{authors}}}
|
| source | {{{source}}}
|
| date | {{{date}}}
|
| MediaWiki version | {{{mediawiki_version}}}
|
{{{code}}} | |
Template:Documentation/start box2
Purpose
This template can be used to format the code an meta-information of provided patches.
Usage
Cut and paste:
{{Patch
| file =
| function =
| description =
| authors =
| source =
| date =
| mediawiki_version =
| language =
| code =
}}
For help with parameter values, see below.
Content parameters
This section describes parameters that govern template content.
Template:(| class="wikitable mw-datatable"
! parameter
! optional value
! default value
! description
|-
| file
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| provided patch has to be applied to this file
|-
| function
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| provided patch has to be applied to this function
|-
| description
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| what does the provided patch do?
|-
| authors
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| who has provided this patch?
|-
| source
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| where has this patch been published?
|-
| date
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| when has this patch been provided?
|-
| mediawiki_version
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| none
| provided patch has to be applied to this MediaWiki version
|-
| language
| style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
| diff
| format the code by default as "diff" or chose one of the supported languages for syntax highlighting
|-
| code
| style="background:#FFC7C7;vertical-align:middle;text-align:center;" class="table-no"|No
| none
| code of the provided patch
|Template:)
Template:Documentation/end box2
[[Category:Formatting templates{{#translation:}}|Patch]]