wml::std::page(3)
πΈ NAME πΈ
wml::std::page β the Standard HTML Page Header and Footer situation, bestie. π It's page three of the EN Tools manual, and it's lowkey about to make your whole HTML setup so much less annoying.
β¨ SYNOPSIS β¨
#use wml::std::page
<page [attributes]>
[<page_end>]
<head>...</head>
<title>...</title>
π¦ DESCRIPTION π¦
Okay so this include file hands you the brand new <page> tag, and it's basically the advanced combo meal of the HTML <body> and <head> container tags. π
The whole idea? One single tag gives you complete header and footer tags, while also throwing in some new features for free β page indentation, easy title specification, and setting up default values for your page colors. It's giving one tag to rule them all. π
π ATTRIBUTES π
π« title
Shorthand for the container tag <title>, fr fr. Whatever value you give it gets placed into the <head> section of the page, all wrapped up cozy in the <title> tag. π«Ά
π« indent
This sets the indentation level of the page, measured in units of <blockquote>'s. Default is no indentation. Setting indent to a value of N means the page gets surrounded by N <blockquote> tags. The attribute indent=1 or indent=2 usually gives you the best readable layout β that's the sweet spot, no cap. β¨
π« background
This just corresponds to the same attribute of the <body> tag, and it sets the background image. Per default it's not used. π
π« bgcolor
This just corresponds to the same attribute of the <body> tag, and it sets the background color. Default is bgcolor="#ffffff" (white). π€
π« text
This just corresponds to the same attribute of the <body> tag, and it sets the text color. Default is text="#000000" (black). π€
π« link
This just corresponds to the same attribute of the <body> tag, and it sets the normal hyperlink color. Default is text="#333399" (medium blue). π
π« alink
This just corresponds to the same attribute of the <body> tag, and it sets the color for activated hyperlinks. Default is text="#9999ff" (light blue). π©΅
π« vlink
This just corresponds to the same attribute of the <body> tag, and it sets the color for already visited hyperlinks. Default is text="#000066" (dark blue). π
π« color
When you set color="none", the five previous attributes are not put into the <body> tag. Not me turning off the whole color committee π β but sometimes that's the move.
π« onload
This just corresponds to the same attribute of the <body> tag, and it sets a JavaScript event handler which is activated after the page was loaded. Per default it's not used.
π« info
This automatically puts a <info style=meta> tag into the <head> section of the page. See wml::std::info(3) for more details. π
π« slices
This enables the creating of three slices: WML_STDPAGE_HEAD, WML_STDPAGE_BODY and WML_STDPAGE_FOOT. These can be used later in Pass 9 (Slice) for cutting out parts of the page. βοΈ iconic behavior honestly.
π« :html:ATTR=STR :body:ATTR=STR
The ATTR=STR pairs are passed along to the <html> and <body> HTML tags. Straight through, no middleman. π
π OTHER COMMANDS π
This module implements two new macros, called <title>...</title> and <head>...</head>. π§
- The first one defines the title of the page.
- The second one appends its body into the HEAD section of the HTML documents.
Its main purpose is to add meta-tags β either directly, or with the help of wml::std::info(3). Meta-tags are the main character here, periodt. π
π AUTHOR π
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
β REQUIRES β
- Internal:
P1,P2,P5 - External:
--
π¦ SEE ALSO π¦
- HTML
<head>,<body>and<title>tags wml::std::info(3)
And that's the whole page, bestie β go forth and ship it. π This lil masterpiece came to you from EN Tools, dated 2020-11-29, and honestly? It ate. πβ¨π«Ά
π¦ where this page comes from
- debian bookworm: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- debian trixie: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu jammy: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu noble: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu questing: wml 2.32.0~ds1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms