Harry Potter Wiki

Help:Verbatim tags


The <verbatim> tag, available on some communities, allows for pages to be injected with HTML code that MediaWiki traditionally does not render, such as <a> (anchor), <script> or <style> tags.

It allows for communities to use code snippets provided by third-party providers, and integrate them into the wiki. However, new verbatim usages are not currently possible while Wikia performs a wide-ranging security review.

If you are looking to add Facebook or Twitter feed, please see Help:Social media integration. If you are looking to add SoundCloud or Spotify widgets, please see Help:Audio. If you have any questions, please contact Wikia Staff.

Prior to use

Before use of the verbatim tag, it is important to consider whether the code snippet in question will circumvent, or otherwise bypass, disable, or override features, or in any way inject things into pages that harm users or wikias. These violate Wikia's Terms of Use and will not be tolerated. Codes that collect information about users, redirect them without warning to third-party sites, or gives users unauthorized cookies will be removed by staff and possibly lead to a global ban against your account. If you have any questions about whether or not a code snippet is appropriate for your wikia, please contact Wikia staff for their assessment.

Step by step

  1. Collect the desired HTML from a trustworthy site.
  2. Choose a MediaWiki page for the code to reside on. Give it a name that describes the purpose of the code: for example, if you are embedding a Twitter widget, consider naming the page MediaWiki:TwitterWidget.
  3. Edit the page in source mode and paste in the code. Pay careful attention that all tags opened (such as <div> or <span>) have a corresponding closing tag (i.e. </div> or </span>).
  4. Save the MediaWiki page. More likely than not, it will not render in an aesthetically pleasing way. However, don't worry about how the MediaWiki page looks, it will look better once the verbatim tag is used.
  5. Go to the page that you wish to use the code on. Edit the page and write <verbatim></verbatim> in source mode, placing the MediaWiki page name between the opening and closing tags. For example, if you are using MediaWiki:TwitterWidget, write:

Note: if a targeted MediaWiki page doesn't exist, such as <verbatim>Notreal</verbatim>, the output is that string surrounded by greater-than and lesser-than signs (in this case, <Notreal>).

See also

Further help and feedback

Around Wikia's network

Random Wiki