A peripheral assemblage applied to a toy building system, the peripheral assemblage comprising: a plug-in apparatus (32, 52) comprising: a battery module; a wireless transmission module connectable to another assemblage of the toy building system in a wireless manner; and a plug-in connection module (320, 520) electrically connected to the battery module and the wireless transmission module; and a function apparatus (30, 50) comprising: a function module configured to produce data or operate according to received data; a wired transmission module connectable to the another assemblage of the toy building system in a wired manner; a function connection module (306, 500) detachably connected to the plug-in connection module (320, 520); and a control module electrically connected to the function module, the wired transmission module, and the function connection module (306, 500), and the control module configured to transmit and receive data via a data connection; wherein when the wired transmission module is connected to the another assemblage of the toy building system in the wired manner, the control module forms the data connection and a power connection to the another assemblage of the toy building system through the wired transmission module; when the function connection module (306, 500) is detachably connected to the plug-in connection module (320, 520), the control module forms the data connection to the another assemblage of the toy building system through the wireless transmission module and forms the power connection to the battery module. a battery module; a wireless transmission module connectable to another assemblage of the toy building system in a wireless manner; and a plug-in connection module (320, 520) electrically connected to the battery module and the wireless transmission module; and a function apparatus (30, 50) comprising: a function module configured to produce data or operate according to received data; a wired transmission module connectable to the another assemblage of the toy building system in a wired manner; a function connection module (306, 500) detachably connected to the plug-in connection module (320, 520); and a control module electrically connected to the function module, the wired transmission module, and the function connection module (306, 500), and the control module configured to transmit and receive data via a data connection; wherein when the wired transmission module is connected to the another assemblage of the toy building system in the wired manner, the control module forms the data connection and a power connection to the another assemblage of the toy building system through the wired transmission module; when the function connection module (306, 500) is detachably connected to the plug-in connection module (320, 520), the control module forms the data connection to the another assemblage of the toy building system through the wireless transmission module and forms the power connection to the battery module. a function module configured to produce data or operate according to received data; a wired transmission module connectable to the another assemblage of the toy building system in a wired manner; a function connection module (306, 500) detachably connected to the plug-in connection module (320, 520); and a control module electrically connected to the function module, the wired transmission module, and the function connection module (306, 500), and the control module configured to transmit and receive data via a data connection; wherein when the wired transmission module is connected to the another assemblage of the toy building system in the wired manner, the control module forms the data connection and a power connection to the another assemblage of the toy building system through the wired transmission module; when the function connection module (306, 500) is detachably connected to the plug-in connection module (320, 520), the control module forms the data connection to the another assemblage of the toy building system through the wireless transmission module and forms the power connection to the battery module.