Forum:Verbatim

Does anyone have any experience with the. Can I find documentation for them any where? It seems to me they always output inside < > thingies, so if the output would be true, they output. Duskey ( talk ) 19:05, August 15, 2010 (UTC)


 * What are you talking about? What wiki, what feature, can you give an example? -- ◄mendel► 21:28, August 15, 2010 (UTC)


 * Outputs:
 * true
 * Instead of just:
 * true
 * Duskey ( talk ) 21:39, August 15, 2010 (UTC)
 * Duskey ( talk ) 21:39, August 15, 2010 (UTC)


 * Verbatim tags parse as he contents of the MediaWiki page named as the contents originally inside the tags. Eg, MediaWiki:True in your example. Link to what you're talking about. Joey (talk) 22:14, August 15, 2010 (UTC)
 * Ah, nice; so forum-url gives me, and hsgkjsdfh gives me   because the page MediaWiki:hsgkjsdfh doesn't exist.
 * The question is, Duskey, what do you want the "verbatim" tag to do? -- ◄mendel► 06:17, August 16, 2010 (UTC) & 06:19, August 16, 2010 (UTC)
 * If you want the tag to work liek it does on TWiki, you might want to try the &lt;pre> tag instead:


 * The question is, Duskey, what do you want the "verbatim" tag to do? -- ◄mendel► 06:17, August 16, 2010 (UTC) & 06:19, August 16, 2010 (UTC)


 * Like that? -- ◄mendel► 06:23, August 16, 2010 (UTC)


 * And what's the difference between &lt;verbatim&gt; and using ?. edit and  produce the same results for me:  edit  and  respectively (note that my UI is not in english, so both shows the internationalized message "edit" in your language, so it may be different than the contents of MediaWiki:Edit. --Ciencia Al Poder (talk) -WikiDex 16:00, August 16, 2010 (UTC)


 * What a strange tag. -- Fandyllic  (talk &middot; contr) 9:20 AM PST 16 Aug 2010


 * The difference seems to be that "int" is documented and "verbatim" is not. -- ◄mendel► 20:08, August 16, 2010 (UTC)


 * The difference is int: acts as mediawiki and still limits what html you can use on pages (things like anchors, img, script tags, etc that aren't allowed to be on normal wiki pages due to localsettings.php) after it parses, while verbatim parses as the html itself bypassing the mediawiki limit. Eg, take this is an example. It's a good alternative for a lot of the uses of inserting html into pages via js that don't actually really need js. Joey (talk) 22:47, August 16, 2010 (UTC)
 * Neat! Very insightful and useful, Joey; thanks!
 * Verbatim doesn't parse any wikicode, not even regular links; it completely bypasses the wikicode parser.  is more like transclusion, but with the language setting applied. That's actually extremely useful, "verbatim" would solve the problem in Forum:Adding a timeline to your wikia. because they could add an iframe that way.
 * Another difference: int can take parameters, e.g. MediaWiki:1movedto2_redir is, so ' and ' give ' and '.
 * I've made a demo at Forum:Verbatim/demo. -- ◄mendel► 07:05, August 17, 2010 (UTC)


 * I want it to run a javascript in a template. The template looks like this. It then outputs online or offline.
 * 
 * I guess the problem is that while the template exists  does not, resulting in the additional   tags. The ideal scenario here is if I can include the output in parser functions so I can display images and add additional text based on the output. Can anyone think of any clever solutions to do this? I have access to MediaWiki. Maybe transclude a mediawiki page instead of a template and then that verbatims the template? Hmmm. Duskey ( talk ) 11:30, August 17, 2010 (UTC)
 * I think your demo broke :s Duskey ( talk ) 11:30, August 17, 2010 (UTC)
 * You can't run JavaScript like that. You have to call it from MediaWiki:Common.js -- 11:55, August 17, 2010 (UTC)