https://bugzilla.wikimedia.org/show_bug.cgi?id=43161

       Web browser: ---
            Bug ID: 43161
           Summary: Using page titles as redirects in gallery format
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticResultFormats
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Gallery format shall support something like meta-property "page name" to link
from image to page containing the property:

{{#ask: [[Category:Some category]]
| ?Has image
| imageproperty=Has image
| redirects=?page name
| format=gallery
}}

Sadly, any kind of "fake" property (like [[Selfurl::{{PAGENAME}}|]] ) doesn't
work. So the following patch is used on my project to archive the same goal:

protected function addImageProperties( SMWQueryResult $results, ImageGallery
&$ig, $imageProperty, $captionProperty, $redirectProperty, $outputMode )
...

if ( $redirectProperty == '?page name' ) {
     $redirects[] = $resultArray->getResultSubject()->getTitle();
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to