Template talk:Example table with computations, with optional substitution
Add topic{{Example table with computations, with optional substitution | date = July 2006 | arpop = 71891 | arar = 193 | nlpop = 16491461 | nlar = 41526 | napop = 221736 | naar = 960 }}
gives:
component | population (July 2006 est.) |
area (km²) |
pop. dens. (per km²) |
currency |
---|---|---|---|---|
Aruba | 71,891 | 193 | 372 | Aruban Florin |
Netherlands | 16,491,461 | 41,526 | 397 | euro |
Netherlands Antilles | 221,736 | 960 | 231 | Netherlands Antilles Gulden |
total | 16,785,088 | 42,679 | 393 |
{{subst:Example table with computations, with optional substitution | date = July 2006 | arpop = 71891 | arar = 193 | nlpop = 16491461 | nlar = 41526 | napop = 221736 | naar = 960 }}
applies multilevel substitution; the resulting wikitext (see the edit window) is rendered the same:
component | population (July 2006 est.) |
area (km²) |
pop. dens. (per km²) |
currency |
---|---|---|---|---|
Aruba | 71,891 | 193 | 372 | Aruban Florin |
Netherlands | 16,491,461 | 41,526 | 397 | euro |
Netherlands Antilles | 221,736 | 960 | 231 | Netherlands Antilles Gulden |
total | 16,785,088 | 42,679 | 393 |
An alternative way of full recursive substitution is with Special:ExpandTemplates. With that method the template code does not need the codes {{{|safesubst:}}}.