Help:ABC extensions syntax
Extension Syntax
This is a synopsis of special extensions and template syntax on this Wiki.
LST
Using this markup, you can arbitrarily label sections from other pages and transclude them into the current page. This is not just convenient, it is essential to avoid duplicating text that will not get consistently updated if it exists multiple times on the Wiki.
- LST (Labeling a section for transclusion)
<section begin=section-name /> ... <section end=section-name />
- LST (Transcluding a labeled section)
{{#lst:Page-name|section-name}}
- Example
Entia non sunt ponenda praeter necessitatem. (Occam)
Entia non sunt ponenda praeter necessitatem. (Occam)
Syntax Highlight
<source lang="R">y <- as.character("yadda"); 2* y #yadda yadda</source>
y <- as.character("yadda"); 2* y #yadda yadda
- lang="??"
- line="GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS"
- line start="??"
- highlight="??"
- enclose="pre|div|none" ... (div induces wrapping))
Pubmedparser
{{#pmid:15289071}}
- This inserts the article information in a
<div>
, formatted by Template:Pubmed.
Steipe (2004) Consensus-based engineering of protein stability: from intrabodies to thermostable enzymes. Meth Enzymol 388:176-86. (pmid: 15289071) |
{{#pmid: 15289071 |Steipe2004}}
- This formats the pubmed parser output for the Cite extension; A footnote mark will be inserted here[1] and the actual reference will appear beneath the
<references />
section of the page.
Non-Pubmed pdf
If the article is not on PubMed use Template:PDF. Upload the article 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 ] The goal of protein structure prediction is to estimate the spatial position of every atom of protein molecules from the amino acid sequence by computational methods. Depending on the availability of homologous templates in the PDB library, structure prediction approaches are categorised into template-based modelling (TBM) and free modelling (FM). While TBM is by far the only reliable method for high-resolution structure prediction, challenges in the field include constructing the correct folds without using template structures and refining the template models closer to the native state when templates are available. Nevertheless, the usefulness of various levels of protein structure predictions have been convincingly demonstrated in biological and medical applications. |
Cite
- Inserting a footnote
- A note in :<ref>:</ref> tags will insert a footnote mark, linked to the text in the <references /> section of the page.
This is the text<ref>And this is the footnote:</ref>.
This is the text[2].
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}
Inserting a Web-site box
Boxes for Web site summaries, image and abstract
{{WWW|WWW_UniProt}}
UniProt [ link ] [ page ] UniProt is the protein sequence database of the European Bioinformatics Institute. It is an extraordinarily well constructed, curated, and integrated resource. As a public resource, its results are freely accessible world-wide. The "Knowledge Base" (UniProtKB), which is the database proper, contains two subsections: SwissProt, the manually curated and heavily annotated protein sequence repository; it is approximately equivalent to the NCBI Refseq protein database, albeit with usually higher annotation levels. TrEMBL is much larger and contains sequences that have been computationally translated from the EMBL nucleotide sequence collection. It is approximately equivalent to the NCBI's Entrez protein database. The URL links to the entry for the Saccharomyces cerevisiae cell-cycle regulation transcription factor Mbp1. |
Inserting a Web-link box
<div class="reference-box">[http://www.ncbi.nlm.nih.gov '''The NCBI''']</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" data-collapsetext="Collapse" style="width:50%; "> * Visible text <div class="mw-collapsible-content" style="padding:10px;"> * Collapsed text 1 * Collapsed text 2 * Collapsed text 3 </div> </div>
Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth;
Then took the other, as just as fair,
And having perhaps the better claim
Because it was grassy and wanted wear,
Though as for that the passing there
Had worn them really about the same,
And both that morning equally lay
In leaves no step had trodden black.
Oh, I marked the first for another day!
Yet knowing how way leads on to way
I doubted if I should ever come back.
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I,
I took the one less traveled by,
And that has made all the difference.