This module is the core processing engine for the Specific-Source Template System (SSTS). It is called exclusively by the router (Module:SST) and is responsible
| This is a documentation subpage for Module:SST/hosts. It may contain usage information, categories and other content that is not part of the original module page. |
This module is the core processing engine for the Specific-Source Template System (SSTS). It is called exclusively by the router (Module:SST) and is responsible for parsing custom page string syntaxes, generating host-specific URLs, and deep-linking to digital archives.
The module is divided into three main operational phases: the Orchestrator, the Parser, and the Engines.
When called by the router, the p.process function iterates through the arguments passed by the Wikipedia editor.
|page=, |pages=, and |chapter-page= parameters and sends them to the parser.|ia-search= and |ia-display=) to prevent them from causing "unknown parameter" errors when the final arguments are passed to the underlying CS1/CS2 template.build_base_url function to ensure the main title of the citation is linked to the book's landing page.The module parses the page fields by splitting them at commas and extracting custom routing commands for each page grouping.
(@): Extracted using string matching to route URLs to specific physical leaves when printed page numbers (like Roman numerals) do not match the digital structure. The display text remains on the left, while the machine code is processed on the right.([ ]): Extracted using the pattern %[(.-)%] to pass a specific search term directly into the digital viewer.These markers are stripped from the display text before being rendered in the final Wikipedia citation, leaving clean, standard CS1 output.
SSTS supports multiple digital libraries. Each host has its own sub-table in the module (e.g., p.IA, p.Hathi) defining exactly how to construct its URLs.
ia-display="full screen" override (switching the endpoint from /details/ to /stream/).seq= parameter and passes search terms to q1=.#page-). Strips the leading "u" from the machine code.s:Page:File/Leaf) using the file extension defined in the shard.pg= parameter and passes search terms to dq=.A core feature of the IA engine is its handling of restricted viewing modes.
If an editor provides a page number, the IA engine automatically appends that number as a "dummy" search string (e.g., ?q=42) unless an explicit bracketed search term is provided. This is a necessary architectural workaround: supplying a search string forces the IA viewer to open and highlight specific pages that might otherwise be blocked due to lending restrictions (similar to Google Books snippet view).
To accommodate various IA viewing restrictions, display and search behaviors are resolved in the following priority order (Highest to Lowest):
page=42 [search term]|ia-search= in the Wikipedia template call.Module:SST/shards/X file (e.g., setting iasearch="none" disables the dummy search).
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.