Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
playground:richb:tabbox-experiment [2022/09/08 12:21] – created richb-hanoverplayground:richb:tabbox-experiment [2022/09/10 20:45] richb-hanover
Line 1: Line 1:
 ====== 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:
Line 7: Line 7:
 <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}}
 +
 +===== Archer C7 =====
 +
 +{{wst>deviceinfo|Archer C7}}
  
 +===== WNDR3700 =====
  
 +{{wst>deviceinfo2|wndr3700|v2}}
  • Last modified: 2022/09/11 23:55
  • by richb-hanover