Media Wiki Editing: Difference between revisions
Line 192: | Line 192: | ||
Example: <nowiki>{{Internal|WildFly Concepts|Concepts}}</nowiki> | Example: <nowiki>{{Internal|WildFly Concepts|Concepts}}</nowiki> | ||
== | ==External Link== | ||
Use this as a border for important notes and observations on blueish background. | Use this as a border for important notes and observations on blueish background. | ||
Line 205: | Line 205: | ||
:<br>Some content on blue<br><br> | :<br>Some content on blue<br><br> | ||
</blockquote> | </blockquote> | ||
==Important Note or Observation== | |||
Use this as a border for important notes and observations on gold background. | Use this as a border for important notes and observations on gold background. | ||
Revision as of 04:44, 4 January 2017
External
- WikiMedia Editing Reference Card: https://meta.wikimedia.org/wiki/Help:Reference_card
- WikiMedia Help: https://www.mediawiki.org/wiki/Help:Contents
- User's Guide https://meta.wikimedia.org/wiki/Help:Contents
Internal
Overview
Links
Internal Links
[[ThisIsALink]]
Internal links that get a label:
[[ThisIsTheLink|This is the label that shows up in text]]
External Links
External links that are rendered verbatim
http://cnn.com
External links that get a label
[http://something.com/something/else Local Label]
Note that "http:" can be omitted:
[//something.com/something/else Local Label]
If you want to avoid a text with an external link syntax to be automatically turned into a link, use <nowiki>:
<nowiki>http://cnn.com</nowiki>
Lists
* List item
Italics
''italics''
Bold
'''bold'''
Code and Fixed Typed Fonts
Code Section in a Box
<pre>...</pre>
or simply start the line with a space.
In-line no-formatting
<nowiki>...</nowiki>
Fixed Type Fonts
<tt> ... </tt>
Paragraph Indentation
:One indent ::Two indents :::Three indents :::::: Multiple indent
Anchors and Linking to Anchors
An anchor is a in-page link target - it allows incoming links to target locations on the page other than section headings.
The anchors are automatically generated in case of the section headings. For example, a section named "Section One" generates a Section_One anchor, and the heading can be linked to by prepending "#Section_One" to the usual wiki #Links. In case of multiple sections with identical headings, the anchor names have a "_2", "_3", etc appended starting from the second occurrence.
Manual anchors can be also inserted and used in links:
<span id="anchor_name">text to anchor to</span>
Do not use:
<span id="anchor_name"/>
it won't work.
Anchor Names
Heading Name | Anchor |
Test | #Test |
Section One | #Section_One |
Capitalization does Matter | Capitalization_does_Matter |
Special Anchors
#toc links to the table of contents.
More Details on Anchors
https://meta.wikimedia.org/wiki/Help:Link#Anchors
Tables
{| | topleft || topmiddle || topright |- | middleleft || middlemiddle || middleright |- | bottomleft || bottommiddle || bottomright |}
{| | . || . || . || . || . |- | . || . || . || . || . |- | . || . || . || . || . |}
More about tables: https://meta.wikimedia.org/wiki/Help:Table
Blockquote
- Web colors reference: https://en.wikipedia.org/wiki/Web_colors
Internal Link
Use this as a border for in-wiki links
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;"> :[[SomeLink]] </blockquote>
Alternatively, use this parameterized template: Template:Internal. The first parameter is the target wiki page name, optionally followed by # an the anchor. The second parameter is the name of the link, as it will be rendered in the page.
Example: {{Internal|WildFly Concepts|Concepts}}
External Link
Use this as a border for important notes and observations on blueish background.
<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;"> :<br>Some content on blue<br><br> </blockquote>
Some content on blue
Important Note or Observation
Use this as a border for important notes and observations on gold background.
<blockquote style="background-color: Gold; border: solid thin Goldenrod;"> :<br>Some content on gold<br><br> </blockquote>
Some content on gold
Error
<blockquote style="background-color: Tomato; border: solid thin red;"> :<br>Some content on red<br><br> </blockquote>
Some content on red
Images and Media
Default
[[Image:somefile.png]]
Framed Full Size
[[Image:somefile.png|left|frame|caption]] [[Image:somefile.png|center|frame|caption]]
Thumbnail
[[Image:somefile.png|thumb|center]]
Others
text floating:
[[Image:somefile.png|thumb|left|300px|caption]]
To Export Wiki-Ready PNG
[[Media:filename.pdf|PDF]]
Video
[[Media:video.asf|Video]]
Table of Contents
By default shows up after three headers. If you want to force, use:
__FORCETOC__
Templates
For an explanation of what templates are see:
Declaring a Template
To start a new template, declare a link in the "Template:" namespace, as shown below
[[Template:TestTemplate]]
follow the link, and edit it. The initiating page will contain the link to the template and can be used for access. For an example of actual template declarations see the "Blockquote" section above.