Template:Git file/tr

From mediawiki.org

{{{file}}}

Template documentation

Kullanım

Generates a link to view the file in Gerrit.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Labeltext

The text that become the link.

Default
The “file” parameter value.
Stringoptional
Modeaction

One of “browse”, “tree” or “blame” or “history”.

Default
browse
Stringoptional
Repositoryproject

Which Git repository the file is in.

Default
mediawiki/core
Stringoptional
Branchbranch

Which branch of the repository the file is in.

Default
HEAD
Stringoptional
Commitsha

The SHA-1 hash of the specific commit within a branch. Use this to make a permalink.

Stringoptional
Filefile

Path to the file within the specified repository and branch.

Example
includes/MediaWiki.php
Stringrequired
Line numberline

The link will anchor to this line within the file, and highlight it.

Example
42
Numberoptional


Örnek

Temel

{{Git file|file=composer.json}} şunu üretir:

composer.json

{{Git file|project=mediawiki/extensions/Flow|file=FlowActions.php}} şunu üretir:

FlowActions.php
Metin

{{Git file|project=mediawiki/extensions/EventLogging|file=devserver/bin/eventlogging-devserver|text=geliştirme sunucusu}} şunu üretir:

geliştirme sunucusu
Eylem

{{Git file|file=composer.json|action=raw}} {{Git file|file=composer.json|action=blame}} {{Git file|file=composer.json|action=history}} şunu üretir:

composer.json
composer.json
composer.json

{{Git file|project=mediawiki/extensions/EventLogging|text=EventLogging extension}} şunu üretir:

EventLogging extension
Satır numarası

{{Git file|file=tests/phpunit/includes/MessageTest.php|line=123}} şunu üretir:

tests/phpunit/includes/MessageTest.php
Proje özet sayfası (kullanımdan kaldırıldı)

{{Git file|project=oojs/core|action=summary|text=OOjs (çekirdek)}} şunu üretir:

OOjs (çekirdek)

Bilinen sorunlar

Notlar

Şablon, noktalı virgül ve hashmark için ; ve &32; sayısal varlıkları kullanmak zorundadır çünkü, WP:Gelişmiş şablon kodlaması, "MediaWiki, #if içindeki cümleleri wiki olarak biçimlendirir" içindeki cümlecikleri viki olarak biçimlendirdiğini belirtir. MediaWiki bazen bu karakterleri bir tanım terimi ve numaralandırılmış liste olarak ayrıştırır (yeni satırların başında olmasalar bile).

Ayrıca bakınız

  • {{Git repo }} depo özeti bağlar
  • {{Gitblit }} depo özetine bağlantı oluşturur
  • {{MW file }} Kılavuz tarafından kullanılan karmaşık bir dosya bağlantısı oluşturur.
  • gerrit üzerindeki uzantılar için diğer pek çok süslü şablon, Category:Git kategorisine bakın.
  • {{Github }}