401st Bomb Group (H) Association
The best damned outfit in the USAAF!
Welcome
Guest
, you are in:
<root>
ForumNew
ForumOld
Help
•
Login
The 401st BG
401st Histories
History
Servicemen
Leaders
Aircraft
Missions
Our Association
About Us
Membership
News
Contact
Contributions
Forums
Old
"New"
Facebook
PX
Store
Zazzle
Gallery
Albums
NARA
Videos
Repaints
Reunions
People
Wartime Accounts
Life in England
Historical Society
Reference
401st Links
Bibliography
Website
Home
All Pages
Categories
Search this website:
»
Copyright 401st © BGA
Back
Snippets
== What is a Snippet? == A '''snippet''' in ScrewTurn Wiki is a reusable, programmable block that allows you to insert dynamic or custom content into a wiki page using special syntax. Snippets are a core extension mechanism that let you go beyond plain text and include features like: * Image galleries * Video embedding * Automatically generated content (e.g., mission lists, squadron data) * Form elements or special layouts * Links to external resources (PDFs, YouTube, etc.) Snippets can accept '''parameters''' and behave similarly to template tags in other wiki systems. === How Snippets Work === A snippet is typically written like this: <NoWiki>{s:SnippetName|param1|param2|...}</NoWiki> ==== Example ==== <NoWiki>{s:YouTube|abcd1234|640|360}</NoWiki> This would embed a YouTube video with the specified ID and dimensions. Some snippets do not take any parameters. Others may require multiple, and the order of parameters is important — they are positional, not named. === Types of Snippets === Snippets in this wiki can generally be grouped into a few categories: * '''Content Formatting''' ** <NoWiki>{s:Accordion}</NoWiki>, <NoWiki>{s:FloatBox}</NoWiki>, <NoWiki>{s:CorneredImage}</NoWiki>, <NoWiki>{s:ModalWindow}</NoWiki> * '''Data-Driven Content''' ** <NoWiki>{s:MemberMissionList}</NoWiki>, <NoWiki>{s:AircraftBySquadronList}</NoWiki>, <NoWiki>{s:MissionPage}</NoWiki> * '''Media Embeds''' ** <NoWiki>{s:YouTube}</NoWiki>, <NoWiki>{s:AlbumImage}</NoWiki>, <NoWiki>{s:ImageCard}</NoWiki> * '''Utility / Navigation''' ** <NoWiki>{s:WikiNav}</NoWiki>, <NoWiki>{s:TopicNav}</NoWiki>, <NoWiki>{s:ForumNav}</NoWiki> * '''Forms & Interaction''' ** <NoWiki>{s:DonationForm}</NoWiki>, <NoWiki>{s:SendMail}</NoWiki>, <NoWiki>{s:Join_or_Donate}</NoWiki> === Notes on Usage === * Snippets are parsed and rendered dynamically when the page is displayed. * Providing incorrect or missing parameters may result in rendering errors or broken functionality. * Some snippets only display content; others interact with data sources or file uploads. * Snippets are typically defined in the site’s code base or added via extensions or plugins. === Summary === Snippets are a flexible, powerful way to make ScrewTurn Wiki pages dynamic and modular. They can: * Insert complex or automated content * Be reused across pages * Accept parameters for customization * Be used in combination for advanced layouts or displays See the [++Help.Snippets-Reference|Snippets Reference] page for a full list of available snippets and how to use them.
Meta Keywords:
Meta Description:
Change Comment:
Modified on 2025/07/10 13:04
by
Administrator
Categorized as
Uncategorized