Topic on Project:Support desk

Add textContent to HTML via MediaWiki template

4
49.230.76.81 (talkcontribs)

I created a MediaWiki template named by the Hebrew letter א (template:א):

<code></code>

I call it by {{א|SOME_textContent}}.

The problem is that after I save the page, I get an empty <code> tag content ( ).

Why do I get empty <code> tag content ( ), instead getting SOME_textContent (the input I gave in call after the vertical bar) ?

Bawolff (talkcontribs)

You get the contents of the template. Add {{{1}}} in the template where you want the first parameter to be substituted. See help:Templates for more info.

49.230.75.149 (talkcontribs)

@Bawolff I tried that but it didn't help, please see in Stackoverflow (because the automatic spam filter prevents me from pasting the link here):

Add textContent to HTML via MediaWiki template

Bawolff (talkcontribs)

as @Tgr: said, = is special. Try making the parameter be 1== e.g. {{alef|1==}} (i dont have keyboard to actually type an alef and bidi is annoying)

Reply to "Add textContent to HTML via MediaWiki template"