Jump to content

Extension:Comments/tr: Difference between revisions

From mediawiki.org
Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(20 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|description = Maddelere yorum yapılmasına izin veren {{tag|comments|single}} ayrıştırıcı kancası etiketi ekler
|description = Maddelere yorum yapılmasına izin veren {{tag|comments|single}} ayrıştırıcı kancası etiketi ekler
|author =
|author =
* David Pean
* [[User:Pean|David Pean]]
* [[User:Misza13|Misza]]
* [[User:Misza13|Misza]]
* [[User:Jack Phoenix|Jack Phoenix]]
* [[User:Jack Phoenix|Jack Phoenix]]
* [[User:UltrasonicNXT|Adam Carter]]
* [[User:UltrasonicNXT|Adam Carter]]
|version = 4.6.0
|version =
|update = 2019-08-08
|update =
|mediawiki = 1.31+
|mediawiki = {{MW lts branch number}}+
|download = {{WikimediaDownload}}
|download = {{WikimediaDownload|phab=ECMT}}
|readme =
|readme =
|changelog =
|changelog =
|tags = {{tag|comments|single}}
|tags = {{tag|comments|single}}
|example =
|example = [http://social-tools.wmflabs.org/wiki/CommentsTesting Sosyal Araçlar Geliştirme Viki]
|bugzilla = Comments
|bugzilla = Comments
|phabricator = Comments
|phabricator = Comments
Line 35: Line 35:
Kod düzeltmelerinin çoğu [[User:Misza13|Misza]] ve [[User:Jack Phoenix|Jack Phoenix]] olarak yapıldı.
Kod düzeltmelerinin çoğu [[User:Misza13|Misza]] ve [[User:Jack Phoenix|Jack Phoenix]] olarak yapıldı.


<span id="Installation"></span>
== Kurulum ==
== Kurulum ==
{{ExtensionInstall
{{ExtensionInstall
Line 41: Line 42:
|no-registration-version=1.27
|no-registration-version=1.27
}}
}}
{{Note|1=You will need to download the master version in order for the extension to work properly, as there is an issue with the branched versions.}}
{{Note|1=You will need to download the master version for the extension to work properly, as there is an issue with the branched versions.}}


<span id="Usage"></span>
== Kullanım ==
== Kullanım ==
*{{tag|comments|single}} — temel yorum formu, çoğu şey için yeterlidir.
*{{tag|comments|single}} — temel yorum formu, çoğu şey için yeterlidir.
*{{tag|comments|single|params=allow="Derfel,Jack Phoenix,Misza"}} — yalnızca Derfel, Jack Phoenix ve Misza kullanıcılarının yorum göndermesine izin verir.
*<syntaxhighlight lang=html inline><comments allow="Derfel,Jack Phoenix,Misza" /></syntaxhighlight> — yalnızca Derfel, Jack Phoenix ve Misza kullanıcılarının yorum göndermesine izin verir.
*{{tag|comments|single|params=voting="Plus"}} — kullanıcıların yorumları olumsuz (başparmak aşağı) değerlendirmesini engeller ve yalnızca olumlu (başparmak yukarı) oylara izin verir.
*<syntaxhighlight lang=html inline><comments voting="Plus" /></syntaxhighlight> — kullanıcıların yorumları olumsuz (başparmak aşağı) değerlendirmesini engeller ve yalnızca olumlu (başparmak yukarı) oylara izin verir.


<span id="Comments_of_the_Day"></span>
== Günün Yorumları ==
== Günün Yorumları ==


Uzantı ayrıca, varsayılan olarak "etkin olmayan" bir "Günün Yorumları" özelliğine ({{tag|commentsoftheday|single}}) sahiptir. Bu özelliği vikinin <code>LocalSettings.php</code> dosyasında, <code>require_once</code> satırından sonra aşağıdakileri ekleyerek etkinleştirebilirsiniz:
<div class="mw-translate-fuzzy">
Uzantı ayrıca, varsayılan olarak "etkin olmayan" bir "Günün Yorumları" özelliğine ({{tag|commentsoftheday|single}}) sahiptir. Bu özelliği vikinin LocalSettings.php'sinde, require_once satırından sonra aşağıdakileri ekleyerek etkinleştirebilirsiniz:
</div>


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Line 58: Line 59:
</syntaxhighlight>
</syntaxhighlight>


<code>nocache</code> argümanı ayrıştırıcı kancasına aktarılırsa (bunun gibi: <syntaxhighlight lang=html inline><commentsoftheday nocache=true /></syntaxhighlight>), ayrıştırıcı kancası [[memcached]] kullanmaz ve verileri önbellek yerine veritabanından alır.
<div class="mw-translate-fuzzy">
<code>nocache</code> argümanı ayrıştırıcı kancasına aktarılırsa (bunun gibi: {{tag|commentsoftheday|single|params=nocache=true}}), ayrıştırıcı kancası [[memcached]] kullanmaz ve verileri önbellek yerine veritabanından alır. En güncel verileri göstermek istiyorsanız bu kullanışlıdır, ancak çok sunucu yoğun olabilir.
En güncel verileri göstermek istiyorsanız bu kullanışlıdır, ancak çok sunucu yoğun olabilir.
</div> <div lang="en" dir="ltr" class="mw-content-ltr">
This is useful if you want to show the most up-to-date data, but it can be very server-intensive.
</div>


<span id="User_rights"></span>
== Kullanıcı hakları ==
== Kullanıcı hakları ==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Bu uzantı, üç yeni [[$manual|kullanıcı hakları]] ekler:
Bu uzantı, üç yeni [[Special:MyLanguage/Manual:User rights|kullanıcı hakları]] ekler:
</div>
</div>


* <code>comment</code> (yorum göndermeye izin verir)
* <code>comment</code> - (yorum göndermeye izin verir)
* <code>commentlinks</code> (yorumlarda harici bağlantıların yayınlanmasına izin verir)
* <code>commentlinks</code> - (yorumlarda harici bağlantıların yayınlanmasına izin verir)
* <code>commentadmin</code> (kullanıcı tarafından gönderilen yorumların silinmesine izin verir), ör.
* <code>commentadmin</code> - <span class="mw-translate-fuzzy">(kullanıcı tarafından gönderilen yorumların silinmesine izin verir), ör.</span>
* <code>comment-delete-own</code> - <span lang="en" dir="ltr" class="mw-content-ltr">which allows deleting one's own comments, e.g.</span>


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Line 78: Line 78:
</syntaxhighlight>
</syntaxhighlight>


Varsayılan olarak, herkes, hatta anonim kullanıcılar bile yorum gönderebilir, ancak harici bağlantılar içeren yorumların yayınlanması {{manual|Autoconfirmed users|autoconfirmed users}} ile sınırlıdır.
Varsayılan olarak, herkes, hatta anonim kullanıcılar bile yorum gönderebilir, ancak harici bağlantılar içeren yorumların gönderilmesi [[Special:MyLanguage/Manual:Autoconfirmed users|otomatik onaylanan kullanıcılar]] ile sınırlıdır.


Anonim kullanıcıların harici bağlantılar gönderebilmesini istiyorsanız, bunu <code>require_once</code> sonrası ekleyin:
<div class="mw-translate-fuzzy">
Anonim kullanıcıların harici bağlantılar gönderebilmesini istiyorsanız, bunu $code sonrası ekleyin:
</div>


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Line 88: Line 86:
</syntaxhighlight>
</syntaxhighlight>


<div class="mw-translate-fuzzy">
Varsayılan olarak, yalnızca <code>commentadmin</code> grubundaki kullanıcılar yorumları silebilir.
Varsayılan olarak, yalnızca <code>commentadmin</code> grubundaki kullanıcılar yorumları silebilir.
</div>


<span id="User_points"></span>
== Kullanıcı puanları ==
== Kullanıcı puanları ==
{{Note|1=This is relevant only if the [[Extension:SocialProfile|SocialProfile extension]] is installed and $wgUserLevels is properly configured.}}
{{Note|1=This is relevant only if the [[Extension:SocialProfile|SocialProfile extension]] is installed and $wgUserLevels is properly configured.}}


*{{code|inline=y|lang=php|$wgUserStatsPointValues['comment_plus']}} &mdash; amount of points to give out when another user gives "thumbs up" to your comment.
*{{phpi|$wgUserStatsPointValues['comment_plus']}} &mdash; the number of points to give out when another user gives a "thumbs up" to your comment.
*{{code|inline=y|lang=php|$wgUserStatsPointValues['comment_ignored']}} &mdash; amount of points to give out when another user adds your comments to their ignore list (Special:CommentIgnoreList).
*{{phpi|$wgUserStatsPointValues['comment_ignored']}} &mdash; the number of points to give out when another user adds your comments to their ignore list (Special:CommentIgnoreList).


<span id="Parameters"></span>
== Parametreler ==
== Parametreler ==
*{{code|inline=y|lang=php|$wgCommentsDefaultAvatar}} &mdash; path to an image which will be displayed instead of an avatar if [[Special:MyLanguage/Social tools|social tools]] ([[Special:MyLanguage/Extension:SocialProfile|SocialProfile extension]]) aren't installed. Should be 50x50px. Note that there is no default avatar image shipped with this extension. The default is defined in {{code|inline=y|extension.json}} and links to an external image on {{code|inline=y|shoutwiki.com}} server, an ad driven wiki farm. You may prefer to set this parameter to point to a local file.
*{{phpi|$wgCommentsDefaultAvatar}} &mdash; the path to an image which will be displayed instead of an avatar if [[Special:MyLanguage/Social tools|social tools]] ([[Special:MyLanguage/Extension:SocialProfile|SocialProfile extension]]) aren't installed. It should be 50x50px. Note that there is no default avatar image shipped with this extension. The default is defined in <code>extension.json</code> and links to an external image on <code>shoutwiki.com</code> server, an ad-driven wiki farm. You may prefer to set this parameter to point to a local file.
*{{code|inline=y|lang=php|$wgCommentsInRecentChanges}} &mdash; by default, this variable is set to <code>false</code>. Set it to <code>true</code> to display comments log entries in [[Special:RecentChanges]], too, in addition to the comments log at <code>Special:Log/comments</code>.
*{{phpi|$wgCommentsInRecentChanges}} &mdash; by default, this variable is set to <code>false</code>. Set it to <code>true</code> to display comments log entries in [[Special:RecentChanges]], too, in addition to the comments log at <code>Special:Log/comments</code>.
*{{code|inline=y|lang=php|$wgCommentsSortDescending}} &mdash; by default, this variable is set to <code>false</code>. Set it to <code>true</code> to sort comments by date descending, with the new comment box and most recent comments at the top.
*{{phpi|$wgCommentsSortDescending}} &mdash; by default, this variable is set to <code>false</code>. Set it to <code>true</code> to sort comments by date descending, with the new comment box and most recent comments at the top.
*{{phpi|$wgCommentsAbuseFilterGroup}} &mdash; This is the custom group name for [[Extension:AbuseFilter|AbuseFilter]] for when the AbuseFilter extension is enabled. It ensures that AbuseFilter only pulls the filters related to Comments. If you want AbuseFilter to pull all the filters, enter <code>'default'</code> here. The default value for this is <code>'comment'</code>, which ensures that AbuseFilter will only look for filters specifically written to target comments.


<span id="Magic_words/Parser_functions"></span>
== Sihirli kelimeler/Ayrıştırıcı işlevleri ==
== Sihirli kelimeler/Ayrıştırıcı işlevleri ==


Line 111: Line 111:
* <code><nowiki>{{NUMBEROFCOMMENTSPAGE:<pagename>}}</nowiki></code> gives number of comments on the given page.
* <code><nowiki>{{NUMBEROFCOMMENTSPAGE:<pagename>}}</nowiki></code> gives number of comments on the given page.


<span id="Hooks"></span>
== Kancalar ==
== Kancalar ==
Comments extension adds three hooks, {{code|inline=y|lang=php|Comment::add}}, {{code|inline=y|lang=php|Comment::delete}} and {{code|inline=y|lang=php|Comment::isSpam}}.
Comments extension adds three hooks, {{phpi|Comment::add}}, {{phpi|Comment::delete}} and {{phpi|Comment::isSpam}}.


{| class="wikitable"
{| class="wikitable"
Line 119: Line 120:
! Parameters
! Parameters
|-
|-
| {{code|inline=y|lang=php|Comment::add}}
| {{phpi|Comment::add}}
| After a comment has been added into the database, on the bottom of Comment::add function
| After a comment has been added to the database, at the bottom of Comment::add function
|<!---->
|<!---->
* <code>$comment</code> (instance of Comment class)
* <code>$comment</code> (instance of Comment class)
Line 126: Line 127:
* <code>$pageID</code>
* <code>$pageID</code>
|-
|-
| {{code|inline=y|lang=php|Comment::delete}}
| {{phpi|Comment::delete}}
| After a comment has been deleted and the caches have been purged (function delete on class <code>Comment</code>)
| After a comment has been deleted and the caches have been purged (function delete on class <code>Comment</code>)
|<!---->
|<!---->
Line 133: Line 134:
* <code>$pageID</code>
* <code>$pageID</code>
|-
|-
| {{code|inline=y|lang=php|Comment::isSpam}}
| {{phpi|Comment::isSpam}}
| Called in <code>Comment::isSpam</code> '''before''' performing other spam checks.
| Called in <code>Comment::isSpam</code> '''before''' performing other spam checks.
|<!---->
|<!---->
Line 140: Line 141:
|}
|}


==Anti-spam==
== Uluslararasılaştırma ==
Though (as of Q3/2023) Comments does '''not''' (yet) support [[Extension:ConfirmEdit|ConfirmEdit]], MediaWiki's de facto CAPTCHA extension, there are plenty of other anti-spam measures built in, including:
The Comments extension currently has (partial or full) support for 68 different languages, including English. Please visit [[translatewiki:|translatewiki.net]] if you want to translate Comments into your language.
* restricting who can add comments and/or comments that contain hyperlinks (see the [[#User rights]] section above)
* support for <code>{{ll|Manual:$wgSpamRegex|$wgSpamRegex}}</code> and <code>{{ll|Manual:$wgSummarySpamRegex|$wgSummarySpamRegex}}</code>
* possibility for extension developers to implement custom spam checks via the <code>Comment::isSpam</code> [[Manual:Hooks|hook]] point (see the [[#Hooks]] section above)
* [[Extension:AbuseFilter|AbuseFilter]] interoperability &mdash; AbuseFilter can be made to check if the <code>action</code> variable's value is <code>comment</code> to write filters that apply only to comments made via the Comments extension; the <code>new_wikitext</code> variable contains the actual comment text, and the <code>new_size</code> variable is calculated on-demand based on the value of the <code>new_wikitext</code> variable. Refer to AbuseFilter's documentation for more details on how those variables and filters work.
** The new configuration variable <code>$wgCommentsAbuseFilterGroup</code> can be set to <code>'default'</code> to make existing AbuseFilter filters apply to comments as well. By default, it is set to <code>'comment'</code>, so only filters specifically designed to target comments will be executed against comments made via the Comments extension.


<span id="Internationalization"></span>
== YAPILACAKLAR listesi ==
== Uluslararasılaştırma ==
# HTML output is not valid XHTML - would be nice if it were but we can live without that
The Comments extension currently has (partial or full) support for 68 different languages, including English. Please visit [[translatewiki:|translatewiki.net]] if you want to translate Comments or other extensions of the [[social tools]] family of extensions into your language or modify existing translations.
# Would be nice if there was a special page that gives a overview of all uses of the Comments extension on all pages (for an adminstrator to be able to moderate easier)


<span id="See_also"></span>
== Ayrıca bakınız ==
== Ayrıca bakınız ==
* {{ll|Extension:CommentStreams|nsp=0}}
* {{ll|Extension:CommentStreams|nsp=0}}


{{Social tools}}
{{Social tools}}
{{Used by}}


[[Category:Discussion and forum extensions{{#translation:}}]]
[[Category:Discussion and forum extensions{{#translation:}}]]

Latest revision as of 07:17, 21 August 2024

MediaWiki manüel uzantıları
Comments
Sürüm durumu: kararlı
Uygulama Ayrıştırıcı uzantısı , Kanca
Açıklama Maddelere yorum yapılmasına izin veren ‎<comments /> ayrıştırıcı kancası etiketi ekler
Yazar(lar)
En son sürüm 5.0
MediaWiki 1.39+
Veritabanı değişiklikleri Evet
Tablolar Comments
Comments_Vote
Comments_block
Lisans GNU Genel Kamu Lisansı 2.0 veya üstü
İndir
  • $wgCommentsDefaultAvatar
  • $wgCommentsInRecentChanges
  • $wgCommentsAbuseFilterGroup
  • $wgCommentsSortDescending
‎<comments />
  • comment
  • commentadmin
  • commentlinks
  • comment-delete-own
Quarterly downloads 52 (Ranked 87th)
Translatewiki.net adresinde mevcutsa, Comments uzantısını çevirin
Sorunlar Açık görevler · Hata bildir

Comments uzantısı, etiketin bulunduğu makalelere yorum yapılmasına izin vermek için ‎<comments /> ayrıştırıcı kancası etiketini ekler.

Yorum eylemleri "Special:Log/comments" ile kaydedilir, ancak varsayılan olarak gizlidirler, tıpkı devriye günlük girişleri gibi. Yorum günlüğü girişlerini Special:RecentChanges olarak göstermek için $wgCommentsInRecentChanges = true; ayarlayabilirsiniz (2.8+ sürümünde mevcuttur).

Kod düzeltmelerinin çoğu Misza ve Jack Phoenix olarak yapıldı.

Kurulum

  • Dosyaları indirin ve extensions/ klasörünüzdeki Comments adlı dizine yerleştirin.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Comments
  • LocalSettings.php dosyanızın altına aşağıdaki kodu ekleyin:
    wfLoadExtension( 'Comments' );
    
  • Bu uzantının ihtiyaç duyduğu gerekli veritabanı tablolarını otomatik olarak oluşturacak betik güncelleme komutunu çalıştırın.
  • Yes Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için vikinizde Special:Version seçeneğine gidin.
You will need to download the master version for the extension to work properly, as there is an issue with the branched versions.

Kullanım

  • ‎<comments /> — temel yorum formu, çoğu şey için yeterlidir.
  • <comments allow="Derfel,Jack Phoenix,Misza" /> — yalnızca Derfel, Jack Phoenix ve Misza kullanıcılarının yorum göndermesine izin verir.
  • <comments voting="Plus" /> — kullanıcıların yorumları olumsuz (başparmak aşağı) değerlendirmesini engeller ve yalnızca olumlu (başparmak yukarı) oylara izin verir.

Günün Yorumları

Uzantı ayrıca, varsayılan olarak "etkin olmayan" bir "Günün Yorumları" özelliğine (‎<commentsoftheday />) sahiptir. Bu özelliği vikinin LocalSettings.php dosyasında, require_once satırından sonra aşağıdakileri ekleyerek etkinleştirebilirsiniz:

require_once "$IP/extensions/Comments/CommentsOfTheDay.php";

nocache argümanı ayrıştırıcı kancasına aktarılırsa (bunun gibi: <commentsoftheday nocache=true />), ayrıştırıcı kancası memcached kullanmaz ve verileri önbellek yerine veritabanından alır. En güncel verileri göstermek istiyorsanız bu kullanışlıdır, ancak çok sunucu yoğun olabilir.

Kullanıcı hakları

Bu uzantı, üç yeni kullanıcı hakları ekler:

  • comment - (yorum göndermeye izin verir)
  • commentlinks - (yorumlarda harici bağlantıların yayınlanmasına izin verir)
  • commentadmin - (kullanıcı tarafından gönderilen yorumların silinmesine izin verir), ör.
  • comment-delete-own - which allows deleting one's own comments, e.g.
$wgGroupPermissions['sysop']['commentadmin'] = true;

Varsayılan olarak, herkes, hatta anonim kullanıcılar bile yorum gönderebilir, ancak harici bağlantılar içeren yorumların gönderilmesi otomatik onaylanan kullanıcılar ile sınırlıdır.

Anonim kullanıcıların harici bağlantılar gönderebilmesini istiyorsanız, bunu require_once sonrası ekleyin:

$wgGroupPermissions['*']['commentlinks'] = true;

Varsayılan olarak, yalnızca commentadmin grubundaki kullanıcılar yorumları silebilir.

Kullanıcı puanları

This is relevant only if the SocialProfile extension is installed and $wgUserLevels is properly configured.
  • $wgUserStatsPointValues['comment_plus'] — the number of points to give out when another user gives a "thumbs up" to your comment.
  • $wgUserStatsPointValues['comment_ignored'] — the number of points to give out when another user adds your comments to their ignore list (Special:CommentIgnoreList).

Parametreler

  • $wgCommentsDefaultAvatar — the path to an image which will be displayed instead of an avatar if social tools (SocialProfile extension) aren't installed. It should be 50x50px. Note that there is no default avatar image shipped with this extension. The default is defined in extension.json and links to an external image on shoutwiki.com server, an ad-driven wiki farm. You may prefer to set this parameter to point to a local file.
  • $wgCommentsInRecentChanges — by default, this variable is set to false. Set it to true to display comments log entries in Special:RecentChanges, too, in addition to the comments log at Special:Log/comments.
  • $wgCommentsSortDescending — by default, this variable is set to false. Set it to true to sort comments by date descending, with the new comment box and most recent comments at the top.
  • $wgCommentsAbuseFilterGroup — This is the custom group name for AbuseFilter for when the AbuseFilter extension is enabled. It ensures that AbuseFilter only pulls the filters related to Comments. If you want AbuseFilter to pull all the filters, enter 'default' here. The default value for this is 'comment', which ensures that AbuseFilter will only look for filters specifically written to target comments.

Sihirli kelimeler/Ayrıştırıcı işlevleri

Yorumlar, 2 sihirli kelime ve bir ayrıştırıcı işlevi içerir:

  • {{NUMBEROFCOMMENTS}} gives the entire number of comments on the wiki.
  • {{NUMBEROFCOMMENTSPAGE}} gives number of comments on the current page.
  • {{NUMBEROFCOMMENTSPAGE:<pagename>}} gives number of comments on the given page.

Kancalar

Comments extension adds three hooks, Comment::add, Comment::delete and Comment::isSpam.

Hook name When it is called Parameters
Comment::add After a comment has been added to the database, at the bottom of Comment::add function
  • $comment (instance of Comment class)
  • $commentID
  • $pageID
Comment::delete After a comment has been deleted and the caches have been purged (function delete on class Comment)
  • &$comment (instance of Comment class)
  • $commentID
  • $pageID
Comment::isSpam Called in Comment::isSpam before performing other spam checks.
  • &$text (user-supplied comment text to check against spam)
  • &$retVal (boolean; function return value, i.e. does the supplied text contain spam (true) or not (false))

Anti-spam

Though (as of Q3/2023) Comments does not (yet) support ConfirmEdit, MediaWiki's de facto CAPTCHA extension, there are plenty of other anti-spam measures built in, including:

  • restricting who can add comments and/or comments that contain hyperlinks (see the #User rights section above)
  • support for $wgSpamRegex and $wgSummarySpamRegex
  • possibility for extension developers to implement custom spam checks via the Comment::isSpam hook point (see the #Hooks section above)
  • AbuseFilter interoperability — AbuseFilter can be made to check if the action variable's value is comment to write filters that apply only to comments made via the Comments extension; the new_wikitext variable contains the actual comment text, and the new_size variable is calculated on-demand based on the value of the new_wikitext variable. Refer to AbuseFilter's documentation for more details on how those variables and filters work.
    • The new configuration variable $wgCommentsAbuseFilterGroup can be set to 'default' to make existing AbuseFilter filters apply to comments as well. By default, it is set to 'comment', so only filters specifically designed to target comments will be executed against comments made via the Comments extension.

Uluslararasılaştırma

The Comments extension currently has (partial or full) support for 68 different languages, including English. Please visit translatewiki.net if you want to translate Comments or other extensions of the social tools family of extensions into your language or modify existing translations.

Ayrıca bakınız