Freephile Wiki:ToDo: Difference between revisions
From Freephile Wiki
Created page with "# Need to convert any usage of SMW property annotation to use the parser-friendly #set parser function syntax" |
No edit summary |
||
Line 1: | Line 1: | ||
# Need to convert any usage of SMW property annotation to use the parser-friendly #set parser function syntax | # Need to convert any usage of SMW property annotation to use the parser-friendly [https://www.semantic-mediawiki.org/wiki/Help:Setting_values #set parser function syntax]. | ||
A template for 'Animal' could use this: | |||
<pre> | |||
{{#set: | |||
Species={{{Species|}}} | |||
|Habitat={{{Habitat|}}} | |||
|Diet={{{Diet|}}} | |||
}} | |||
</pre> | |||
Any any page such as 'Lion' would call the template <pre>{{Animal|Species=Lion|Habitat=Savanna|Diet=Carnivore}}</pre> instead of in-page property annotations. |
Revision as of 21:25, 4 September 2025
- Need to convert any usage of SMW property annotation to use the parser-friendly #set parser function syntax.
A template for 'Animal' could use this:
{{#set: Species={{{Species|}}} |Habitat={{{Habitat|}}} |Diet={{{Diet|}}} }}
Any any page such as 'Lion' would call the template
{{Animal|Species=Lion|Habitat=Savanna|Diet=Carnivore}}
instead of in-page property annotations.