Freephile Wiki:ToDo: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
# 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].
# Need to convert any usage of SMW property annotation to use the parsoid-friendly [https://www.semantic-mediawiki.org/wiki/Help:Setting_values #set parser function syntax]. <code>#set</code> was favored all the way back in 2014 but debated and not actually removed or resolved.<ref>[https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/584 584 was closed because it wasn't deprecated] [https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/4727 4727 is still open in 2025]</ref>.
 
Note that <nowiki>[[foo::bar]]</nowiki> '''inside''' an ask query does not need to change because it is already in the <nowiki>{{#ask: }}</nowiki> context which is parsed differently. You can see an ask query in action at [[People]]
 
A template for 'Animal' could use this:
A template for 'Animal' could use this:
<pre>
<pre>
    {{#set:
{{#set:
    Species={{{Species|}}}
Species = {{{Species|}}}
    |Habitat={{{Habitat|}}}
| Habitat = {{{Habitat|}}}
    |Diet={{{Diet|}}}
| Diet = {{{Diet|}}}
    }}
}}
</pre>
</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.
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.