Complete the code to insert a community template into your Figma project.
figma.import[1]('community-template-url')
The importFile method is used to bring community templates into your Figma project.
Complete the code to list all community templates available in Figma.
const templates = figma.[1]Templates()The listTemplates() function retrieves all available community templates.
Fix the error in the code to correctly apply a community template to the current page.
figma.applyTemplate([1])The correct parameter name is templateId to specify which template to apply.
Fill both blanks to correctly filter community templates by category and popularity.
const filtered = templates.filter(t => t.[1] === 'UI Kits' && t.[2] > 1000)
Use category to filter by template type and popularity to filter by number of likes or downloads.
Fill all three blanks to create a new page, import a community template, and add it to the page.
const page = figma.create[1]('New Design Page'); const template = figma.import[2]('template-url'); page.[3](template);
Create a new Page, import a Template, then appendChild adds the template to the page.