Skip to content Skip to sidebar Skip to footer

Add TextContent To HTML Via MediaWiki Template

I have created a MediaWiki template named by the Hebrew letter א (template:א). Its content is: I call it by {{א|SOME_textContent}}. Desired state I de

Solution 1:

By definition, everything inside code tag will not be parsed, so your parameter is interpreted as string.

Instead of using html markup <code>, use parser function #tag like so:

{{#tag:code | { { phone code area: 970}, { phone code area: 961}, { phone code area: 98} } }}

So your template will look like:

 <includeonly>{{#tag:code| {{{1}}} }}</includeonly>

Solution 2:

A template won't magically insert its parameters unless you tell it. The correct template content would be

<code>{{{1}}}</code>

Post a Comment for "Add TextContent To HTML Via MediaWiki Template"