Difference between revisions of "MediaWiki editing"

From dankwiki
(Created page with '==Uploaded Files== {| border="1" ! Desire and solution ! Example text ! Example result |- | Link to an uploaded file without embedding it via prefixing "File" with a ':' characte...')
 
Line 1: Line 1:
==Uploaded Files==
+
==Links==
 
{| border="1"
 
{| border="1"
 
! Desire and solution
 
! Desire and solution
Line 8: Line 8:
 
| <nowiki>[[:File:LookForAnswers.jpg|dankamongwikis logo]]</nowiki>
 
| <nowiki>[[:File:LookForAnswers.jpg|dankamongwikis logo]]</nowiki>
 
| [[:File:LookForAnswers.jpg|dankamongwikis logo]]
 
| [[:File:LookForAnswers.jpg|dankamongwikis logo]]
 +
|-
 +
| Link to another registered wiki by using the registered name and a ':' (other wikis must be registered by the MediaWiki administrator).
 +
| <nowiki>[[wikipedia:Tab_(soft_drink)|TaB at Wikipedia]]</nowiki>
 +
| [[wikipedia:Tab_(soft_drink)|TaB at Wikipedia]]
 +
|-
 +
| Make one page merely redirect to another using #REDIRECT.
 +
| <nowiki>#REDIRECT [[Pages]]</nowiki>
 +
| N/A
 +
|-
 +
| Generate a full link to a file as text using <nowiki>{{FILEPATH}}</nowiki>.
 +
| <nowiki>{{FILEPATH:LookForAnswers.jpg}}</nowiki>
 +
| {{FILEPATH:LookForAnswers.jpg}}
 +
|}
 +
==Disabling Markup==
 +
{| border="1"
 +
! Desire and solution
 +
! Example text
 +
! Example result
 +
|-
 +
| Reformat and interpret special characters, but not wikitext, using <tt><nowiki><nowiki></nowiki></tt>
 +
| <nowiki><nowiki>[[This will not become a link]]</nowiki></nowiki>
 +
| <nowiki>[[This will not become a link]]</nowiki>
 +
|-
 +
| Interpret special characters only, and used fixed-width fonts, using <tt><nowiki><pre></nowiki></tt>
 +
| <nowiki><pre>This will not be formatted</pre></nowiki>
 +
| <pre>This will not be formatted</pre>
 
|}
 
|}
 
==See Also==
 
==See Also==
 
* MediaWiki help page on [http://meta.wikimedia.org/wiki/Help:Advanced_editing Advanced editing]
 
* MediaWiki help page on [http://meta.wikimedia.org/wiki/Help:Advanced_editing Advanced editing]
 
* MediaWiki help page on [http://www.mediawiki.org/wiki/Manual:Interwiki interwiki links]
 
* MediaWiki help page on [http://www.mediawiki.org/wiki/Manual:Interwiki interwiki links]
 +
* MediaWiki help page on [http://www.mediawiki.org/wiki/Help:Images images]

Revision as of 02:29, 19 January 2010

Links

Desire and solution Example text Example result
Link to an uploaded file without embedding it via prefixing "File" with a ':' character. [[:File:LookForAnswers.jpg|dankamongwikis logo]] dankamongwikis logo
Link to another registered wiki by using the registered name and a ':' (other wikis must be registered by the MediaWiki administrator). [[wikipedia:Tab_(soft_drink)|TaB at Wikipedia]] TaB at Wikipedia
Make one page merely redirect to another using #REDIRECT. #REDIRECT [[Pages]] N/A
Generate a full link to a file as text using {{FILEPATH}}. {{FILEPATH:LookForAnswers.jpg}} LookForAnswers.jpg

Disabling Markup

Desire and solution Example text Example result
Reformat and interpret special characters, but not wikitext, using <nowiki> <nowiki>[[This will not become a link]]</nowiki> [[This will not become a link]]
Interpret special characters only, and used fixed-width fonts, using <pre> <pre>This will not be formatted</pre>
This will not be formatted

See Also