Template:Change value

From cm2.liecourt.com


This is the Change value template. It should be called in the following format:

{{subst:Change value
|1= Property 
|2= < Add / Remove >
|3= < text > value to add to or remove from the property

|Query= < Optional: SMW query statement > instead of using show:{{FULLPAGENAME}}, an ask with the query statement will be performed to find the current property value
}}

Examples (but you'll have to try them on a page that has the property):

{{subst:Change value |Favorite work instruction pageid |Remove | 27455 }}

{{subst:Change value |Favorite customer pageid |Add |29323 }}

This template can also be used as a regular template, since safesubst is used, though I'm not sure if this would be useful anywhere:

{{Change value
|1= Property 
|2= < Add / Remove >
|3= < text > value to add to or remove from the property

|Query= < Optional: SMW query statement > instead of using show:{{FULLPAGENAME}}, an ask with the query statement will be performed to find the current property value
}}