Suggestion for wiki header

I have a suggestion for attributes being added to the header of .adocs. These are the most used links external to the wiki and if made an attribute and any of these repositories moves its a minor change to update.


You then use them in images and links with,

Input is appreciated.

edit: added category

1 Like

If we do this it would be easier to update the wiki, assuming the directory structure stays the same. I could also add these attributes and the others that already exist to the README.adoc under contribute (where it says TODO) and it would look something like this:

Proper linking formats:

Prior to creating links, read this short Wiki Links document, then use these linking formats listed when editing or creating links in the wiki.

`<<section-title#,cross reference text>>` - used for cross referencing documents stored in the wiki repsitory
`image::path/to/filename.jpg[]` - used for images stored in the images directory in the repository
`{uri-jmonkeyengine}` - used for linking to files in the jmonkeyengine repository
`{img-jmonkeyengine}` - used for linking to images in the jmonkeyengine repository
`{uri-forum}` - used for linking to jmonkeyengine forum posts
`{uri-javadoc}` - used for linking to javadoc pages

All other offsite links use the typical url format,

This is what the wiki link document would look like.

When accessing other documents stored in the wiki repository it is called Cross Referencing. The base directory is located here and you format your link like so:

<<section-title#,cross reference text>>

As an example, to reach a document stored in the directory jme3/advanced/ named custom_controls.adoc you format your reference link as follows,

<<jme3/advanced/custom_controls#,Custom Controls>>

Cross referenced images are handled by use of the image:: (block image) or image: (inline image) macro. The images directory is located here and you format your links in the simplest form as follows ,


As an example, to load a YouTube video that has the image stored in the sdk/plugin directory and is named CgFzhkq-MKk.jpg,

image:sdk/plugin/CgFzhkq-MKk.jpg [,width="",height="",link=""]

Links to the jmonkeyengine repository, forum and javadocs are handled by use of an attribute reference:

{uri-jmonkeyengine} - used to link to the jmonkeyengine repository
{img-jmonkeyengine} - used to link to images located in the repository
{uri-forum} - used to link to the jmonkeyengine forum
{uri-javadoc} - used to link to the jmonkeyengine javadocs

The process for linking to the jmonkeyengine repository for instance is as follows:

First, start the link,


then when at github and with the file selected you hit the “Copy Path” button, then paste it into your document,

link{uri-jmonkeyengine / jme3-examples / src / main / java / jme3test / water /

change the forward slash (/) to the right of jmonkeyengine to a right bracket (}),


attach our text [],


now your link is complete.

For an image use the img-attribute,


To link to the forum,

link:{uri-forum}t/monkeys-at-the-beach/15000[Rendering Water as Post-Process Effect]

For a javadoc,


For detailed information on linking and attributes see the ASCIIDoctor documentation.

1 Like