Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
playground:richb:playground [2022/09/08 01:51] – switch to wndr3700 richb-hanoverplayground:richb:playground [2022/09/08 11:25] richb-hanover
Line 1: Line 1:
 +====== Looking for a "variable" facility ======
  
 +The sample tabbox below has a parameter ("Model=wrt3200acm") that occurs multiple times. (Check the source.)
  
-<WRAP 80%>+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> 
 +MODEL="wrt3200acm" 
 +{{page>name-of-the-tabbox}} 
 +</code> 
 + 
 +Is there a "variable" facility in Dokuwiki that will provide this? Thanks. 
 + 
 + 
 +---- 
 +===== Sample Tabbox ===== 
 + 
 + 
 +<WRAP>
 <tabbox Hardware highlights> <tabbox Hardware highlights>
 ---- datatable ---- ---- datatable ----
Line 7: Line 23:
 header  : Model, Version,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB header  : Model, Version,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB
 align   : c,c,c,c,c,c,c,c,c,c,c,c align   : c,c,c,c,c,c,c,c,c,c,c,c
-filter     : Model=wndr3700+filter     : Model=wrt3200acm
 ---- ----
 ---- datalist ---- ---- datalist ----
 cols    : Comments_, Comments network ports_, Comments USB SATA ports_, WLAN Comments_ cols    : Comments_, Comments network ports_, Comments USB SATA ports_, WLAN Comments_
 align   : l align   : l
-filter  : Model=RT3200+filter  : Model=wrt3200acm
 ---- ----
  
Line 20: Line 36:
 headers : Model, Version, Current Release, OEM Info, Forum Topic, Technical Data headers : Model, Version, Current Release, OEM Info, Forum Topic, Technical Data
 align   : c,c,c,c,c,c,c,c align   : c,c,c,c,c,c,c,c
-filter     : Model=RT3200+filter     : Model=wrt3200acm
 ---- ----
  
Line 27: Line 43:
 template: meta:template_datatemplatelist template: meta:template_datatemplatelist
 cols    : Brand, Model, Versions, Device Type, Availability, Comments_, Supported Since Commit_git Supported since Rel, Supported current Rel,  Instruction Set, Sub Instruction Set, Bootloader, CPU, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN Hardwares, WLAN 2.4GHz, WLAN 5.0GHz, Detachable Antennas_, WLAN Comments_,  USB ports_, SATA ports_,  Serial, JTAG, Comments USB SATA ports_,LED count, Button count, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url cols    : Brand, Model, Versions, Device Type, Availability, Comments_, Supported Since Commit_git Supported since Rel, Supported current Rel,  Instruction Set, Sub Instruction Set, Bootloader, CPU, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN Hardwares, WLAN 2.4GHz, WLAN 5.0GHz, Detachable Antennas_, WLAN Comments_,  USB ports_, SATA ports_,  Serial, JTAG, Comments USB SATA ports_,LED count, Button count, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url
-filter     : Model=RT3200+filter     : Model=wrt3200acm
 ---- ----
  
Line 34: Line 50:
 cols       : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Device Techdata_pageid cols       : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Device Techdata_pageid
 headers    : Model, Versions, Current Release, OpenWrt Install URL, OpenWrt Upgrade URL, Device Techdata headers    : Model, Versions, Current Release, OpenWrt Install URL, OpenWrt Upgrade URL, Device Techdata
-filter     : Model=RT3200+filter     : Model=wrt3200acm
 ---- ----
 </tabbox> </tabbox>
 </WRAP> </WRAP>
  • Last modified: 2022/09/08 13:08
  • by richb-hanover