| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| playground:richb:playground [2022/09/07 23:33] – Playing with Tabbox richb-hanover | playground:richb:playground [2022/09/08 11:25] – richb-hanover |
|---|
| | ====== Looking for a "variable" facility ====== |
| |
| <tabbox Hardware Highlights> | The sample tabbox below has a parameter ("Model=wrt3200acm") that occurs multiple times. (Check the source.) |
| |
| Hardware Highlights | 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: |
| ---- datatable ---- | |
| cols : CPU,CPU MHz,Flash MB_mbflashs,RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet Gbit ports_, USB ports_ | |
| header : SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,Gbit ports,USB | |
| align : c,c,c,c,c,c,c,c,c,c,c | |
| filter : Brand=Linksys | |
| filter : Model=E8450 | |
| ---- | |
| |
| <tabbox OpenWrt Support> | <code> |
| | MODEL="wrt3200acm" |
| | {{page>name-of-the-tabbox}} |
| | </code> |
| |
| Support | Is there a "variable" facility in Dokuwiki that will provide this? Thanks. |
| |
| |
| | ---- |
| | ===== Sample Tabbox ===== |
| |
| <tabbox Hardware details> | |
| |
| Hardware | <WRAP> |
| | <tabbox Hardware highlights> |
| | ---- datatable ---- |
| | cols : Model, Versions, CPU, CPU MHz, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4Ghz, WLAN 5.0Ghz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ |
| | 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 |
| | filter : Model=wrt3200acm |
| | ---- |
| | ---- datalist ---- |
| | cols : Comments_, Comments network ports_, Comments USB SATA ports_, WLAN Comments_ |
| | align : l |
| | filter : Model=wrt3200acm |
| | ---- |
| |
| | <tabbox OpenWrt Support> |
| | ---- datatable ---- |
| | cols : Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Topic URL_url, Device Techdata_pageid |
| | headers : Model, Version, Current Release, OEM Info, Forum Topic, Technical Data |
| | align : c,c,c,c,c,c,c,c |
| | filter : Model=wrt3200acm |
| | ---- |
| |
| <tabbox Firmware downloads> | <tabbox Hardware details> |
| Firmware | ---- datatemplatelist dttpllist ---- |
| | 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 |
| | filter : Model=wrt3200acm |
| | ---- |
| |
| | <tabbox Firmware downloads> |
| | ---- datatable ---- |
| | 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 |
| | filter : Model=wrt3200acm |
| | ---- |
| </tabbox> | </tabbox> |
| | </WRAP> |