Difference between revisions of "DPL Example 029"

From FollowTheScore
Jump to: navigation, search
Line 17: Line 17:
 
Calling the URL could look like this:
 
Calling the URL could look like this:
  
[http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title=Template:Set_Parameter_Value&DPL_arg1=DPL_Example_029/DummyPage&DPL_arg2=DemoTemplate&DPL_arg3=parameter+1&DPL_arg4=new+value click to simulate change]
+
[http://{{SERVERNAME}}{{SCRIPTPATH}}/index.php?title=Template:Set_Template_Parameter&DPL_arg1=DPL_Example_029/DummyPage&DPL_arg2=DemoTemplate&DPL_arg3=parameter+1&DPL_arg4=new+value click to simulate change]

Revision as of 09:40, 25 June 2009

back to list of examples

Change the value of a template parameter in a certain page

We defined a DPL based template which takes 4 parameters:

  • a page name
  • a template name
  • a parameter name
  • a value for that parameter
  • a control parameter

Using this template you can modify a page.

The template can either be called from within a wiki page or via the command line.

If called from a wiki page one would probably use a form like this:

{{#form: Calling the URL could look like this:

click to simulate change