Topic on Extension talk:CookieWarning

Text, Button Text variables

9
Summary by Kghbln

Do not edit the .json files directly but the respective system message pages on the wiki itself.

Renamed user dj65cf874dfh44 (talkcontribs)

Hello, using the CookieWarning. Are there variables to set the text for each of the two buttons, and also for the Cookie Alert itself? --Jeffmcneill (talk) 13:52, 14 April 2017 (UTC)

Renamed user dj65cf874dfh44 (talkcontribs)
Never mind, found the file i18n/en.json --Jeffmcneill (talk) 13:57, 14 April 2017 (UTC)
Kghbln (talkcontribs)

Do not edit the ".json" files since your changes will be overwritten on every update of the extension. Rather edit the respective system message on wiki. I have changed the documentation to make this noticeable.

Tapi0 (talkcontribs)

Could it be possible to add support for wiki links and etc. code?

Also it would be nice to have <br> code working in it.

Kghbln (talkcontribs)

Currently this is indeed not possible. I am not sure if I would like to have this option since it invites to add unnecessary information. @Florianschmidtwelzow:

Florianschmidtwelzow (talkcontribs)

I don't think, that html in this message makes any sense. What is your actual use case? You could add more information about how you use cookies on the page you link with the <code>$wgCookieWarningMoreUrl</code> configuration option. What exactly do you mean with "wiki links" and "code"? A wiki link could be added into the <code>$wgCookieWarningMoreUrl</code> configuration URL by adding the full URL of it. What is the use case of adding code to the message? :/

Tapi0 (talkcontribs)

I need to use Link to other site -wiki link two times in my cookie warning text.

I didn't get that <code>$wgCookieWarningMoreUrl</code> work if it is meant to put in to MediaWiki:Cookiewarning-info page.
I did make MediaWiki:Cookiewarning-more-url page where I put one of my links to other site.

I also need <br> code or something similar to move some text apart. Now it's all going to one long sentence.

Tapi0 (talkcontribs)

So i need to use link to my advert media site in cookie warning text.

Best would be like in wiki link style as Link to other site.

Can you please ad this support?

Tapi0 (talkcontribs)

So can we have that link support or not?

It would be nice to have somekind of line break too because now all my text in GDPR-info is not in so readable form.

Reply to "Text, Button Text variables"