<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.suws.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Property%3AAllows_value</id>
	<title>Property:Allows value - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.suws.org.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Property%3AAllows_value"/>
	<link rel="alternate" type="text/html" href="https://www.suws.org.uk/wiki/index.php?title=Property:Allows_value&amp;action=history"/>
	<updated>2026-04-29T15:23:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://www.suws.org.uk/wiki/index.php?title=Property:Allows_value&amp;diff=108&amp;oldid=prev</id>
		<title>DavidNewman: Added property</title>
		<link rel="alternate" type="text/html" href="https://www.suws.org.uk/wiki/index.php?title=Property:Allows_value&amp;diff=108&amp;oldid=prev"/>
		<updated>2011-09-11T19:21:57Z</updated>

		<summary type="html">&lt;p&gt;Added property&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Allows value&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
is a [[Help:Properties_and_types#Special_properties|special property]] in Semantic MediaWiki with a built-in meaning:&lt;br /&gt;
it lists one permissible value for a property.&lt;br /&gt;
&lt;br /&gt;
You can use this special property with a property of any datatype to limit its possible values.&lt;br /&gt;
For example, the page for a &amp;#039;&amp;#039;Problem severity&amp;#039;&amp;#039; property might contain:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[allows value::Enhancement]],[[allows value::Trivial]],[[allows value::Minor]],&lt;br /&gt;
 [[allows value::Normal]],[[allows value::Major]],[[allows value::Critical]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Ordered properties ===&lt;br /&gt;
Enumerating several &amp;#039;&amp;#039;Allows value&amp;#039;&amp;#039; does not put the possible values of a property in that order;  properties of [[Type:String]] will still sort in alphabetical order.  You can ensure alphabetical sort order is appropriate using a prefix, for example:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[allows value::a-Enhancement]],[[allows value::b-Trivial]], [[allows value::c-Minor]]...&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
and then you can [[Help:Semantic_search#Comparators|query]] for greater-than-or-equal or less-than-or-equal values, for example &amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;property name&amp;#039;&amp;#039;::&amp;lt;c-Minor]]&lt;br /&gt;
&lt;br /&gt;
You can create a property of [[Type:Number]] and give it allowed values that are &amp;quot;pseudo-numbers&amp;quot;, for example:&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;[[Allows value::1 - Low]] [[Allows value::2 - Medium]] [[Allows value::2 - Middling]] ...&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
SMW&amp;#039;s number datatype ignores the &amp;quot;&amp;#039;&amp;#039;- description&amp;#039;&amp;#039;&amp;quot; after the number.  This gives the set of properties a numerical order and lets you make two values equivalent.&lt;/div&gt;</summary>
		<author><name>DavidNewman</name></author>
	</entry>
</feed>