Value parser function
Appearance
This page demonstrates the neowiki_value parser function for reading values from Subjects.
Reading from the Current Page's Subject
When used on a page with a Subject, neowiki_value reads from that page's main Subject by default.
Visit ACME Inc to see these values in the infobox.
| Property | Syntax | Result |
|---|---|---|
| Founded at | {{#neowiki_value: Founded at | page=ACME Inc}} |
2005 |
| Websites | {{#neowiki_value: Websites | page=ACME Inc}} |
https://acme.example |
| Products | {{#neowiki_value: Products | page=ACME Inc}} |
Foo, Bar, Baz |
| World domination progress | {{#neowiki_value: World domination progress | page=ACME Inc}} |
42% |
| Missing property | {{#neowiki_value: Nonexistent | page=ACME Inc}} |
(empty) |
Custom Separator
Multi-valued properties use , as separator by default. Use separator= to change it:
- Default: Foo, Bar, Baz
- Semicolons: Foo;Bar;Baz
- Pipe: Foo|Bar|Baz
Cross-Page Lookups
Read values from any page using the page= parameter:
- Professional Wiki was founded at: 2019
- ACME Inc was founded at: 2005
Inline Usage
The parser function can be used inline in running text:
NeoWiki, ProWiki are products of Professional Wiki, which was founded in 2019.