Wiki page images, both a how-to and a question
My question:
Anyone know -- or can they figure out -- how to assign an image as
a repeating background for a page on the wiki? I want to do exactly
what you see in the preview area while you're editing a wiki page:
the repeating word "DRAFT" displayed faintly in the background, like
a watermark. I know where the file draft.png is stored, but I haven't
figured out how to use it in the way I want. I'm looking for a method
which does not depend on my being logged in to the wiki.
The How-to:
In looking for the solution, I did discover how to embed the wiki's
own system icon images within a wiki page using this macro:
[[Icon(image)]]
Put the macro where you want the icon to appear, substituting the
actual filename of the icon for the word "image". For example, to get
a tiny image of a light bulb, use this:
[[Icon(idea.png)]]
The images are stored here: http://librivox.org/wiki/modern/img/
To view an image, click on its filename.
Background images on wiki pages? + How to display wiki icons
-
- Posts: 870
- Joined: September 23rd, 2007, 11:02 am
- Location: Manchester, NH, America
- Contact:
You'd want to do something like:
I don't know if you can modify a per-page style sheet with moinmoin.
You may be able to do something like this:
Where you put that above stuff into "inline-style".
I don't know. Haven't tried any of this out, and I'm not at all familiar with moinmoin or its syntax.
Code: Select all
.draft {
background-image: url(draft.png);
background-repeat: repeat;
}
You may be able to do something like this:
Code: Select all
{ {{#!box css-class|inline-style
wiki markup
} }}
I don't know. Haven't tried any of this out, and I'm not at all familiar with moinmoin or its syntax.
Daniel, the Cylon
([url=http://librivox.org/newcatalog/people_public.php?peopleid=2136]LV Profile[/url])
([url=http://librivox.org/newcatalog/people_public.php?peopleid=2136]LV Profile[/url])
Daniel, thanks for the ideas.Great Plains wrote:Haven't tried any of this out, and I'm not at all familiarCode: Select all
{ {{#!box css-class|inline-style wiki markup } }}
with moinmoin or its syntax.
My reading of Help On Parsers in the wiki help indicates the purpose
of the hash-bang line inside the three curly braces for code samples
(as in your second code snippet) is to call a parser to format the
program code inside the braces for display, rather than to execute it.
So this doesn't appear to be the answer.