Difference between revisions of "Help:ABC extensions syntax"
Jump to navigation
Jump to search
m |
m |
||
Line 8: | Line 8: | ||
__NOTOC__ | __NOTOC__ | ||
+ | |||
+ | ==LST== | ||
;LST (Labeling a section for transclusion) | ;LST (Labeling a section for transclusion) | ||
Line 20: | Line 22: | ||
− | + | ==Syntax Highlight== | |
+ | [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi '''GeSHI''] | ||
+ | |||
+ | <nowiki><source lang="R"> yadda <- "yadda" #yadda</source></nowiki> | ||
+ | <source lang="r"> yadda <- as.character("yadda") #yadda</source> | ||
+ | * lang="??" | ||
+ | * line="GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS" | ||
+ | * line start="??" | ||
+ | * highlight="??" | ||
+ | * enclose="pre|div|none" ... (div induces wrapping)) | ||
+ | |||
+ | |||
+ | ==Pubmedparser== | ||
<nowiki>{{#pmid:12345678}}</nowiki> | <nowiki>{{#pmid:12345678}}</nowiki> | ||
:This inserts the article information in a <code><div></code>, formatted by [[Template:Pubmed]]. | :This inserts the article information in a <code><div></code>, formatted by [[Template:Pubmed]]. | ||
Line 26: | Line 40: | ||
:This formats the output for the Cite extension; A footnote mark will be inserted at the edit location and the actual reference will appear beneath the <code><references /></code> section of the page. | :This formats the output for the Cite extension; A footnote mark will be inserted at the edit location and the actual reference will appear beneath the <code><references /></code> section of the page. | ||
− | + | ==Cite== | |
;Inserting a footnote | ;Inserting a footnote | ||
<nowiki><ref>A note in ref tags will insert a footnote mark, | <nowiki><ref>A note in ref tags will insert a footnote mark, | ||
linked to the text in the <references /> section of the page.</ref></nowiki> | linked to the text in the <references /> section of the page.</ref></nowiki> | ||
− | + | ==Misc.== | |
;Inserting a Web-site box | ;Inserting a Web-site box | ||
<nowiki>{{WWW|WWW_UniProt}} </nowiki> | <nowiki>{{WWW|WWW_UniProt}} </nowiki> |
Revision as of 00:46, 11 February 2012
Extension Syntax
Several extension use special syntax. This is a synopsis.
LST
- LST (Labeling a section for transclusion)
<section begin=exercises /> ... <section end=exercises />
- LST (Transcluding a labeled section)
{{#lst:Transcriptome|exercises}}
- Common sections are:
reading
andexercises
.
Syntax Highlight
<source lang="R"> yadda <- "yadda" #yadda</source>
yadda <- as.character("yadda") #yadda
- lang="??"
- line="GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS"
- line start="??"
- highlight="??"
- enclose="pre|div|none" ... (div induces wrapping))
Pubmedparser
{{#pmid:12345678}}
- This inserts the article information in a
<div>
, formatted by Template:Pubmed.
{{#pmid: 15289071 |Steipe2004}}
- This formats the output for the Cite extension; A footnote mark will be inserted at the edit location and the actual reference will appear beneath the
<references />
section of the page.
Cite
- Inserting a footnote
<ref>A note in ref tags will insert a footnote mark, linked to the text in the <references /> section of the page.</ref>
Misc.
- Inserting a Web-site box
{{WWW|WWW_UniProt}}
- Inserting a Web-link box
<div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div>