I. Writing format and precautions of the woven dream template Tag: 1. writing format: ① {dede: Tag name parameter = 'value'} underlying template {/dede: Tag name} ② {dede: tag name parameter = 'value'/} 2. note: ① the label writing must be in the halfwidth state. ② For example, a label call from 1 to ① must have a closed label starting with the label name and exist in the table of the underlying template; ③ For example, 1-② There is no underlying template, and no closed tag exists; his style is written into the corresponding tag source code. Ii. Concepts and calling methods of the underlying template: 1. What is the underlying template? The underlying template is not a template! It is the specific content to be displayed on the actual page; 2. application of the underlying template: Call method [field: field name/] instance: {dede: arclist row = '6' titlelen = '20'} <li> <a href = "[field: arcurl/]" title = "[field: fulltitle/] "> [field: title/] </a> </li> {/dede: arclist} 3. usage of the custom macro tag and Smart Tag Wizard: {dede: mytag name = 'tagname' ismake = 'yes/No'/} 4. SQL Tag: 1. SQL label description: SQL label is a kind of advanced application that directly uses SQL query statements for database queries and outputs. It features more flexibility, convenience, and power. SQL label format: {dede: SQL SQL = "complete SQL query statement"} [field: field name/] {/dede: SQL} 3. SQL call example: {dede: SQL = "select * From dede_archives where typeid = 10 limit 0, 10"} [field: title/] {/dede: SQL} V: other common labels 1. Q & A tag ask {dede: ask row = '10' qtype = 'OK' tid = '0' titlelen = '40'} [field: title/] {/dede: ask} parameter: row: number of items qtype: Problem type new commend OK notok high underlying field: tid tidname title url typeurl 2. link flink {dede: flink row = '10' type = 'image'/} parameter: row: quantity qtype: output type textall text image titlelen: Maximum site characters linktype: link location 1: inner page 2: homepage 0: Unaudited typeid: site type typeid = "type ID"