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
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: <NoWiki>{s:SnippetName|param1|param2|...}</NoWiki> 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 Name''' !! '''Parameters''' !! '''Comments''' |- | '''AdobeReaderLink''' || 0 || Provides a simple link for the user to download Adobe. |- | '''AircraftBySquadronList''' || 0 || Provides a list of aircraft organized by squadron. Is meant to be used only with the aircraft page. |- | '''AircraftDetail''' || 0 || Provides 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. |- | '''AircraftImage''' || 1 || Fetches 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. |-. | '''AircraftMissionList''' || 0 || Provides 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. |- | '''AircraftPage''' || 2 || Links 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. <nowiki>{s:AircraftPage|032012|Shark Tooth}</nowiki>. Result: {s:AircraftPage|032012|Shark Tooth|++} |- | '''AlbumImage''' || 4 || Displays a thumbnail image that opens in a Highslide popup. Parameters: full image URL, title, caption, optional style. See: [++Help.AlbumImageSnippet|AlbumImage Documentation] |- | ''' AlbumImageThumbnailStyle''' || 1 || Defines the default style and slideshow behavior for all AlbumImage thumbnails on the page. Use once before any images. See: [++Help.AlbumImageSnippet|AlbumImage Documentation] |- | '''AlbumLink''' || 4 || Creates 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. <nowiki>{s:AlbumLink||Album-Leadership|bg_bowman.jpg|Leadership}</nowiki> and produces a link that points to that album. |- | '''AssociationAddress''' || 0 || Produces the association's current address. |- | '''DonationForm''' || 0 || Used for convenience on the donation page. |- | '''ForumNav''' || 5 || Used only for the forum pages, users should not need to ever use it. |- | '''Foto''' || 4 || Defines a single image used within FotoramaViewer. Must include PageId, filename, and optional caption. See [++Help.FotoramaViewer|Fotorama Viewer]. |- | '''FotoramaIncludes''' || 0 || Loads CSS/JS required for the FotoramaViewer to work. Must be placed above the viewer. See [++Help.FotoramaViewer|Fotorama Viewer]. |- | '''FotoramaViewer''' || 1 || Displays a scrollable photo gallery using nested Foto entries. Requires FotoramaIncludes. See [++Help.FotoramaViewer|Fotorama Viewer]. |- | '''HighslideSingleImage''' || 0 || Displays a single image using Highslide pop-up. Use for simple expandable images. See [++Help.HighslideViewer|Highslide Viewer]. |- | '''HighslideWindow''' || 4 || Displays an image with a detailed caption in a Highslide pop-up window. See [++Help.HighslideViewer|Highslide Viewer]. |- | '''HistoryRow''' || 2 || Used inside HistoryTable to define a single event. See [++Help.HistoryTable|History Table Snippet]. At present, this snippet is used only on our [++History|History Page]. |- | '''HistoryTable''' || 3 || Displays a structured historical timeline. Used only on the [++Help.HistoryTable|History Table Snippet] for details. Also populates the News Ticker. Used only on our [++History|History Page]. |- | '''HoverNote''' || 3 || Displays inline text with a hover tooltip. Acts like an aside or contextual hint. Parameters: 1, visible text; 2, floating aside. Example: {s:HoverNote|hover over this text|This is the floating aside} |- | '''HowToUploadPhoto''' || 0 || Simple descriptor for uploading photos. |- | '''Join_or_Donate''' || 0 || Simple descriptor for joining or donating. |- | '''MemberAlphabetizedList''' || 0 || Used only on the Servicemen's page to load a list of Servicemen from the DB. |- | '''MemberImage''' || 2 || Displays a member portrait with optional float and caption. Parameters: 1, float direction; 2, caption. Uses a default image if none exists. |- | '''MemberMissionList''' || 0 || Automatically loads mission data for a Member page. Displays a member’s recorded missions dynamically. No parameters. Never modify. |- | '''MemberPage''' || 2 || Links 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. <nowiki>{s:MemberPage|0227|Kaufman}</nowiki>. Result: {s:MemberPage|0227|Kaufman|++} |- | '''MemorialImageSelector''' || 0 || Displays random memorial images. Used only on the main page. |- | '''MissionAssignmentsList''' || 0 || Displays dynamic mission assignments for the current mission page. No parameters. Auto-fetches data based on page ID. |- | '''MissionDetails''' || 0 || Displays mission details dynamically based on the current page. No parameters. Automatically loads using mission page ID. |- | '''MissionDownloadLink''' || 2 || Displays a PDF download icon for a mission report. Parameters: 1, mission ID; 2, icon height. Opens the linked PDF in a new tab. |- | '''MissionPage''' || 2 || Links 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. <nowiki>{s:MissionPage|047|Marienburg}</nowiki>. Result: {s:MissionPage|047|Marienburg|++} |- | '''ModalWindow''' || 4 || Displays 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. |- | '''NewsCard''' || 7 || Displays date-sensitive news items with title, image, and summary. Powers the News page and Ticker. See [++Help.NewsCardSnippet|NewsCard Snippet Page]. |- | '''NewsPoster''' || 0 || Required to activate filtering and validation logic for news cards. Must appear before any NewsCard. See [++Help.NewsCardSnippet|NewsCard Snippet Page]. |- | '''PdfLinkGroupHistory''' || 2 || Links to 401st Group history PDF with optional unit shield. Parameters: 1, Shield ID; 2, Link text. Uses ShieldOriginal, below. |- | '''PdfLinkSquadron''' || 3 || Links to squadron history PDF with squadron logo. Parameters: 1, Squadron number; 2, Alt text; 3, Link text. Uses SquadronLogo, below. |- | '''SendMail''' || 3 || Creates 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. <nowiki>{s:SendMail|Historian|Tell me some history|Email Link to Email Page}</nowiki>. Result: {s:SendMail|Historian|Tell me some history|Email Link to Email Page} |- | '''ShieldOriginal''' || 1 || Displays the original 401st Bomb Group shield image. Parameters: 1, Optional inline CSS style string. Commonly used in the PdfLinkGroupHistory above. |- | '''SlideDown''' || 1 || Displays a thin expandable panel that slides down on hover or click to reveal additional content. Parameters: 1, HTML or text shown when expanded. |- | '''SquadronImg''' || 3 || Displays a squadron image with optional label. Parameters: 1, squadron number; 2, caption/label; 3, CSS style string. |- | '''SquadronLogo''' || 2 || Displays a squadron logo image. Parameters: 1, squadron number (e.g., 613); 2, optional CSS style string. |- | '''Thanks_for_visiting''' || 0 || Simple text for main page. |- | '''TopicNav''' || 8 || Forum navigation bar for preserved topics. Parameters: 1, label; 2–8, links for first, prev 10, prev, menu, next, next 10, and last. |- | '''UploadedImage''' || 4 || Displays an uploaded image with caption in Highslide viewer. Parameters: 1, page ID; 2, filename; 3, title; 4, caption. |- | '''YouTube''' || 3 || Embeds 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: [++Help.401st-Snippets|What is a Snippet?]
Meta Keywords:
Meta Description:
Change Comment:
Modified on 2025/07/09 21:21
by
Administrator
Categorized as
Uncategorized