changes

Forskjeller

Her vises forskjeller mellom den valgte versjonen og den nåværende versjonen av dokumentet.

Lenk til denne sammenligningen

Begge sider forrige revisjon Forrige revisjon
Neste revisjon
Forrige revisjon
changes [2016/10/18 15:01]
Daniel Raknes
changes [2017/09/11 16:41] (nåværende versjon)
Linje 1: Linje 1:
 ====== Changes ====== ====== Changes ======
  
 +Dette er en testside for programtillegget Changes som automatisk kan generere en endringslogg for wiki-en. Det finnes en del mulige innstillinger i dette programtillegget som er beskrevet på denne siden.
  
-{{changes>}}+    {{changes>}}
  
 Optionally you can specify a number of parameters that control the scope of the shown changes and the way the list is rendered. By default plugin shows the changes in the entire wiki. To restrict the list of changes to a given namespace and its sub-namespaces you can specify its name either directly or using ns parameter: Optionally you can specify a number of parameters that control the scope of the shown changes and the way the list is rendered. By default plugin shows the changes in the entire wiki. To restrict the list of changes to a given namespace and its sub-namespaces you can specify its name either directly or using ns parameter:
  
-{{changes>foo}} +    {{changes>foo}} 
-{{changes>ns=foo}}+    {{changes>ns=foo}}
  
 The ns parameter supports both inclusion and exclusion of the namespaces. If a namespace name starts with a minus sign that namespace will be excluded. Also you can assign a number of namespaces as a comma separated list: The ns parameter supports both inclusion and exclusion of the namespaces. If a namespace name starts with a minus sign that namespace will be excluded. Also you can assign a number of namespaces as a comma separated list:
  
-{{changes>ns = -foo}} +    {{changes>ns = -foo}} 
-{{changes>ns = foo, bar, -bar:baz}}+    {{changes>ns = foo, bar, -bar:baz}}
  
 The first example will show the changes in all namespaces except of “foo”, the second one will include “foo” and “bar” namespaces except of “bar:baz” sub-namespace. The first example will show the changes in all namespaces except of “foo”, the second one will include “foo” and “bar” namespaces except of “bar:baz” sub-namespace.
Linje 18: Linje 19:
 The number of changes that are presented in the list is controlled with count parameter (defaults to 10). The count can also be specified as just a number: The number of changes that are presented in the list is controlled with count parameter (defaults to 10). The count can also be specified as just a number:
  
-{{changes>15}} +    {{changes>15}} 
-{{changes>count=15}}+    {{changes>count=15}}
  
 It is also possible to control the type of changes shown in the list. By default all types are shown but with type parameter you can restrict the shown changes to a given type. The supported types are create, edit, minor and delete. Multiple types can be specified separated by a comma: It is also possible to control the type of changes shown in the list. By default all types are shown but with type parameter you can restrict the shown changes to a given type. The supported types are create, edit, minor and delete. Multiple types can be specified separated by a comma:
  
-{{changes>type = create}} +    {{changes>type = create}} 
-{{changes>type = edit, minor}}+    {{changes>type = edit, minor}}
  
 You can also filter by user. Multiple users are also separated by comma: You can also filter by user. Multiple users are also separated by comma:
  
-{{changes>user = rauschen}}  +    {{changes>user = rauschen}}  
-{{changes>user = rauschen, andi}}+    {{changes>user = rauschen, andi}}
  
 Filtering by age is possible, too. Just specify the maximum age in seconds (or configure a default in the config). Filtering by age is possible, too. Just specify the maximum age in seconds (or configure a default in the config).
  
-{{changes>maxage = 500}}+    {{changes>maxage = 500}}
  
 The changes can be rendered either as a simple list (default) or using Pagelist plugin. You have to install the Pagelist plugin separately, if it's not available the simple list is used instead. The renderer is selected with the “render” parameter: The changes can be rendered either as a simple list (default) or using Pagelist plugin. You have to install the Pagelist plugin separately, if it's not available the simple list is used instead. The renderer is selected with the “render” parameter:
  
