401st Bomb Group (H) Association
The best damned outfit in the USAAF!
Welcome Guest, you are in: Login

Search this website: »

401st Snippets Reference

401st Snippets Reference

This page lists the available custom snippets used on the 401st Wiki. Snippets allow us to insert dynamic or structured content into pages using the following format:

{s:SnippetName|param1|param2|...}

Parameters are passed using the pipe character (`|`) and must be provided in the correct order. Some snippets take no parameters, while others require several.

Below is a list of known snippets currently implemented in this site:

Snippet NameParametersComments
AdobeReaderLink0Provides a simple link for the user to download Adobe.
AircraftBySquadronList0Provides a list of aircraft organized by squadron. Is meant to be used only with the aircraft page.
AircraftDetail0Provides details from the database about an aircraft. Is only used with an aircraft page as it uses the Page Id to fetch information for that aircraft.
AircraftImage1Fetches an image for an aircraft. Is only used with an aircraft page as it uses the Page Id to fetch information for that aircraft. The only parameter is the CSS float attribute: None, Left, Right or Inherit.
AircraftMissionList0Provides the mission list from the database for an aircraft. Is only used with an aircraft page as it uses the Page Id to fetch information for that aircraft.
AircraftPage2Links to an aircraft page. The first parameter is the aircraft serial, formatted with 0s to 6 digits. I.e. 000456. The second is the text to be displayed for that like. I.e. {s:AircraftPage|032012|Shark Tooth}. Result: Shark Tooth
AlbumImage4Displays a thumbnail image that opens in a Highslide popup. Parameters: full image URL, title, caption, optional style. See: AlbumImage Documentation
AlbumImageThumbnailStyle1Defines the default style and slideshow behavior for all AlbumImage thumbnails on the page. Use once before any images. See: AlbumImage Documentation
AlbumLink4Creates a link to an album page. The 1st parameter is for CSS styling and can be left blank. The second is the Album page we want to point to. The third is the image we want for its thumbnail and the 4th is a caption for the album. {s:AlbumLink||Album-Leadership|bg_bowman.jpg|Leadership} and produces a link that points to that album.
AssociationAddress0Produces the association's current address.
DonationForm0Used for convenience on the donation page.
ForumNav5Used only for the forum pages, users should not need to ever use it.
Foto4Defines a single image used within FotoramaViewer. Must include PageId, filename, and optional caption. See Fotorama Viewer.
FotoramaIncludes0Loads CSS/JS required for the FotoramaViewer to work. Must be placed above the viewer. See Fotorama Viewer.
FotoramaViewer1Displays a scrollable photo gallery using nested Foto entries. Requires FotoramaIncludes. See Fotorama Viewer.
HighslideSingleImage0Displays a single image using Highslide pop-up. Use for simple expandable images. See Highslide Viewer.
HighslideWindow4Displays an image with a detailed caption in a Highslide pop-up window. See Highslide Viewer.
HistoryRow2Used inside HistoryTable to define a single event. See History Table Snippet. At present, this snippet is used only on our History Page.
HistoryTable3Displays a structured historical timeline. Used only on the History Table Snippet for details. Also populates the News Ticker. Used only on our History Page.
HoverNote3Displays inline text with a hover tooltip. Acts like an aside or contextual hint. Parameters: 1, visible text; 2, floating aside. Example: hover over this text
HowToUploadPhoto0Simple descriptor for uploading photos.
Join_or_Donate0Simple descriptor for joining or donating.
MemberAlphabetizedList0Used only on the Servicemen's page to load a list of Servicemen from the DB.
MemberImage2Displays a member portrait with optional float and caption. Parameters: 1, float direction; 2, caption. Uses a default image if none exists.
MemberMissionList0Automatically loads mission data for a Member page. Displays a member’s recorded missions dynamically. No parameters. Never modify.
MemberPage2Links to an member/serviceman page. Parameters: 1, Person Id (formatted with 0s to 4 digits). I.e. 0227; 2, the text to be displayed with it. I.e. {s:MemberPage|0227|Kaufman}. Result: Kaufman
MemorialImageSelector0Displays random memorial images. Used only on the main page.
MissionAssignmentsList0Displays dynamic mission assignments for the current mission page. No parameters. Auto-fetches data based on page ID.
MissionDetails0Displays mission details dynamically based on the current page. No parameters. Automatically loads using mission page ID.
MissionDownloadLink2Displays a PDF download icon for a mission report. Parameters: 1, mission ID; 2, icon height. Opens the linked PDF in a new tab.
MissionPage2Links to an member/serviceman page. Parameters: 1, Mission Id (formatted with 0s to 3 digits). I.e. 047; 2, the text to be displayed with it. I.e. {s:MissionPage|047|Marienburg}. Result: Marienburg
ModalWindow4Displays a centered pop-up modal with optional title and content. Parameters: 1, delay (ms); 2, max width; 3, title; 4, body text. Modal auto-closes or can be dismissed manually.
NewsCard7Displays date-sensitive news items with title, image, and summary. Powers the News page and Ticker. See NewsCard Snippet Page.
NewsPoster0Required to activate filtering and validation logic for news cards. Must appear before any NewsCard. See NewsCard Snippet Page.
PdfLinkGroupHistory2Links to 401st Group history PDF with optional unit shield. Parameters: 1, Shield ID; 2, Link text. Uses ShieldOriginal, below.
PdfLinkSquadron3Links to squadron history PDF with squadron logo. Parameters: 1, Squadron number; 2, Alt text; 3, Link text. Uses SquadronLogo, below.
SendMail3Creates a link to our Email page for sending an email. Parameters: 1, the Group role you're sending an email too; 2, the Subject line of the email; 3, the text body of that email. I.e. {s:SendMail|Historian|Tell me some history|Email Link to Email Page}. Result: Email Link to Email Page
ShieldOriginal1Displays the original 401st Bomb Group shield image. Parameters: 1, Optional inline CSS style string. Commonly used in the PdfLinkGroupHistory above.
SlideDown1Displays a thin expandable panel that slides down on hover or click to reveal additional content. Parameters: 1, HTML or text shown when expanded.
SquadronImg3Displays a squadron image with optional label. Parameters: 1, squadron number; 2, caption/label; 3, CSS style string.
SquadronLogo2Displays a squadron logo image. Parameters: 1, squadron number (e.g., 613); 2, optional CSS style string.
Thanks_for_visiting0Simple text for main page.
TopicNav8Forum navigation bar for preserved topics. Parameters: 1, label; 2–8, links for first, prev 10, prev, menu, next, next 10, and last.
UploadedImage4Displays an uploaded image with caption in Highslide viewer. Parameters: 1, page ID; 2, filename; 3, title; 4, caption.
YouTube3Embeds a YouTube video in an iframe. Parameters: 1, YouTube URL; 2, additional style; 3, optional attributes (e.g., allowfullscreen).

Notes

  • If you are unsure what a snippet does or what parameters it accepts, try checking the source code or inspecting how it’s used on an existing page.
  • Snippets marked with higher parameter counts (e.g., 5–8) often support optional customization fields like size, alignment, or alternate captions.
  • Misuse of parameters may break the display or leave the snippet blank.

See also: What is a Snippet?