Difference between revisions of "Xxx"

From FollowTheScore
Jump to: navigation, search
Line 2: Line 2:
 
| titlematch=%user%
 
| titlematch=%user%
 
| uses=Template:Issue
 
| uses=Template:Issue
| include=#Problem[200]
+
| include=#Problem
 
 
 
}}
 
}}

Revision as of 21:58, 27 August 2008

  • Issue:Adduser I created a list of recent changes using:
    <DPL>
     ordermethod=lastedit
     order=descending
     count=5
     namespace=
     shownamespace=false
     adduser=true
     redirects=exclude
    </DPL>
    

    I expect to see the last 5 edits with the names of the users that made these edits. I do see the last 5 edits with the names of the initial creators of these pages. Is this a bug or am I doing something wrong? Please help.

    Regards, Paul.

  • Issue:Style error for anonymous users

    MW version is 1.15.1

    I've got a few simple DPL-queries on my front page, but they make the layout act up for anonymous viewers. Even empty tags causes this problem.

    Check it out for yourself @ [1]

    I have a couple of access-preventing extensions going on, but they aren't the cause of this. I've tried deactivating all of those in my LocalSettings.

    Any ideas? My wiki is pretty restricted, so anonymous users only have access to a handful of pages. But I really need to be able to display some DPL-based stuff on the front page.

    --Martinfs 01:20, 11 September 2009 (UTC)

    Reply

    I can hardly imagine that teh effect comes from DPL. A similar problem has never been reported so far. I suggest that you start with an EMPTY page that only contains the DPL code you want to be executed. If the effect then still exists, we can look for the cause.

    Maybe it is your banner that messes up the format (width=100% ?)

    Gero 06:54, 11 September 2009 (UTC)

  • Issue:Selflink is clickable except when using userformat

    See User:Nx. Unless I specify mode=userformat, the link to my page (which should be unclickable since it is the same page) is a clickable link.

  • Issue:Undesired vertical bar inserted in userformat mode output.

    My wiki has pages with templates with templates such as the following:

    {{mytemplate
    |parm1=parm1value
    |parm2=parm2value
    |parm3=parm3value
    }}
    

    I am attempting to generate a list of all uses of 'mytemplate' where parm1 = parmvalue1. I want the list to display the values of two other parameters of the template with separators that I can specify using other parameters. I'm attempting to use the following query:

    {{#dpl:
    |uses=Template:mytemplate
    |mode=userformat
    |includematch=/\s*parm1\s*=\s*parm1value/s
    |includepage={mytemplate}:parm2:parm3
    }}
    

    I want it to give me the following output:

    parm2valueparm3value
    

    ...and then let me specify what separators to put between them.

    However, the query produces the following output:

    parm2value
    |parm3value
    

    The code in includeTemplate() is inserting a vertical bar and newline into the output, apparently presuming that the output is being used to form a template call. But when I specify mode=userformat, I don't want DPL to add any formatting; I want to do that myself.