Topic on Extension talk:PageImages

I can't get this to work.

5
Summary by Gunnar.offel

Array format as described.

SungHerSong (talkcontribs)
PrimeHunter (talkcontribs)
SungHerSong (talkcontribs)

> wfLoadExtension( 'PageImages' );

> $wgPageImagesExpandOpenSearchXml = true;

> $wgPageImagesLeadSectionOnly = true;


$wgPageImagesNamespaces = array( -1 => 0, 0 => 1, 1 => 0,

  2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0, 3000 => 0, 3002 => 0, 3004 => 0, 3006 => 1, 3008 => 1,

  3018 => 1, 3020 => 1, 3022 => 1, 3024 => 1, 3026 => 1, 3028 => 1, 3030  => 1, 3030  => 1, 3032  => 1, 3034  => 1, 3036  => 1, 3038  => 1,

  3040  => 1, 3042  => 1, 3044  => 1, 3046  => 1, 3048  => 1, 3050  => 1, 3052  => 1, 3054  => 1, 3056  => 1, 3058  => 1, 3060  => 1,

  3062  => 1, 3064  => 1, 3066  => 1, 3068  => 1, 3070  => 1, 3072  => 1, 3074  => 1, 3076  => 1, 3078  => 1, 3080  => 1, 3082  => 1,

  3084  => 1, 3086  => 1, 3088  => 1, 3090  => 1, 3094  => 1, 3096  => 1, 3098  => 1, 3100  => 1, 3102  => 1, 3104  => 1, 3106  => 1,

  3108  => 1, 3110  => 1, 3112  => 1, 3114  => 1, 3116  => 1, 3118  => 1, 3120  => 1, 3122  => 1, 3124  => 1, 3126  => 1, 3128  => 1,

  3130  => 1, 3132  => 1, 3134  => 1, 3136  => 1, 3138  => 1, 3140  => 1, 3142  => 1, 3144  => 1, 3146  => 1, 3148  => 1, 3150  => 1,

  3152  => 1, 3154  => 1, 3156  => 1, 3158  => 1, 3160  => 1, 3162  => 1, 3164  => 1, 3166  => 1, 3168  => 1, 3170  => 1, 3172  => 1,

  3174  => 1 );


I also tried the following, which didn't work.


$wgPageImagesNamespaces[] = 3036;

PrimeHunter (talkcontribs)

Try to merely list the wanted namespaces: array(0, 3006, 3008, ..., 3036, ...)

SungHerSong (talkcontribs)

Alright, I figured it out. The array didn't work, possibly for the reason you mentioned.


However, the second formatting did work. I just forgot I needed to edit the page before it would work. It's working now.