Last edited 2 weeks ago
by Vhoesl

Sandbox2 and Manual:Extension/Workflows/Activity/SetTemplateParams: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
 
Line 1: Line 1:
==ASK==
==Description==
{{#ask:[[Category:Administration]]
The ''SetTemplateParams'' activity allows automatic setting of template parameters on a wiki page.
|format=table
|?Category
}}


Eine Auswahl von standardmäßig integrierten Inhaltselementen - so hauchen Sie dem Wiki Leben ein!
* Templates are accessed by the order of appearance on the page, starting at 0. Non-existing templates are counted as links, so they do not count in this list.
Wechseln Sie in den <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} Bearbeitungsmodus]</span>, um die Seite selbst zu bearbeiten.
* Parameters inside the template can be specified by their name or the index in case of non-named parameters.
* Index for non-named params starts at 1 (not 0!), as to be consistent with how template params are accessed in the template
* itself.
* Nested templates are currently not supported


<div id="use_cases">
== Example ==
==PDF Handler ==
<syntaxhighlight lang="xml">
[[File:Manual:Manual Wikitext Wikitext reference.pdf|thumb|alt=|283x283px]]
<bpmn:task id="EditTemplate" name="Edit template">
    <bpmn:extensionElements>
<wf:type>set_template_param</wf:type>
</bpmn:extensionElements>
<bpmn:property name="title" default="DummyPage" validation="required,existing-title"/>
<bpmn:property name="user" default="WikiSysop" validation="existing-user"/>
<!-- Index of the template on page (starting from 0) -->
<bpmn:property name="template-index" default="2"/>
<!-- Param to modify. Can be a string in case of named params, or a number, in case of non-named params (starting from 1, accessor for the param) -->
<bpmn:property name="template-param" default="1"/>
<!-- New value to set -->
<bpmn:property name="value" default="Super edited param"/>
<bpmn:property name="minor" default="0"/>


<span><span /><span /><br /></span>
<!-- Output properties -->
<bpmn:property name="revisionId"/>
<bpmn:property name="timestamp"/>
      <bpmn:incoming>Flow_1qh6vpl</bpmn:incoming>
      <bpmn:outgoing>Flow_0if1kyp</bpmn:outgoing>


<span><span /><br /></span>
    </bpmn:task>
</syntaxhighlight>
{| class="wikitable"
! colspan="2" |'''Short profile'''
|-
|Name
|SetTemplateParams
|-
|Async
|Yes
|-
|BPMN type
|<code>bpmn:task</code>
|-
|BPMN Extension Element "wf:type"
|<code>set_template_param</code>
|}


<span><span /><br /></span>
==Properties==
 
