Jump to content

User talk:Sigbert

Add topic
From mediawiki.org
Latest comment: 5 years ago by Sigbert in topic Iframe & Template

Liebe/r Sigbert, Herzlich Willkommen auf MediaWiki.org!

Ja, du bist willkommen! Diese Seite widmet sich der Dokumentation der MediaWiki Software, der Software hinter vielen Wikis, einschließlich der Wikipedia und den Wikimedia Foundation Projekten.
Bitte werfe einen Blick auf die folgenden Seiten. Sie könnten sich für Dich als Einsteiger nützlich erweisen:

Wenn Du irgendwelche Fragen hast, stelle sie bitte auf meiner Diskussionsseite. Noch einmal willkommen, und ich hoffe, dass du Dich hier schnell wohl fühlst, und diese Seite als Dokumentation der MediaWiki-Software nützlich findest.

Vielen Dank und viele Grüße, Abani79 (talk) 10:23, 10 May 2014 (UTC)Reply

Shiny graph

[edit]

Hello, sorry I don't speak German. I'm interested in trying to do a Shiny graph on a wikipedia page. I know R and use R Studio, but just learning R Shiny. Are there any pages in WP now that use Shiny in a graph? I want to see what the code looks like. Jtamad (talk) 02:59, 14 May 2018 (UTC)Reply

Nope, you can not use my extensions at the wikipedia. Someone would have to install R and the extension and I guess the WikiMedia people won't do that on their servers. Therefore, I run my own wiki(s). --Sigbert (talk) 06:31, 14 May 2018 (UTC)Reply

Iframe & Template

[edit]

Hello!

I have a template Template:MapTest with this text:

<iframe key="google" path="maps/embed?pb={{{map}}}" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

And I try to include it in a page like this:


\{\{\{MapTest|map=!4m5!3m4!1s0x4761e04f538c63e7:0x50f2a3d385586140!8m2!3d43.9787249!4d15.3846242\}\}\}

But for reasons I don't understand, this does not produce a map. IF I just put it verbatime like this, it works:

<iframe key="google" path="maps/embed?pb=!4m5!3m4!1s0x4761e04f538c63e7:0x50f2a3d385586140!8m2!3d43.9787249!4d15.3846242" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

How would I succeed at this?

PS: I escaped { with \ to avoid the editor trying to run my wikitext in this talk post.

Not possible. Your <iframe key="google" path="maps/embed?pb={{{map}}}" ...></iframe> is already evaluated in the template file to <iframe id="Iframe1" data-src="http://mars.wiwi.hu-berlin.de/maps/embed?pb={{{map}}}" data-delay="50" width="600" height="450" frameborder="0"></iframe> and this is inserted into your file. --Sigbert (talk) 12:32, 24 January 2019 (UTC)Reply
Maybe it is possible: Use in your template file {{#tag:iframe|key="google"|path="maps/embed?pb={{{1}}}"|width="600"|height="450"|frameborder="0"|style="border:0"|allowfullscreen="1"}} and call your template as {{Maptest|!4m5!3m4!1s0x4761e04f538c63e7:0x50f2a3d385586140!8m2!3d43.9787249!4d15.3846242}}. --Sigbert (talk) 20:10, 24 January 2019 (UTC)Reply