Reputation: 11
I have PAGENAME
For example PAGE: iPad
I need two parameters for this page:
How can I get there parameters on page? I would like to be able to get, in addition than {{PAGENAME}}, parameters on the page ?
And where could I store a lot of these parameters?
For example:
iPad1 — $999 — Available
iPad2 — $1999 — Available
iPad3 — $2999 — Not available
iPad4 — $3999 — Available
iPad5 — $2999 — Not available
etc.
How is it edit more comfortable for a lot of parameters?
Upvotes: 1
Views: 102
Reputation: 619
I work on the Pixel Dungeon Wiki a lot and it has a Data template which can be used to store information about an item.
To use it, copy the template over then create a page called ipad/data.
Then add to ipad/data:
{{Data|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{$|}}}
| iPad1price = $999
| iPad1available = AVAILABLE
| iPad2price = $1999
| iPad2available = AVAILABLE
...
}}
Then you can access the information on the page with:
iPad1 price is {{:ipad/data||iPad1price}}
The Data template documentation is quite good for more info on this
Upvotes: 1