<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://wikibase.nl/Special:URIResolver/'>
	<!ENTITY category 'http://wikibase.nl/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://wikibase.nl/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://open-csp.org/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://open-csp.org/Special:ExportRDF/DevOps-3ADoc/FlexForm/2.0/create">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-30T18:22:23+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://wikibase.nl/Special:URIResolver/DevOps-3ADoc/FlexForm/2.0/create">
		<rdfs:label>create</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://open-csp.org/Special:ExportRDF/DevOps-3ADoc/FlexForm/2.0/create"/>
		<swivt:page rdf:resource="https://open-csp.org/DevOps-3ADoc/FlexForm/2.0/create"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50000</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en</swivt:wikiPageContentLanguage>
		<property:Class rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc</property:Class>
		<property:Doc_parent rdf:resource="&wiki;DevOps-3ADoc/FlexForm/create-2Dor-2Dedit-2Da-2Dpage"/>
		<property:Doc_sort_order rdf:datatype="http://www.w3.org/2001/XMLSchema#double">205</property:Doc_sort_order>
		<property:Doc_subject rdf:resource="&wiki;DevOps-3ADoc/FlexForm"/>
		<property:Doc_synopsis rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Using a form to create new pages or overwrite existing</property:Doc_synopsis>
		<property:Doc_target_group rdf:datatype="http://www.w3.org/2001/XMLSchema#string">User</property:Doc_target_group>
		<property:Doc_title_with_versions rdf:datatype="http://www.w3.org/2001/XMLSchema#string">create (2.0,2.1,2.5)</property:Doc_title_with_versions>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.0</property:Subject_version>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.1</property:Subject_version>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.5</property:Subject_version>
		<property:Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">create</property:Title>
		<property:Has_query rdf:resource="&wiki;DevOps-3ADoc/FlexForm/2.0/create-23_QUERY4ba1580d2f1b642fc8e2e258e58224a5"/>
		<swivt:wikiPageCreationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2022-12-22T19:44:15Z</swivt:wikiPageCreationDate>
		<property:Creation_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2459936.3223958</property:Creation_date-23aux>
		<property:Display_title_of rdf:datatype="http://www.w3.org/2001/XMLSchema#string">create</property:Display_title_of>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2025-08-25T12:02:59Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2460913.0020718</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc/FlexForm/2.0/create</swivt:wikiPageSortKey>
		<property:Page_creator rdf:resource="&wiki;User-3ACharlot"/>
		<property:Page_author rdf:resource="&wiki;User-3AMaintenance_script"/>
		<property:Page_author rdf:resource="&wiki;User-3ACharlot"/>
		<property:Page_author rdf:resource="&wiki;User-3AEbc16062-2Ddd09-2D4928-2D8cf3-2D821f492b0c44"/>
		<property:Page_author rdf:resource="&wiki;User-3AFd4138e7-2D8b46-2D4c8f-2D99bf-2Dd4b738ebc295"/>
		<property:Page_author rdf:resource="&wiki;User-3A944f869b-2D8467-2D464e-2D95c7-2D903362952755"/>
		<property:Page_author rdf:resource="&wiki;User-3A7b610bef-2Ddc06-2D4dd8-2Dbd5a-2Df6db8946dbe0"/>
		<property:Page_ID rdf:datatype="http://www.w3.org/2001/XMLSchema#double">337</property:Page_ID>
		<property:External_links rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://www.mediawiki.org/wiki/Help:Substitution</property:External_links>
		<property:External_links rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://www.mediawiki.org/wiki/Multi-Content_Revisions</property:External_links>
		<property:Parsed_text rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Name 
 _create
 
 Type 
 _create
 
 Synopsis 
 Using a form to create new pages or overwrite existing pages
 
 Description 
 _create can be defined as part of a form to have new page(s) created on form submit or overwrite (an) existing page(s).
 
 Parameters 
 _create 
  mwtemplate = Name of a template to use as content for the new page. If you have a form with only one input element you can also use mwtemplate="wsnone". This will take the content of the form input element and make it the source content of the new page (without putting it inside a template).
  mwwrite = Full name of the target page; or when used with 'mwoption', part of the page name; or a formula in the format "::id::&lt; ... &gt;" referencing the value of 'mwwrite' from another _create (see example 4 below).
  mwfollow = Will send the user to the newly create page after form submission
  mwoption can hold three different values:
 
 " add_random " = Create random numbers 
 " next_available " = Get the next available number. If mwwrite is : "orders/", this option will find the highest orders number (e.g. orders/192) and will create a page with one number higher (e.g. orders/193) 
 " range: " = Get the next available free slot in a range of numbers. If mwwrite is : "orders/", this option will find the first free spot in a range of numbers. If mwoption="range:2019000-2019999" and mwwrite="orders/" then FlexForm will start looking for a page called orders/2019000. If exists it will look for orders/2019001 etc.. till the first free page is found. 
 
 mwleadingzero can be used in combination with range. When a range is set like 1-99999 using mwleadingzero will use the length of the end range and use it to fill the start range with leading zeros, making the range from 00001-99999.
  mwfields = comma separated names of form elements that need to be included. Only works when using multiple _create.
 If you are creating multiple pages and want to re-assign form fields to template variables, you still add the form field name to mwfields, but add " :: " and then the name of the template variable. So if you want to tell mwfields to use formfield " name2 ", but add it to the template as " Name ", add : " name2::Name " to mwfields.
  mwslot = name of a specific content slot to use.
  nooverwrite = when this is set, no create will be done for a page that already exists. Even if you are creating a new slot for a page that already exist.
  noseo = when this is set, even if the setting create-seo-titles in your local settings is set to true to always create SEO friendly page titles, it will not make the title of a new page SEO friendly, but use the title given.
  mwformat = defaults to wiki. Currently only supports wiki or json. When set to json, the page content of the page will become a json. When used with mwtemplate, then the template name will be the key for the json. All form values will be stored as strings. Every new array with key names will automatically get a ffID value that will always be unique. This is done for easy editing later.
 There are several ways for creating a page with FlexForm.
 
 Easiest Use mwtemplate and mwwrite as described above (and optionally wsfollow, wsoption, etc) This will use the values of mwtemplate and mwwrite and any form elements the current for has and create a new page with template "mwtemplate" and title of "mwwrite". See example 1. 
 More advanced and possibilities Use mwtemplate and mwwrite with more options than described above (and optionally wsfollow, wsoption, etc) mwwrite can use can use other elements in the form and use those values to create a title for a new page. Field names can be added using square brackets. So if a form also has a text input field of "title" mwwrite could be "[title]".  [mwrandom] can also be used e.g. mwwrite="[title]/[mwrandom]". See example 2. 
 Create multiple pages with one form and control what form elements are used. This is where mwfields comes in. This is a comma separated list of form elements that will be used to create the new page. If a form has 15 text input fields, then using _create will include all 15 (filled-in by user) elements in the new page. Using mwfields you can tell _create specifically what form element to use to create a new page. So, when creating multiple new pages with one form, mwfields should be used with any and all _create. See example 3. 
 Create a new page and fill different content slots for that page.  You have to give the definition of the first _create an id. The other _create elements reference the first _create with a mwwrite like mwwrite="::id::&lt;idOfWSCreateWithID&gt;". See example 4. 
 Example 
 Example 1 : Create a new page with the next available number
 
   &lt; _create  mwwrite = "orders/"  mwtemplate = "Order"  mwoption = "next_available"  /&gt; 
 
 Create a new page with the next available number in a range and always start from the beginning
 
   &lt; _create  mwwrite = "orders/"  mwtemplate = "Order"  mwoption = "range:2019000-2019999"  /&gt; 
 
 Random number
 
   &lt; _create  mwwrite = "Proj-solution:"  mwoption = "add_random"  mwtemplate = "Solution"  /&gt; 
 
 Example 2 : Create from text, mwrandom and fieldvalues
 
   &lt; _create  mwwrite = "Proj-solution:[namefield]/[mwrandom]"  mwtemplate = "Solution"  /&gt; 
 
 Example 3 : Create from text and field values and only include specific form element names in the new template
 
   &lt; _create  mwwrite = "Proj-solution:[namefield]/Personal"  mwtemplate = "Personal"  mwfields = "naam, adres, straat, plaats"  /&gt; 
 &lt; _create  mwwrite = "Proj-solution:[namefield]/Business"  mwtemplate = "Business"  mwfields = "Company, cadres, cstraat, cplaats"  /&gt; 
 
 Example 4 : Create a page with title : Test/[title]. With no main content and a template of Structured data with an argument of Hello in slot:mds-metadataslot". At the same time content slot "mds-metadataslot2" get the same template with argument Hello2.
 
   &lt; _create  id = "testingSlot"  mwwrite = "Test/[title]"  mwtemplate = "Structured data"  mwfollow  mwfields = "Hello"  mwslot = "mds-metadataslot"  /&gt; 
 &lt; _create  mwwrite = "::id::testingSlot"  mwtemplate = "wsnone"  mwfields = "Hello2"  mwslot = "mds-metadataslot2"  /&gt; 
 
 Example 5 : Use wsnone and  substitution  to copy content of an existing page onto a new page. This example copies the content of "Main Page" when creating a new page named "Test new page".
 
   &lt; form &gt; 
 &lt; _create  mwwrite = "Test new page"  mwtemplate = "wsnone"  mwfields = "Content"  /&gt; 
 &lt; textarea  name = "Content" &gt; {{subst::Main Page}} &lt;/ textarea &gt; 
 &lt; input  type = "submit"  /&gt; 
 &lt;/ form &gt; 
 
 Note 
 If you create a page from text, mwrandom and field values and also add mwoption="add_random", another random number will be added to the end of the page title.
 You can have multiple instances of _create in a form, as long as mwfields is a non empty argument with every _create.
