Difference between revisions of "Template:MW src"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch:</translate> |
| = | | = | ||
− | + | <!--T:1--> [<tvar|1>https://doc.wikimedia.org/mediawiki-core/master/php/{{{1}}}_8{{{2}}}_source.html</> <tvar|file>{{#if:{{{1|}}}|{{{1}}}.{{{2}}}|{{BASEPAGENAME}}}}</> source code] on MediaWiki master.</translate> | |
| #default = | | #default = | ||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:MW src|noshift=1}} | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:MW src|noshift=1}} | ||
Line 9: | Line 9: | ||
{{Documentation|content= | {{Documentation|content= | ||
− | + | ||
== Usage == <!--T:2--> | == Usage == <!--T:2--> | ||
Line 15: | Line 15: | ||
This template generates a link to the source code of the file in MediaWiki master in the generated PHP [[Doxygen]] documentation. | This template generates a link to the source code of the file in MediaWiki master in the generated PHP [[Doxygen]] documentation. | ||
</translate> | </translate> | ||
− | {{Note|1= | + | {{Note|1=<!--T:4--> Doxygen's treatment of source files tends to be... odd.</translate> <!--T:5--> It strips all comments that look like Doxygen tags and structure commands, assuming you'll follow its link "Go to the documentation of this file."</translate> <!--T:6--> Instead of this template you can use <tvar|file>{{tl|git file}}</>.</translate>}} |
+ | |||
− | |||
== Parameters == <!--T:7--> | == Parameters == <!--T:7--> | ||
</translate> | </translate> | ||
Line 23: | Line 23: | ||
<nowiki>{{MW src|name|ext}}</nowiki> | <nowiki>{{MW src|name|ext}}</nowiki> | ||
− | + | ||
<!--T:8--> | <!--T:8--> | ||
where: | where: | ||
</translate> | </translate> | ||
− | * ''name'' - | + | * ''name'' - <!--T:9--> file name.</translate> |
− | * ''ext'' - | + | * ''ext'' - <!--T:10--> file extension, e.g.</translate> <code>.php</code>, <code>.inc</code>, etc. |
+ | |||
− | |||
== Examples == <!--T:11--> | == Examples == <!--T:11--> | ||
</translate> | </translate> |
Revision as of 03:52, 21 December 2019
MW src source code on MediaWiki master.

Usage
This template generates a link to the source code of the file in MediaWiki master in the generated PHP Doxygen documentation. </translate>
file>{{git file}}</>.</translate>
Parameters
</translate>
{{MW src|name|ext}}
where:
</translate>
- name - file name.</translate>
- ext - file extension, e.g.</translate>
.php
,.inc
, etc.
Examples
</translate>
- {{MW src|Maintenance|php}}
Maintenance.php source code on MediaWiki master.