I want to make it easier for myself to create references in my wiki.
My current setup is that I have to do something like this:
<ref name="120507">Reference for something that happened on the {{createdate|120507}}</ref>
The template create date just turns the string YYMMDD
into dd month YYYY
I want to simplify this by only needing:
{{ref|120507}}
But I cant seem to get the property right, and it won't traverse into the template createdate either. It just URL-encodes the curly brackets instead of taking the value of {{{1}}}
.
<ref name="{{{1}}}">Sometext {{createdate|{{{1}}}}}.</ref>
This is what I tried.
Best Answer
You can use the
{{#tag}}
magic word to do this. So, your template would look something like this:Although exactly this code wouldn't work correctly, because
name
cannot be an integer.