Template:MediaWiki: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>J. Noel Chiappa
m (Template:MW moved to Template:MediaWiki: Full names are preferred)
imported>J. Noel Chiappa
(Update examle to include link to section)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://www.mediawiki.org/wiki/{{#if:{{{1|}}}|{{{1}}}|{{BASEPAGENAMEE}}}} {{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}}}]<noinclude>
[http://www.mediawiki.org/wiki?title={{#if:{{{1|}}}|{{urlencode:{{{1}}}}}|{{BASEPAGENAMEE}}}} {{{2|{{{1|{{BASEPAGENAME}}}}}}}}]<noinclude>


'''Usage'''
'''Usage'''


<nowiki>{{MW}}</nowiki> links to the MediaWiki article with the same name as the page name
<nowiki>{{MediaWiki}}</nowiki> links to the MediaWiki article with the same name as the page name


<nowiki>{{MW|Name}}</nowiki> links to the MediaWiki article called "Name"
<nowiki>{{MediaWiki|Name}}</nowiki> links to the MediaWiki article called "Name"; one can also include an anchor if so desired


<nowiki>{{MW|Name|Text}}</nowiki> links to the MediaWiki article called "Name", with the string "Text" being the hyperlink in the page here
<nowiki>{{MediaWiki|Name|Text}}</nowiki> links to the MediaWiki article called "Name", with the string "Text" being the hyperlink in the page here
 
 
'''Example''':
 
<nowiki>{{MediaWiki|Help:Templates#Creating a template|How to create a template}}</nowiki>
 
gives:
 
{{MediaWiki|Help:Templates#Creating a template|How to create a template}}
 
 
''Shortcut'': <nowiki>{{MW}}</nowiki>


</noinclude>
</noinclude>

Latest revision as of 09:22, 10 May 2008

MediaWiki

Usage

{{MediaWiki}} links to the MediaWiki article with the same name as the page name

{{MediaWiki|Name}} links to the MediaWiki article called "Name"; one can also include an anchor if so desired

{{MediaWiki|Name|Text}} links to the MediaWiki article called "Name", with the string "Text" being the hyperlink in the page here


Example:

{{MediaWiki|Help:Templates#Creating a template|How to create a template}}

gives:

How to create a template


Shortcut: {{MW}}