Jump to content

Topic on Extension talk:CopyToClipboard

Cosfly (talkcontribs)

You know, mediawiki allows the powerful template system. But it seems I can't use templates inside clippy.

For example, if I put

<clippy> {{jack | ID1 = a | ID2 = b }} <clippy>

then I hope the Template:Have to be copied, with ID1 replaced with "a", and ID2 replaced with "b".

Is it technically possible to make such a template-friendly CopyToClipboard extension? Is it easy to make it?

Cosfly (talkcontribs)

In the 4th line, I meant to say "Template:Jack", not "Template:Have". A rather obvious typo :)

And although mediawiki automatically transformed what I wrote into "Template:Jack" in the 3rd line, originally I wrote there the following.

| ID1 = a | ID2 = b

That is why I am writing as such in line 4.

Nischayn22 (talkcontribs)

you got me all confused in here :) I am not much familiar with Template stuff but I think tags can't be put in templates, why don't you ask at #mediawiki on IRC; they know more about templates than I do ;)

Nischayn22 (talkcontribs)

Hi, I was just revisiting this today and realized what you meant in a more generic way; maybe I know more now.

The functionality you are looking for is to have clippy understand wikitext. This can simply be build into the extension as an additional configurable option. I will like to see this myself sometime; maybe I or somebody else gets to do it.

189.15.142.190 (talkcontribs)

Try substituting the line

$link = htmlspecialchars($input);

by

$link = urlencode(htmlspecialchars($parser->recursiveTagParse($input,$frame)));

Cheers, Christoph.

Lilis2nd (talkcontribs)

Tried this solution. The copied texts are fine, but when show="true" is on,
any spaces between characters are shown in +, like e.g.;

This+is+a+test.

Any other way to get this sorted out?

77.22.112.1 (talkcontribs)

The spaces are replaced by +.


Is there no fix for clippy to understand wiki syntax?`In my case I would like to use {{PAGENAME}} within the clippy-tag. That would save a lot of time for me.


Thx

Reply to "Template in clippy"