« Formulaire:Related To » : différence entre les versions
De Semantic MediaWiki - Sandbox
(testing how things render) |
Balise : Éditeur de wikicode 2017 |
||
Ligne 10 : | Ligne 10 : | ||
==Things that Render in the Form== | ==Things that Render in the Form== | ||
{{FULLPAGENAME}} | '''{{FULLPAGENAME}}''' - Oh this works! I didn't know the magic words *knew* what article was the subject when being rendered on a form. | ||
*<nowiki>{{#ask: [[Page::{{FULLPAGENAME}}]] |?Text= |mainlabel=-}} </nowiki> | *<nowiki>{{#ask: [[Page::{{FULLPAGENAME}}]] |?Text= |mainlabel=-}} </nowiki> | ||
*{{#ask: [[Page::{{FULLPAGENAME}}]] |?Text= |mainlabel=-}} | *{{#ask: [[Page::{{FULLPAGENAME}}]] |?Text= |mainlabel=-}} |
Dernière version du 9 juillet 2019 à 22:12
relatedto
...and be able to display a query result based on a parameter or field here: This is the information
So the user knew what to put in here:
somefield
Things that Render in the Form
Formulaire:Related To - Oh this works! I didn't know the magic words *knew* what article was the subject when being rendered on a form.
- {{#ask: [[Page::{{FULLPAGENAME}}]] |?Text= |mainlabel=-}}
<page name>
- {{#ask: [[Page::<page name>]] |?Text= |mainlabel=-}}
- , , This is the information
This field is already stored on the article and could be used in a query: someReference
OR the page Related To has a Page property set to this one.
{{{end template}}}