Usage
Here you will learn how to best use PyWig and take full advantage of the features it has to offer. The table below contains a list of attributes and their parameters. Browse through the table of contents below to search for a specific attribute.
Attributes |
Parameters |
|---|---|
title |
|
header_type, text, style* |
|
text, style* |
|
text, link, style* |
|
list_type, items, style* |
|
src, alt*, style* |
|
src |
|
color |
|
template, items |
|
cooldown, max, filename |
|
filename |
Creating and Saving
- create_page(title)
- save(filename)
Adding Elements
Basic Elements
- add_header(header_type, text, style=None)
- add_text(text, style=None)
- add_link(text, link, style=None)
- add_link(list_type, items, style=None)
Images and Videos
- add_image(src, alt=None, style=None)
- add_video(src)
Page Customization
- set_background_color(color)
- auto_create(cooldown, max, filenane)
Templates
Note
To load premade templates, you must import the PyWig extension, templates.
- add_template(template, items)