This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| playground:richb:tabbox-experiment [2022/09/08 12:24] – richb-hanover | playground:richb:tabbox-experiment [2022/09/10 20:45] – richb-hanover |
|---|
| ====== Looking for a "variable" facility ====== | ====== Looking for a "variable" facility ====== |
| |
| The sample tabbox below has a parameter ("Model=wrt3200acm") that occurs multiple times. (Check the source.) | The sample below has a template with a single parameter ("Model=wrt3200acm") that occurs multiple times in the template. (Check the source.) |
| |
| I would like to "parameterize" it, so that I could declare something like ''MODEL="wrt3200acm"'' (to use bash syntax) and then use ''filter : Model=$MODEL'' for each of the five copies. As a further step, I would place the entire %%<WRAP>%% in an %%{{include}}%% so that individual pages could say something like: | I would like to "parameterize" it, so that I could declare something like ''MODEL="wrt3200acm"'' (to use bash syntax) and then use ''filter : Model=$MODEL'' for each of the five copies. As a further step, I would place the entire %%<WRAP>%% in an %%{{include}}%% so that individual pages could say something like: |
| <code> | <code> |
| MODEL="wrt3200acm" | MODEL="wrt3200acm" |
| {{page>name-of-the-tabbox}} | {{page>name-of-the-tabbox-template}} |
| </code> | </code> |
| |
| Is there a "variable" facility in Dokuwiki that will provide this? Thanks. | Is there a "variable" facility in Dokuwiki that will provide this? Thanks. |
| |
| |
| ---- | ---- |
| | **Potential Solution:** the wst plugin. See https://forum.dokuwiki.org/d/20448-create-my-own-variable for a discussion |
| | ---- |
| | |
| ===== Sample Tabbox ===== | ===== Sample Tabbox ===== |
| |
| {{page>tabbox-template|wrt3200acm}} | {{page>tabbox-template}} |
| | |
| | ===== Archer C7 ===== |
| | |
| | {{wst>deviceinfo|Archer C7}} |
| | |
| | ===== WNDR3700 ===== |
| | |
| | {{wst>deviceinfo2|wndr3700|v2}} |