wml::std::logo(3)

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

πŸ’– wml::std::logo β€” Logo Insertion πŸ’–

okay bestie, welcome to wml::std::logo(3) from the EN Tools era β€” this is the little include that lets you drop logos into your WML pages and it's literally so easy. sit down, grab a strawberry πŸ“, let's get into it.


✨ SYNOPSIS ✨

#use wml::std::logo

<logo [attributes]>

🌸 DESCRIPTION 🌸

This include file gives you the <logo> tag, and its whole entire job is inserting logo images. you pick which one you want with the name attribute. that's it. that's the vibe. πŸ’…

here's the full roster of logos you can pull, with what they are and where they point:


πŸŽ€ ATTRIBUTES πŸŽ€

name

the name attribute is how you say which logo you want. valid names are the whole list up above ⬆️, and if you don't say anything, wml is the default. main character behavior honestly πŸ‘‘

base

so normally the logos get copied into logo-xxxxxx.png, where xxxxxx is the name of the logo. but if you pass a base=foo attribute, the resulting files come out named foo.logo-xxxxxx.png. and ngl you can go even further β€” you can hand it a whole complete filename with a directory prefix. like, if you use base=../../common/foo, then the images get created as ../../common/foo.logo-xxxxxx.png. ✨

and for maximum flexibility: when no base is specified and the variable LOGO_BASE is defined β€” usually from inside a .wmlrc file via -LOGO_BASE~path/to/logo/dir/base β€” then that gets used instead. use this feature to copy the logos into a particular directory. 🫢

you can also use the variable IMAGE_BASE, which defines all the base names for images generated by WML in a single line. one line, all the bases, iconic.

format

logos come in PNG or GIF. this attribute is literally just the filename extension of the format you want, so: png or gif. default is the png extension, and you can change that default via the IMAGE_FORMAT variable. 🌈

file

this attribute defines the logo filename. it overrides all other computed values. no cap, it wins every argument. πŸ’€

target

if you use the target attribute, it refers to a target frame or window where the hyperlink gets redirected to.

notag

this one forces <logo> to expand into absolutely nothing β€” so no resulting <img> tag. the image itself is still generated though, don't worry. and when you combine it with the file attribute above, you can generate images into particular files that you then use at other positions, like for instance inside <rollover> tags (peep wml::des::rollover(3)). πŸ¦‹


πŸ”₯ EXAMPLE πŸ”₯

this example only copies the vim logo to $(IMAGES)/logo-vim.png and produces zero output. quiet. mysterious. slaying. πŸ’…

<logo name=vim format=png base="$(IMAGES)/logo" notag>

πŸ‘‘ AUTHORS πŸ‘‘

Ralf S. Engelschall rse@engelschall.com www.engelschall.com

Denis Barbier barbier@engelschall.com


πŸ’œ REQUIRES πŸ’œ

  • Internal: P1, P2, P3
  • External: --

⭐ SEE ALSO ⭐

wml(1)


and that's the whole page, bestie πŸŽ€ this came out of the EN Tools era with a date of 2020-11-29 on it, so go forth and insert logos, you absolute icon. mwah πŸ’‹

πŸ“¦ where this page comes from