Template:MediaWiki: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>J. Noel Chiappa
(Fix to make section targets work)
imported>J. Noel Chiappa
(Update examle to include link to section)
 
Line 5: Line 5:
<nowiki>{{MediaWiki}}</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>{{MediaWiki|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>{{MediaWiki|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
Line 12: Line 12:
'''Example''':
'''Example''':


<nowiki>{{MediaWiki|Help:Templates|An introduction to templates}}</nowiki>
<nowiki>{{MediaWiki|Help:Templates#Creating a template|How to create a template}}</nowiki>


gives:
gives:


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





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}}