Help:XML-style tags
From The Scuba Wiki
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/- |
XML-style tags
XML-style tags use the syntax <tag name>contents</tag name>
. XML-style tags are frequently used by MediaWiki extensions; see Extending wiki markup for details on adding new tags.
Default
The following tags are available in a default MediaWiki installation.
- parsing is the conversion of text markup and XHTML to formatting and structure like templates, links, formatting, line breaks, et cetera. Two tags affect parsing:
- nowiki disables parsing of all wiki syntax. For example, "
<nowiki>'''[[{{tc}}]]'''</nowiki>
" gives "'''[[{{tc}}]]'''". - pre mimics nowiki above in a formatted box, and preserves new lines. For example, "<pre>'''[[{{tc}}]]'''</pre>" outputs as:
'''[[{{tc}}]]'''
- nowiki disables parsing of all wiki syntax. For example, "
- transclusion is adding the content of one page to another using the {{...}} template syntax. Three tags affect transclusion:
- noinclude prevents text from appearing when the page is transcluded, so the text will only be visible on the current page. For example, "
<noinclude>[[Category:Foo]]</noinclude>
" will only categorize the template page. - includeonly hides text on the current page, so that it will only appear when the page is transcluded. For example, "
<includeonly>[[Category:Foo]]</includeonly>
" will categorize all pages that transclude the template, but not the template itself. - onlyinclude hides all other text when the page is transcluded, so that only the text inside the onlyinclude tags will be shown. For example, "
I am an <onlyinclude>apple</onlyinclude>.
" will output "apple" when transcluded.
- noinclude prevents text from appearing when the page is transcluded, so the text will only be visible on the current page. For example, "
- math uses TeX markup to generate complex mathematics, usually in image form (see Help:Displaying a formula). For example, "
<math>\sqrt{a^2+b^2}</math>
" outputs as <math>\sqrt{a^2+b^2}</math>.
Links to other help pages
- Help contents
- Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s: | mw:Manual | google
- Versions of this help page (for other languages see below)
- Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary
- What links here on Meta or from Meta | Wikipedia | MediaWiki
- Reading
- Go | Search | Stop words | URL | Namespace | Page name | Section
- Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
- Logging in and preferences
- Logging in | Preferences | User style
- Editing
- Advanced editing | Editing FAQ | Edit toolbar | Export | Import | Shortcuts
- Tracking changes
- Recent changes (enhanced) | Related changes | Watching pages | Diff
- Page history | Edit summary | User contributions | Minor edit | Patrolled edit
- Style & formatting
- Wikitext examples | Reference card | HTML in wikitext | List | Table | Sorting | Colors
- Special input and output
- Inputbox | Special characters | Displaying a formula | Images (uploads) | EasyTimeline
- Advanced functioning
- Template | Advanced templates | Parser function | ParserFunctions | Parameter default
- Variable | Magic word | System message | Substitution | Array | Calculation
- Page management
- Starting a new page | Renaming (moving) a page | Protecting pages | Deleting a page
- Special pages
- Talk page | Testing | Sandbox | CentralNotice