r77816 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77815‎ | r77816 | r77817 >
Date:17:47, 5 December 2010
Author:raymond
Status:ok
Tags:
Comment:
Revert r77504 per CR.
Redo the same in the correct file: Add some linebreaks to the wikitext to make it cleaner/easier to read and edit
Modified paths:
  • /trunk/extensions/UploadWizard/resources/combined.js (modified) (history)
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/combined.js
@@ -11775,7 +11775,7 @@
1177611776
1177711777 wikiText += "=={{int:filedesc}}==\n";
1177811778
11779 - wikiText += '{{Information\n' + info + '}}\n\n';
 11779+ wikiText += '{{Information\n' + info + '}}\n';
1178011780
1178111781 // add a location template if possible
1178211782
@@ -11783,14 +11783,14 @@
1178411784 var otherInfoWikiText = $j( _this.otherInformationInput ).val().trim();
1178511785 if ( ! mw.isEmpty( otherInfoWikiText ) ) {
1178611786 wikiText += "=={{int:otherinfo}}==\n";
11787 - wikiText += otherInfoWikiText + "\n\n";
 11787+ wikiText += otherInfoWikiText;
1178811788 }
1178911789
1179011790 wikiText += "=={{int:license-header}}==\n";
1179111791
1179211792 // in the other implementations, category text follows immediately after license text. This helps
1179311793 // group categories together, maybe?
11794 - wikiText += deed.getLicenseWikiText() + _this.div.find( '.categoryInput' ).get(0).getWikiText() + "\n\n";
 11794+ wikiText += deed.getLicenseWikiText() + _this.div.find( '.categoryInput' ).get(0).getWikiText();
1179511795
1179611796
1179711797 return wikiText;
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -1390,7 +1390,7 @@
13911391
13921392 wikiText += "=={{int:filedesc}}==\n";
13931393
1394 - wikiText += '{{Information\n' + info + '}}\n';
 1394+ wikiText += '{{Information\n' + info + '}}\n\n';
13951395
13961396 // add a location template if possible
13971397
@@ -1398,14 +1398,14 @@
13991399 var otherInfoWikiText = $j( _this.otherInformationInput ).val().trim();
14001400 if ( ! mw.isEmpty( otherInfoWikiText ) ) {
14011401 wikiText += "=={{int:otherinfo}}==\n";
1402 - wikiText += otherInfoWikiText;
 1402+ wikiText += otherInfoWikiText + "\n\n";
14031403 }
14041404
14051405 wikiText += "=={{int:license-header}}==\n";
14061406
14071407 // in the other implementations, category text follows immediately after license text. This helps
14081408 // group categories together, maybe?
1409 - wikiText += deed.getLicenseWikiText() + _this.div.find( '.categoryInput' ).get(0).getWikiText();
 1409+ wikiText += deed.getLicenseWikiText() + _this.div.find( '.categoryInput' ).get(0).getWikiText() + "\n\n";
14101410
14111411
14121412 return wikiText;

Follow-up revisions

RevisionCommit summaryAuthorDate
r78070Recombine resources for r77816catrope15:27, 8 December 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77504Add some linebreaks to the wikitext to make it cleaner/easier to read and editraymond20:31, 30 November 2010

Status & tagging log