Template:Assistant:Context/merge

From Wikinews, the free news source you can write!
Jump to navigation Jump to search
[edit] Template documentation

Usage

[edit]
This is part of the Context assistant.

This auxiliary template for Wikinews:Assistant:Context constructs an updated context-requests list. Parameters:

  • first unnamed — required — previously established context-requests list, or blank.
  • second unnamed — required — output of {{Assistant:Context/delta}}.

Examples

[edit]
code output

{{Assistant:Context/merge
|1=
|2=((true "y") (false) ("test" "x" "z" ))}}

( ( true "y" ) ( false ) ( "test" "x" "z" ) )

{{Assistant:Context/merge
|1=((true "a" "b" "y" "c") (false "j" "k") ("foo" "w"))
|2=((true "y") (false) ("test" "x" "j" ) ("foo" "x"))}}

( ( true "a" "b" "y" "c" ) ( false "j" "k" ) ( "foo" "w" ) ( "test" "x" "j" ) )

{{Assistant:Context/merge
|1=((true "a" "b" "y" "d") (false "j" "k") ("foo" "w" "x") ("bar" "j" "k"))
|2=((true "x" "y" "z") (false "i" "j" "m") ("test" "x" "j" ) ("foo" "q" "x") ("quux" "fnord"))}}

( ( true "a" "b" "y" "d" "x" "z" ) ( false "j" "k" "i" "m" ) ( "foo" "w" "x" ) ( "bar" "j" "k" ) ( "test" "x" "j" ) ( "quux" "fnord" ) )

See also

[edit]