History: Ogre Wiki Help
Source of version: 47
- «
- »
Copy to clipboard
!How do I ...
{maketoc}
!!insert non-breaking space?
Use this:
{CODE()}~hs~{CODE}
!!create a simple box?
The following syntax:
{CODE()}^Text in a box^{CODE}
produces this:
^Text in a box^
!!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 {IMG(src="pics/icons/picture.png")}{IMG} icon to bring up the image tag editor.
!!insert a thumbnail image?
Click the {IMG(src="pics/icons/pictures.png")}{IMG} 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}
{CODE(wrap="1", title="Example of advanced thumbnailed image with description")}
{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}{CODE}
''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 {IMG(src="pics/icons/page_white_code.png")}{IMG} button and fill out the Insert Code dialogue, or write it by hand:
{CODE()}{CODE(wrap="1" colors="c++")}
// some code this is
std::cout << 'the code' << std::endl;{CODE}{CODE}
{CODE(wrap="1" colors="c++")}
// some code this is
std::cout << 'the code' << std::endl;{CODE}
%warning% 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: ~pp~c++, c#, vbnet, python, cmake, povray~/pp~ Visit [http://qbnz.com/highlighter/|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:
{CODE()}-=Title=-{CODE}
produces this:
-=title=-
!!make a multi-paged page?
By using this:
{CODE(wiki="1")}~046~~046~~046~page~046~~046~~046~{CODE}
It's three dots, the word 'page' and three dots.
{TAG(tag="small")}''(Not demonstrated here, for obvious reasons)''{TAG}
!!insert a HTML tag?
You can't do this directly, but you can using the Tag edit plugin, like this:
{CODE()}{TAG(tag="small")}Small text{TAG}{CODE}
Gives you this:
{TAG(tag="small")}Small text{TAG}
---
!!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'''
^%note% If you want to control ''exactly'' where the page will be added, go to the page after which you want the new page to be, and use the Add Page function from there.
Otherwise it will be added as the last page in the sructure. That's often ''not'' where you'd want it to be.^
!!add an existing page to a structure?
#On the structure header, click the structure view button: {IMG(src="pics/icons/chart_organisation.png")}{IMG}
#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: {IMG(src="pics/icons/chart_organisation.png")}{IMG}
#Use the arrow buttons in the structure view ({IMG(src="pics/icons/resultset_up.png")}{IMG} {IMG(src="pics/icons/resultset_down.png")}{IMG})
#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 {IMG(src="pics/icons/chart_organisation.png")}{IMG} icon in the structure header.
#If the page is just after the page you want to be a parent, just use the demote button ({IMG(src="pics/icons/resultset_next.png")}{IMG}).
#If it's not, move it around - and then demote it. (:wink:)
---
!See also
[http://doc.tikiwiki.org/Using+Wiki+Pages&structure=Documentation|Tiki - Using Wiki Pages]