Module:CodeToText: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
 
Line 1: Line 1:
-- Module:CodeToText
--[[
-- Extracts content snippets from a page using hook markers
* Name: CodeToText
--
* Author: Mark W. Datysgeld
-- Finds content between matching emoji hooks (e.g., 🪝, 📌, 🔖, ⭐) placed at the beginning and end of desired content.
* Description: Utility for extracting content snippets from wiki pages using emoji hook markers placed at the beginning and end of desired content sections
--
* Notes: Example usage: {{#invoke:CodeToText|showSnippet|page=Module:Example|hook=⭐}}; Supports emoji hooks like 🪝, 📌, 🔖, ⭐ for both inline and block content extraction
-- Example:
]]
--  {{#invoke:CodeToText|showSnippet|page=Module:Example|hook=⭐}}


local p = {}
local p = {}