If you have multiple _create and they all have a mwfollow, the last _create in the list will be followed.
 
 Links 
 https://www.mediawiki.org/wiki/Multi-Content_Revisions 
 
 The _create and _edit tags share a lot of functionality but they do not always share the same attribute names or their intended usage may differ slightly. By presenting these attributes side by side, the following table may help you on your way more quickly.
 

 
 _create
 
 _edit
 
 comments
 
 
 Can be used to create new pages Can be used to edit existing pages Cannot be used to edit a selection of fields on a page
 
 Cannot be used to create new pages Can be used to edit existing pages, including select fields
 
 
 
 
 mwwrite page title, optionally a formula in conjunction with mwoption or mwleadingzero 
 
 target page id or page title
 
 
 specific to page creation:
  mwleadingzero 
 mwoption 
 noseo 
 nooverwrite  
 
 x 
 
 
 
 
 mwfollow 
 
 x 
 
 If you know the name of the target page in advance, you can always set mwreturn in the form tag instead. mwfollow was specifically created for use cases where the title of the page to be created cannot be predicted.
 
 
 mwfields allows for multiple fields (comma-separated)
 
 formfield allows for single fields only
 
 
 
 
 x 
 
 usefield 
 
 
 
 
 mwslot 
 
 mwslot 
 
 
 mwformat 
 
 format 
 
 wiki or json
 
 
 mwtemplate 
 
 template 
 
 template name or JSON configuration
 
 
 x 
 
 value 
 
 can be used to set the value explicitly, without reading it from a form field.</property:Parsed_text>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://wikibase.nl/Special:URIResolver/DevOps-3ADoc/FlexForm/2.0/create-23_QUERY4ba1580d2f1b642fc8e2e258e58224a5">
		<swivt:masterPage rdf:resource="&wiki;DevOps-3ADoc/FlexForm/2.0/create"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50000</swivt:wikiNamespace>
		<property:Query_depth rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Query_depth>
		<property:Query_format rdf:datatype="http://www.w3.org/2001/XMLSchema#string">plainlist</property:Query_format>
		<property:Query_size rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1</property:Query_size>
		<property:Query_string rdf:datatype="http://www.w3.org/2001/XMLSchema#string">[[:DevOps:Doc/FlexForm/2.0/create]]</property:Query_string>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc/FlexForm/2.0/create# QUERY4ba1580d2f1b642fc8e2e258e58224a5</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AClass" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_parent" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_sort_order" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_subject" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_synopsis" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_target_group" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_title_with_versions" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ASubject_version" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ATitle" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AHas_query" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageCreationDate" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ACreation_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADisplay_title_of" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_creator" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_author" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_ID" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AExternal_links" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AParsed_text" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#masterPage" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_depth" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_format" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_size" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_string" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>