{| class="wikitable"
<span><span /><br /></span>
! style="vertical-align:middle;text-align:left;width:70px;" |'''Name of property'''
 
!'''Source'''
<span><span /><br /></span>
!'''Description'''
 
!'''Type'''
== Image preview ==
|-
[[File:Insert files 2.png|none|thumb]]
|<code>title</code>
 
|UIActivity
==Tabellen==
|
 
|string
<span><br /></span>
|-
Tabellen haben praktische Filter- und Sortiermöglichkeiten. Zum Filtern und Sortieren können Benutzer im Ansichtsmodus auf die jeweilige Kopfzeile einer Spalte klicken. Diese Funktion steht im Bearbeitungsmodus nicht zur Verfügung. Beispiel einer filterbaren Tabelle: <br />
| style="width:70px;" |<code>user</code>
{| class="wikitable sortable" style="width:100%;"
|UIActivity
!Funktion!!Wert
|
|
|-
|<code>template-index</code>
|''InstructedActivity?''
|
|
|-
|<code>template- param</code>
|
|
|
|-
|<code>value</code>
|
|
|
|-
|-
|Filterbare Tabelle||funktioniert
|<code>minor</code>
|
|
|
|-
|-
|Kategoriencheck||nicht vorhanden
|<code>revisionId</code>
|
|
|
|-
|-
|Sortierbare Tabelle
|<code>timestamp</code>
|funktioniert
|
|
|
|}
|}
==<span class="bi bi-diagram-3-fill"></span> Diagramme / Infografiken==
<span><span /><span /><br /></span>
Ablaufdiagramme, Organigramme, Prozesslandkarten, BPMN-Diagramme und mehr. Hier als Beispiel eine Infografik, erstellt mit dem eingebunden drawio-Tool:
<bs:drawio filename="Sandkasten-11346612" />
==<span class="bi bi-camera-video"></span> Videos==
<span><br /></span>
Video geht natürlich auch. Egal, ob es direkt im Wiki gespeichert ist oder ob es auf einem gängigen Video-Service läuft. Hier ein Video, das ins Demowiki hochgeladen wurde:
==<span class="bi bi-list-ul"></span> Seitenlisten==
<span><span /><span /><br /></span>
Mit der integrierten Erweiterung ''Smartlist'' lassen sich ganz leicht Seitenlisten erstellen. <smartlist new="false" count="7" trim="false" />
==<span class="bi bi-input-cursor-text"></span> Inputbox==
Inputboxen sind praktische Werkzeuge, um neue Seiten in bestimmte Namensräume (Wikibereiche) zu lenken. Eine Seite, die Sie hier anlegen, wird im Namensraum IMS gespeichert:<inputbox>
type=create
prefix=IMS:
break=no
width=30
buttonlabel=Seite erstellen
</inputbox>
<span /><span /><span /><br />
==<span class="bi bi-code-slash"></span> Codebeispiele dokumentieren==
<span><span /><span /><br /></span>
Code läßt sich übersichtlich über die enthaltene Erweiterung ''SyntaxHighlight'' darstellen:<syntaxhighlight lang="php" line="1">
<?php
echo "Hallo Welt";
?>
</syntaxhighlight>
==<span class="bi bi-rss"></span> RSS-Feed==
<span><span /><span /><br /></span>
Hier ein Feed aus Bluespice.com. Mit oder ohne Beschreibung formatierbar.<rss max="4" highlight="MediaWiki BlueSpice">https://blog.bluespice.com/feed/</rss>
==<span class="bi bi-emoji-smile"></span> Emoticons==
<span><span /><span /><br /></span>
Weil sie immer noch Spaß machen. Smileys sind mit an Bord.
Hello :-)
<span /><span /><span /><br />
==<span class="bi bi-calculator"></span> CountThings==
<span><span /><span /><br /></span>
<bs:countcharacters mode="words">SmokeTest</bs:countcharacters>
==<span class="bi bi-diagram-2"></span>  Kategorienbaum==
<span><span /><span /><br /></span>
Der Kategorienbaum zeigt die Kategorienhierarchie - mal mit, mal ohne die zugehörigen Seiten. Ganz wie Sie wollen...
<categorytree>Produkt</categorytree>
==<span class="bi bi-cloud"></span>  Tag Cloud==
<span><span /><span /><br /></span>
Welche Kategorie wächst am schnellsten? Mit einer TagCloud sehe ich es auf den ersten Blick.
<bs:tagcloud width="98%" float="left" count="10" renderer="text" store="category" showcount="true" minsize="5" maxsize="30" exclude="Pages with syntax highlighting errors, Pages with borken file links, Pages with RSS feeds, Pages with broken file links" />
<span /><span /><span /><br />
==<span class="bi bi-calendar-week"></span>  Widgets==
<span><span /><span /><br /></span>
Iframes, Google Kalendar, Wetteranzeige und mehr. Oder eigene Widgets entwickeln. test
{{#widget:Weather}}
</div>
== Math ==
<math>\sum_{n=1}^\infty \frac 1{n^3}=\frac{\pi^2}{5}+\ln3-\exp2*\ln3</math>
<span><span /><span /><br /></span>
[[de:Seitenentwurf:Sandkasten]]
[[en:{{FULLPAGENAME}}]]

Revision as of 13:28, 27 September 2023

Description

The SetTemplateParams activity allows automatic setting of template parameters on a wiki page.

  • Templates are accessed by the order of appearance on the page, starting at 0. Non-existing templates are counted as links, so they do not count in this list.
  • Parameters inside the template can be specified by their name or the index in case of non-named parameters.
  • Index for non-named params starts at 1 (not 0!), as to be consistent with how template params are accessed in the template
  • itself.
  • Nested templates are currently not supported

Example

<bpmn:task id="EditTemplate" name="Edit template">
    	<bpmn:extensionElements>
			<wf:type>set_template_param</wf:type>
		</bpmn:extensionElements>
		<bpmn:property name="title" default="DummyPage" validation="required,existing-title"/>
		<bpmn:property name="user" default="WikiSysop" validation="existing-user"/>
		<!-- Index of the template on page (starting from 0) -->
		<bpmn:property name="template-index" default="2"/>
		<!-- Param to modify. Can be a string in case of named params, or a number, in case of non-named params (starting from 1, accessor for the param) -->
		<bpmn:property name="template-param" default="1"/>
		<!-- New value to set -->
		<bpmn:property name="value" default="Super edited param"/>
		<bpmn:property name="minor" default="0"/>

		<!-- Output properties -->
		<bpmn:property name="revisionId"/>
		<bpmn:property name="timestamp"/>
      <bpmn:incoming>Flow_1qh6vpl</bpmn:incoming>
      <bpmn:outgoing>Flow_0if1kyp</bpmn:outgoing>

    </bpmn:task>
Short profile
Name SetTemplateParams
Async Yes
BPMN type bpmn:task
BPMN Extension Element "wf:type" set_template_param

Properties

Name of property Source Description Type
title UIActivity string
user UIActivity
template-index InstructedActivity?
template- param
value
minor
revisionId
timestamp



To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions