As explained in the [[https://www.mediawiki.org/wiki/Manual:Interface/Wikibase-SortedProperties|manual page for Interface/Wikibase-SortedProperties]], the order of properties in a Wikibase item is determined by parsing the `MediaWiki:Wikibase-SortedProperties` page with the regular expression
```
^[*#]+\h*(?:\[\[(?:d:)?Property:)?(P\d+\b)
```
This matches rows with the plain property name or starting with a link, like:
```
* P7
* [[Property:P8]]
```
I propose to modify the regex so it can match templates as well:
```
* P7
* [[Property:P8]]
* {{NiceTemplate|P8}}
```
This would allow the creation of a standard template to present the properties in a more readable and / or more detailed way to the user, still preserving the functionality of the page.
The proposed regex is:
```
^[*#]+\h*(?:\[\[(?:d:)?Property:)?(?:{{.*|)?(P\d+\b)
```