Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -647,6 +647,7 @@ |
648 | 648 | $wgOut->addWikiMsg( 'nolinkstoimage' ); |
649 | 649 | return; |
650 | 650 | } |
| 651 | + $wgOut->addHTML( "<div id='mw-imagepage-section-linkstoimage'>\n" ); |
651 | 652 | $wgOut->addWikiMsg( 'linkstoimage' ); |
652 | 653 | $wgOut->addHTML( "<ul class='mw-imagepage-linktoimage'>\n" ); |
653 | 654 | |
— | — | @@ -661,7 +662,7 @@ |
662 | 663 | $wgOut->addHTML( "<li>{$link}</li>\n" ); |
663 | 664 | } |
664 | 665 | } |
665 | | - $wgOut->addHTML( "</ul>\n" ); |
| 666 | + $wgOut->addHTML( "</ul></div>\n" ); |
666 | 667 | $res->free(); |
667 | 668 | |
668 | 669 | // Add a links to [[Special:Whatlinkshere]] |
— | — | @@ -675,8 +676,8 @@ |
676 | 677 | |
677 | 678 | $redirects = $this->getTitle()->getRedirectsHere( NS_IMAGE ); |
678 | 679 | if ( count( $redirects ) == 0 ) return; |
679 | | - |
680 | 680 | |
| 681 | + $wgOut->addHTML( "<div id='mw-imagepage-section-redirectstofile'>\n" ); |
681 | 682 | $wgOut->addWikiMsg( 'redirectstofile' ); |
682 | 683 | $wgOut->addHTML( "<ul class='mw-imagepage-redirectstofile'>\n" ); |
683 | 684 | |
— | — | @@ -685,7 +686,7 @@ |
686 | 687 | $link = $sk->makeKnownLinkObj( $title, "" ); |
687 | 688 | $wgOut->addHTML( "<li>{$link}</li>\n" ); |
688 | 689 | } |
689 | | - $wgOut->addHTML( "</ul>\n" ); |
| 690 | + $wgOut->addHTML( "</ul></div>\n" ); |
690 | 691 | |
691 | 692 | } |
692 | 693 | |
— | — | @@ -697,6 +698,7 @@ |
698 | 699 | $dupes = $this->getDuplicates(); |
699 | 700 | if ( count( $dupes ) == 0 ) return; |
700 | 701 | |
| 702 | + $wgOut->addHTML( "<div id='mw-imagepage-section-duplicates'>\n" ); |
701 | 703 | $wgOut->addWikiMsg( 'duplicatesoffile' ); |
702 | 704 | $wgOut->addHTML( "<ul class='mw-imagepage-duplicates'>\n" ); |
703 | 705 | |
— | — | @@ -709,7 +711,7 @@ |
710 | 712 | $file->getTitle()->getPrefixedText() ); |
711 | 713 | $wgOut->addHTML( "<li>{$link}</li>\n" ); |
712 | 714 | } |
713 | | - $wgOut->addHTML( "</ul>\n" ); |
| 715 | + $wgOut->addHTML( "</ul></div>\n" ); |
714 | 716 | } |
715 | 717 | |
716 | 718 | /** |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -130,6 +130,7 @@ |
131 | 131 | * (bug 14259) Localisation message for upload button on Special:Import is now |
132 | 132 | 'import-upload' instead of 'upload' |
133 | 133 | * Add information about user group membership to Special:Preferences |
| 134 | +* (bug 14146) Wrap usage section on imagepages into <div>s. |
134 | 135 | |
135 | 136 | === Bug fixes in 1.13 === |
136 | 137 | |