Difference between revisions of "DPL talk:Manual - DPL parameters: Other parameters"

From FollowTheScore
Jump to: navigation, search
(&action=purge: new section)
(&action=purge)
Line 44: Line 44:
  
 
This very useful command (in combination with allowcachedresults) unfortunately stoped working on our wiki. Instead of refreshing the query it sends the user to a new page ending with "&action=purge". Our wiki seems to read this as part of the address and not as a command. Is it possible that it is not compatible with the latest version of mediawiki? My best, --[[User:Gollum2|Gollum2]] 19:29, 27 October 2008 (UTC)
 
This very useful command (in combination with allowcachedresults) unfortunately stoped working on our wiki. Instead of refreshing the query it sends the user to a new page ending with "&action=purge". Our wiki seems to read this as part of the address and not as a command. Is it possible that it is not compatible with the latest version of mediawiki? My best, --[[User:Gollum2|Gollum2]] 19:29, 27 October 2008 (UTC)
 +
 +
:I believe that this is part of the mediawiki software and not part of this extension, which version of mediawiki are you currently running? [[User:Redekopmark|Redekopmark]] 03:37, 29 October 2008 (UTC)

Revision as of 05:37, 29 October 2008

allowcachedresults

Does "allowcachedresults" use the data that is stored in the browser's cache, or is there something like a "server cache" where the results get stored? The later would be really useful in our case because our visitors usually just consult the pages once and it would be fine if the database-query results are updated only once a day or so.

My best, --Gollum2 17:43, 31 May 2008 (CEST)

It's a server-side cache. --Rezyk 02:18, 3 June 2008 (CEST)

Last updated article

Hi everybody,

I use your extension to display an extract of the last updated article on my main page. A couple of articles start with a template and I can't get the first 200 characters because of this template (displayed as a table). I'd like to ignore this template and display only the characters after it. I used reset or eliminate to do that but it didn't work.

Here is my DPL query :

{{#dpl:
  |notnamespace=Event
  |notnamespace=Image
  |notnamespace=User
  |notnamespace=Template
  |ordermethod=lastedit
  |order=descending
  |addeditdate=true
  |userdateformat=d/m/y H:i
  |adduser=true
  |minoredits=exclude
  |count=1
  |skipthispage=yes
  |includepage= %0[200]
  |format= ,[[%PAGE%|%TITLE%]] <br/> <span class='lastArt_details'>by [[User:%USER%|%USER%]] - %DATE%</span> <br/>
  |reset=templates
}}

Thank you for your help -- Marineam 09:42, 14 October 2008 (UTC)

Reply

This is indeed a problem for which there is no simple solution currently. The characters of each paragraph are counted from the beginning , regardless if they contain a template call or represent normal wiki text. I suggest that you start your documents with a headline after the template call (then DPL can be told to show the content after that headline). If you do not want a headline (because it would appear to the user) you could use a pair of section markers for the portion of the text you want to display. This may be the most elegant solution as it allows you to decide exactly what shall be shown. But it requires editing of your articles ... Gero 06:48, 17 October 2008 (UTC)

&action=purge

This very useful command (in combination with allowcachedresults) unfortunately stoped working on our wiki. Instead of refreshing the query it sends the user to a new page ending with "&action=purge". Our wiki seems to read this as part of the address and not as a command. Is it possible that it is not compatible with the latest version of mediawiki? My best, --Gollum2 19:29, 27 October 2008 (UTC)

I believe that this is part of the mediawiki software and not part of this extension, which version of mediawiki are you currently running? Redekopmark 03:37, 29 October 2008 (UTC)