Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Widget:Home: Difference between revisions

From LCD wiki
No edit summary
No edit summary
Line 35: Line 35:
   ** backimg 背面图片, 获取到鼠标焦点时显示
   ** backimg 背面图片, 获取到鼠标焦点时显示
</noinclude>
</noinclude>
 
<includeonly>
<onlyinclude>
<onlyinclude>
   <html>
   <html>
Line 109: Line 109:
   </html>
   </html>
</onlyinclude>
</onlyinclude>
</includeonly>

Revision as of 22:16, 17 July 2024

 == 用法 ==
    
    {{#widget:Home
    | tabs = ["HDMI显示屏", "MHS-series显示屏", "GPIO显示屏"]
    | tabContents = [
        [
          { 
            title: "3.5寸HDMI显示屏", 
            coverimg: "http://www.lcdwiki.com/images/thumb/0/09/Main_MPI3508.jpg/200px-Main_MPI3508.jpg", 
            backimg: "http://www.lcdwiki.com/zh/images/thumb/2/21/MPI3508-01.jpg/300px-MPI3508-01.jpg" },    
        ],
        [
          { 
            title: "3.5寸HDMI显示屏", 
            coverimg: "http://www.lcdwiki.com/images/thumb/0/09/Main_MPI3508.jpg/200px-Main_MPI3508.jpg", 
            backimg: "http://www.lcdwiki.com/zh/images/thumb/2/21/MPI3508-01.jpg/300px-MPI3508-01.jpg" },    
        ],
        [
          { 
            title: "3.5寸HDMI显示屏", 
            coverimg: "http://www.lcdwiki.com/images/thumb/0/09/Main_MPI3508.jpg/200px-Main_MPI3508.jpg", 
            backimg: "http://www.lcdwiki.com/zh/images/thumb/2/21/MPI3508-01.jpg/300px-MPI3508-01.jpg" },    
        ],
      ]
    }}
    
  
 == 参数说明 ==
 * tabs 分栏名称列表
 * tabContents 分栏内容列表
 ** title 要跳转的文档名称
 ** coverimg 封面图片, 默认显示, 失去鼠标焦点时显示
 ** backimg 背面图片, 获取到鼠标焦点时显示