wml::std::page(3)

πŸ“¦
version 2.32.0 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

🌸 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). πŸ–€

This just corresponds to the same attribute of the <body> tag, and it sets the normal hyperlink color. Default is text="#333399" (medium blue). πŸ’™

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). 🩡

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 πŸ¦‹


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