History: Ogre Wiki Help
Preview of version: 47
- «
- »
How do I ...
Table of contents
- How do I ...
- insert non-breaking space?
- create a simple box?
- insert an image?
- insert a thumbnail image?
- insert code?
- give a page a description?
- make a title bar?
- make a multi-paged page?
- insert a HTML tag?
- add a new page to a structure?
- add an existing page to a structure?
- move a page in a structure?
- make a page a child of another page in a structure?
- See also
insert non-breaking space?
Use this:
~hs~
create a simple box?
The following syntax:
^Text in a box^
produces this:
insert an image?
Follow the procedure for inserting a thumbnail image, then remove the thumb="y" parameter.
If you need to adjust the properties of the image, select the image tag and click the
icon to bring up the image tag editor.
insert a thumbnail image?
Click the
icon, browse or upload an image, then click the image.
Voilá: you have a thumbnail image.
You can set additional properties, like alt, width, etc.
{IMG(src="img/wiki_up/Tibor_title.jpg", thumb="y", button="y", rel="box[g]", stylebox=border, width="300", align="right", title="Tibor: Tale of a Kind Vampire by Cateia Games", desc="Tibor: Tale of a Kind Vampire")} {IMG}
rel="box[g]" is important. Otherwise you won't get the fancy Lightbox effect. 😊
title is both the tooltip displayed upon mouseover, but also the title in the Lightbox.
desc is the description text on the image box.
insert code?
Click the
button and fill out the Insert Code dialogue, or write it by hand:
{CODE(wrap="1" colors="c++")} // some code this is std::cout << 'the code' << std::endl;{CODE}
// some code this is std::cout << 'the code' << std::endl;
Always use wrap="1" in code boxes. Otherwise you'll (probably) find the page layout ruined after inserting a lengthy bit of code.
Geshi, the engine serving the pretty code, is capable of highlighting most languages.
Valid color parameters are:c++, c#, vbnet, python, cmake, povrayVisit Geshi for the complete list.
give a page a description?
Go into 'edit mode'.
Enter the 'Properties' tab.
And find the 'Description' textbox.
Enter a short, descriptive (do'h) description and save the page.
Keep in mind that the descriptions are also used for link descriptions on various overview pages, like on the Tutorials page.
make a title bar?
The following syntax:
-=Title=-
produces this:
make a multi-paged page?
By using this:
~046~~046~~046~page~046~~046~~046~
It's three dots, the word 'page' and three dots.
(Not demonstrated here, for obvious reasons)
insert a HTML tag?
You can't do this directly, but you can using the Tag edit plugin, like this:
{TAG(tag="small")}Small text{TAG}
Gives you this:
Small text
add a new page to a structure?
On the structure header: enter the name of the new page, and click the 'Add Page' button. 😊
If you want the new page to be a child of the page you're currently on, be sure to check 'Child'
add an existing page to a structure?
- On the structure header, click the structure view button:
- In the structure view, click on the page link where you want the page to be added (it will be added after that page).
- Select the page in the list of pages - would be a good idea to use the Filter option; just enter the name of the page there.
- Select the page in the page listbox and click 'Update'.
- The page should be added to the structure.
You might need to promote/demote the page, or move it up/down.
move a page in a structure?
- Click the structure layout view icon on the structure header:
- Use the arrow buttons in the structure view (
)
- If you need to move it far, it would probably be faster to remove the page from the structure.
- You then select a page in the structure tree, and it will be added after that.
make a page a child of another page in a structure?
- Enter the structure layout view by clicking the
icon in the structure header.
- If the page is just after the page you want to be a parent, just use the demote button (
).
- If it's not, move it around - and then demote it. 😉