-{{changes>render = list}} +    {{changes>render = list}} 
-{{changes>render = pagelist}}+    {{changes>render = pagelist}}
  
 The renderers can have extra parameters (a.k.a. flags), which can be passed within parenthesis as a comma-separated list: The renderers can have extra parameters (a.k.a. flags), which can be passed within parenthesis as a comma-separated list:
  
-{{changes>render = list(signature)}} +    {{changes>render = list(signature)}} 
-{{changes>render = pagelist(header, nouser)}} +    {{changes>render = pagelist(header, nouser)}} 
-{{changes>ns = foo,  bar, -bar:baz&render = pagelist}} +    {{changes>ns = foo,  bar, -bar:baz&render = pagelist}} 
-{{changes>type = create&render = list(dayheaders, signature, nocomments, nouser)}}+    {{changes>type = create&render = list(dayheaders, signature, nocomments, nouser)}}
  
 The built-in list renderer supports the following parameters: The built-in list renderer supports the following parameters:
Linje 60: Linje 61:
 If you want to pass a number of parameters to the plugin they should be separated with an ampersand, for example: If you want to pass a number of parameters to the plugin they should be separated with an ampersand, for example:
  
-{{changes>foo&15&type=create&user=rauschen}}+    {{changes>foo&15&type=create&user=rauschen}}
  
  
Linje 90: Linje 91:
  
 ---- ----
-   +
    {{changes>ns=*}}    {{changes>ns=*}}
 {{changes>ns=*}} {{changes>ns=*}}
  
 ---- ----
-    {{changes>ns = -foo}} + 
-{{changes>ns = -foo}}+   {{changes>ns=wiki}} 
 +{{changes>ns=wiki}}
  
 ---- ----
  
-    {{changes>ns = foobar, -bar:baz}}+    {{changes>ns = -wiki}} 
 +{{changes>ns = -wiki}} 
 + 
 +---- 
 + 
 +    {{changes>ns = wikilp_tr, -bar:baz}}
 {{changes>ns = foo, bar, -bar:baz}} {{changes>ns = foo, bar, -bar:baz}}
  
Linje 120: Linje 127:
 ---- ----
  
-    {{changes>type = edit, minor}}+    {{changes>type = edit, minor}} 
 {{changes>type = edit, minor}} {{changes>type = edit, minor}}
  
 ---- ----
  
-    {{changes>user rauschen}}  +    {{changes>type edit}}  
-{{changes>user rauschen}} +{{changes>type edit}}
  
 ---- ----
  
-    {{changes>user = rauschenandi}} +    {{changes>user = rada}}  
-{{changes>user = rauschenandi}}+{{changes>user = rada}}  
 + 
 +---- 
 + 
 +    {{changes>user = radajcs}} 
 +{{changes>user = radajcs}}
  
 ---- ----
Linje 150: Linje 162:
 ---- ----
  
-    {{changes>render = list(signature)}} +    {{changes>render = list(signature, summary)}} 
-{{changes>render = list(signature)}}+{{changes>render = list(signature), summary}}
  
 ---- ----
Linje 157: Linje 169:
     {{changes>render = pagelist(header, nouser)}}     {{changes>render = pagelist(header, nouser)}}
 {{changes>render = pagelist(header, nouser)}} {{changes>render = pagelist(header, nouser)}}
 +
 +----
 +
 +
 +    {{changes>render = pagelist(header)}}
 +{{changes>render = pagelist(header)}}
  
 ---- ----
Linje 165: Linje 183:
 ---- ----
  
-    {{changes>type = create&render = list(dayheaders, signature, nocomments, nouser)}} +    {{changes>type = create&render = list(dayheaders, signature, nouser)}} 
-{{changes>type = create&render = list(dayheaders, signature, nocomments, nouser)}}+{{changes>type = create&render = list(dayheaders, signature, nouser)}}
  
 ---- ----
  
-    {{changes>foo&15&type=create&user=rauschen}} +    {{changes>wiki&15&type=create&user=rada}} 
-{{changes>foo&15&type=create&user=rauschen}}+{{changes>wiki&15&type=create&user=rada}}
  
 ---- ----
  
changes.1476795711.txt.gz · Sist endret: 2017/04/07 10:13 (ekstern redigering)