מדיה ויקי:Gadget-wikibugs.js – הבדלי גרסאות

אין תקציר עריכה
מ. רובין (שיחה | תרומות)
אין תקציר עריכה
 
שורה 30: שורה 30:
'wikibugs-incomplete-information': 'תארו בפירוט את הבעיה. התיאור שסיפקתם קצר מדי.',
'wikibugs-incomplete-information': 'תארו בפירוט את הבעיה. התיאור שסיפקתם קצר מדי.',
'wikibugs-invalid-page': 'יש למלא את השם.',
'wikibugs-invalid-page': 'יש למלא את השם.',
'wikibugs-reported-by': ' דווח על ידי: $1',
'wikibugs-reported-by': 'דווח על ידי: $1',
'wikibugs-bad-reports-text': '<p>טופס זה <b>אינו מיועד</b> לבקשת ערכים או תוכן חסר. ' +
'wikibugs-bad-reports-text': '<p>טופס זה <b>אינו מיועד</b> לבקשת ערכים או תוכן חסר. ' +
'במקרה שברצונכם לבקש הוספת תכנים פנו ל:</p><ul>' +
'במקרה שברצונכם לבקש הוספת תכנים פנו ל:</p><ul>' +
שורה 40: שורה 40:
'אם אתם חוששים לערוך בעצמכם, או שאינכם מסתדרים עם ממשק העריכה, ניתן גם לדווח על הטעות לעורכים.</p>',
'אם אתם חוששים לערוך בעצמכם, או שאינכם מסתדרים עם ממשק העריכה, ניתן גם לדווח על הטעות לעורכים.</p>',
'wikibugs-image-intro': '<p style="margin-top:0px;">באפשרותכם לדווח על קבצים מפרי זכויות יוצרים, ' +
'wikibugs-image-intro': '<p style="margin-top:0px;">באפשרותכם לדווח על קבצים מפרי זכויות יוצרים, ' +
' קבצים בגרסה טובה יותר בוויקשיתוף או על טעויות בתיאור התמונה.</p>' +
' קבצים בגרסה טובה יותר בחב"דשיתוף או על טעויות בתיאור התמונה.</p>' +
'<p><b>אנא נסו לתקן זאת בעצמכם במידת האפשר.</b></p>',
'<p><b>אנא נסו לתקן זאת בעצמכם במידת האפשר.</b></p>',
'wikibugs-already-reported-notice': '<p><b>ראו גם:</b> <ul>' +
'wikibugs-already-reported-notice': '<p><b>ראו גם:</b> <ul>' +
שורה 183: שורה 183:
*/
*/
goToEditPage: function() {
goToEditPage: function() {
var $editLink = jQuery( '#ca-edit' ).find( 'a' );
var $editLink = jQuery( '#ca-ve-edit' ).find( 'a' );
if ( $editLink.length === 0 ) $editLink = jQuery( '#ca-edit' ).find( 'a' ); //fallback
window.location = $editLink.attr( 'href' ) || mw.util.getUrl( this.reportPage );
window.location = $editLink.attr( 'href' ) || mw.util.getUrl( this.reportPage );
},
},
שורה 324: שורה 325:


if ( ( source !== mw.msg( 'wikibugs-report-source-placeholder' ) ) && source.length ) {
if ( ( source !== mw.msg( 'wikibugs-report-source-placeholder' ) ) && source.length ) {
content += '\n\n'+ mw.msg( 'wikibugs-report-source-subtitle' )+': ' + jQuery.trim( source ) + '\n\n'
content += '\n\n'+ mw.msg( 'wikibugs-report-source-subtitle' )+': ' + jQuery.trim( source ) + ';'
}
}
   
   
// Append a signature to the report
// Append a signature to the report
if ( !mw.user.isAnon() ) {
if ( !mw.user.isAnon() ) {
content += mw.msg( 'wikibugs-reported-by', '~~' + '~~' );
content += '\n\n' + mw.msg( 'wikibugs-reported-by', '~~' + '~~' );
} else {
} else {
content += mw.msg( 'wikibugs-reported-by', jQuery.trim(form.wbAuthor.value) + ' ~~' + '~~' );
content += '\n\n' + mw.msg( 'wikibugs-reported-by', jQuery.trim(form.wbAuthor.value) + ' ~~' + '~~' );
}
}
   
   
שורה 355: שורה 356:
$loadingIcon.show();
$loadingIcon.show();
  var section_uniq = Date.now();
  var section_uniq = Date.now();
var toInsertReport = '{{/מצב|חדש}}\n'+(mw.config.get('wgNamespaceNumber') == 0? '{{#lst:'+talkPageName+'|'+section_uniq+'}}' : content);
var toInsertReport = '{{מצב|חדש}}\n'+(mw.config.get('wgNamespaceNumber') == 0? '{{#lst:'+talkPageName+'|'+section_uniq+'}}' : content);
var toInsertTalk =  
var toInsertTalk =  
'<קטע התחלה="' + section_uniq + '" />'
'<קטע התחלה="' + section_uniq + '" />'
שורה 408: שורה 409:
   
   
  $(function(){
  $(function(){
$('#n-featured-articles').after('<li class="n-bug_in_article"><a href="#">דיווח על טעות</a></li>');
$('#n-featured-articles').after('<li class="n-bug_in_article mw-list-item"><a href="#">דיווח על טעות</a></li>');
if(mw.user.isAnon()){
if(mw.user.isAnon()){
$('li#pt-createaccount').after('<li class="n-bug_in_article"><a href="#">דיווח על טעות</a></li>');
$('li#pt-anoncontribs').before('<li class="n-bug_in_article mw-list-item"><a href="#">דיווח על טעות</a></li>');
}
}
wikiBugsGadget.init();
wikiBugsGadget.init();
});
});