i am trying to create a simple template that has 2 variable in Mediawiki.
variable 1 is the link whatever someone type: file://test.txt
variable 2 is the title: Test Document
The template would generate the hyperlink such as this:
But behind this test document link it has this wiki syntax:
file://test.txt
Could someone assist with this?
Here is the sample of wiki syntax i tried testing:
{{{1}}}|{{{2}}}
{{{1}}}|{{{2}}}
{
"params": {
"1": {
"label": "Link",
"description": "Link",
"type": "string",
"default": "file://test.txt",
"required": true
},
"2": {
"label": "Description:",
"description": "Text",
"type": "string",
"required": true
}
},
"description": "links",
"paramOrder": [
"1",
"2"
]
}