Difference between revisions of "Help:ABC extensions syntax"
m (→Misc.) |
m (→Misc.) |
||
Line 94: | Line 94: | ||
;Inserting a Web-site box | ;Inserting a Web-site box | ||
<nowiki>{{WWW|WWW_UniProt}} </nowiki> | <nowiki>{{WWW|WWW_UniProt}} </nowiki> | ||
+ | {{WWW|WWW_UniProt}} | ||
;Inserting a Web-link box | ;Inserting a Web-link box | ||
<nowiki><div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div></nowiki> | <nowiki><div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div></nowiki> | ||
+ | <div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div> | ||
− | ; Linking text to '''R''' documentation | + | ; Linking text to '''R''' documentation |
− | |||
− | |||
<nowiki>{{R|plot}} and {{R|exists|base}} and {{R|colorRamp|grDevices|colorRampPalette}}</nowiki> | <nowiki>{{R|plot}} and {{R|exists|base}} and {{R|colorRamp|grDevices|colorRampPalette}}</nowiki> | ||
+ | {{R|plot}} and {{R|exists|base}} and {{R|colorRamp|grDevices|colorRampPalette}}<br> | ||
+ | The ''graphics'' package is default, other packages can be chosen with the template's second parameter. Check [http://stat.ethz.ch/R-manual/R-patched/library/ at the ETH] for which package directory to choose. If a third parameter is present, that will be the linked text. | ||
;Linking text to Wikipedia | ;Linking text to Wikipedia | ||
− | + | {{WP|Mutual information|'''Mutual Information'''}} | |
− | + | {{WP|Mutual information|'''Mutual Information'''}} | |
+ | |||
;Collapsible elements | ;Collapsible elements | ||
− | {{WP|http://www.mediawiki.org/wiki/Manual:Collapsible_elements|Manual: Collapsible elements}} | + | See: {{WP|http://www.mediawiki.org/wiki/Manual:Collapsible_elements|Manual: Collapsible elements}} |
<nowiki> | <nowiki> |
Revision as of 19:22, 16 November 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.
Non-Pubmed pdf
If the article is not on PubMed, upload it to the repository, enter bibliographic details and make sure file
the filename is unique with full extension.
{{PDF |authors= |year= |title= |journal= |volume= |pages= |URL= |doi= |file= |abstract= }}
Ambrish, R. & Zhang, Y. (2012) Protein Structure Prediction. Encyclopedia of Life Sciences |
(pmid: None) [ Source URL ] Abstract |
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>
This is the text[1].
- ↑ And this is the footnote
Misc.
- Math markup
<math>H = - \sum_{i=0}^n p_i \log_{2} p_i</math>
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle H = - \sum_{i=0}^n p_i \log_{2} p_i}
see: http://meta.wikimedia.org/wiki/Help:Formula
- Inserting a Web-site box
{{WWW|WWW_UniProt}}
UniProt [ link ] [ page ] Expand... | ![]() |
- Inserting a Web-link box
<div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div>
- Linking text to R documentation
{{R|plot}} and {{R|exists|base}} and {{R|colorRamp|grDevices|colorRampPalette}}
plot
and base
and colorRampPalette
The graphics package is default, other packages can be chosen with the template's second parameter. Check at the ETH for which package directory to choose. If a third parameter is present, that will be the linked text.
- Linking text to Wikipedia
{{WP|Mutual information|Mutual Information}}
- Collapsible elements
See: Manual: Collapsible elements
<div class="mw-collapsible mw-collapsed" data-expandtext="Expand for poem" data-collapsetext="Collapse" style="width:40%; border:solid 1px; background-color:#F6FFE6; padding:10px;"> '''The Road Not Taken''' <small>''Robert Frost''</small> <div class="mw-collapsible-content"> Two roads diverged in a yellow wood,<br />And sorry I could not travel both<br /> [...] I took the one less traveled by,<br />And that has made all the difference. </div> </div>