Ask Your Question
0

CodeRef macro not working in wiki

asked 2014-07-03 20:27:29 -0500

http://wiki.ros.org/tf/Tutorials/Writ... So on this page, the CodeRef macro didn't work, and I've even tried to copy-paste the corresponding section in

http://wiki.ros.org/WritingTutorials#...

==== CodeRef ====
In a tutorial, you want to reference a code block that you have created earlier in the tutorial you can use `CodeRef`. 
{{{start
{{{
#!cplusplus block=blockname
code....
is super 
and awesome
}}}
start}}}

You can then use the `CodeRef` macro to refer to it
{{{
<<CodeRef(blockname,1,2)>>
}}}

This then looks like:

<<CodeRef(blockname,1,2)>>

the exact same section which works on the "writing tutorials" page didn't work on "writing a tf listener" page.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-04 16:18:34 -0500

130s gravatar image

updated 2014-07-14 04:28:04 -0500

Looking at the change you (assumed by the user name) made, I guess you've figured it out somehow by yourself; As the tutorial you referred to points out:

Note that #!cplusplus or #!python line needs to be in a new line (ie. new line after three beginning parenthesises).

it seems that a new line is required with CodeRef, which you did in your commit.


Update 7/14/2014) Anyways, for referring to codes on github, it looks like GetCode replaces CodeRef macro.

edit flag offensive delete link more

Comments

I did make a new line for that code, but it seems that might not be the case (or just the website take effect with a delay, not in real time) as the page remains the same after I did the change. and when I come back a day later, everything is fine.

AzureViolin gravatar image AzureViolin  ( 2014-07-11 04:49:04 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-07-03 20:27:29 -0500

Seen: 88 times

Last updated: Jul 14 '14