Board Thread:Support Requests - Getting Technical/@comment-25956839-20151219123912

I've looked at Help:Cite and am trying to change the current method of text (*) used on the rr3.wiki to cite references, to the correct cite method.

I'm not sure if it's a bug, but when I tried to use the ref in a template, the cite [1] showed as expected by the data, but the reference was the parser, instead of the text the parser contained.

e.g.


 * C=Permanently discounted to R$0

The template had:

The table displaced the data and cite [1] as expected, but the reference was 1.

Instead of the expected:

1. Permanently discounted to R$0

I've managed to get it working, as expected, by using C=1 as data

I then changed the if to a switch, in the template:

See w:c:rr3:Cars, the i20 WRC has a cite.

This is fine for this template, but I have other templates, used on multiple pages, using the switch method, each cite will need a new number and the template will need to be updated for every cite, has anyone else come across this? Do you know of a better solution?

The template now uses variables to total the costs, so removing the old cite (*), which was text in with the cost data for the car has worked well.

I'm the one of the Admins on the rr3 wikia, this is one of the items I'm trying to improve. I'm new to coding and Admin.

Thanks for any help. 