Jump to content

Template:Interactive pathway maps/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
No edit summary
Line 36: Line 36:
== Known Issues ==
== Known Issues ==
* When there is more than one copy of a gene or metabolite on a pathway, clicking on any copy will lead to the same page (as expected) and to the same highlighted and centered view (which may or may not be the particular copy you clicked on). This is because the highlighting and centering are determined by the variable passed in to the template and not by what exactly you click on. So, when using this template on a gene or metabolite article, take note of which copy (if there is more than one) is being highlighted in the view. The template knows about the other copies and you can choose which is the best representative copy to highlight by passing in the right variable. The first copy is given the name of the article (e.g., '''Apple_acid'''); additional copies are named "alt1", "alt2", etc (e.g., '''Apple_acid__alt1'''). Note the two underscore characters between the name and the "alt" designation. In this way you can preview and decide which copy you want to highlight on a given gene or metabolite article.
* When there is more than one copy of a gene or metabolite on a pathway, clicking on any copy will lead to the same page (as expected) and to the same highlighted and centered view (which may or may not be the particular copy you clicked on). This is because the highlighting and centering are determined by the variable passed in to the template and not by what exactly you click on. So, when using this template on a gene or metabolite article, take note of which copy (if there is more than one) is being highlighted in the view. The template knows about the other copies and you can choose which is the best representative copy to highlight by passing in the right variable. The first copy is given the name of the article (e.g., '''Apple_acid'''); additional copies are named "alt1", "alt2", etc (e.g., '''Apple_acid__alt1'''). Note the two underscore characters between the name and the "alt" designation. In this way you can preview and decide which copy you want to highlight on a given gene or metabolite article.

[[Category:WikiPathways]]

Revision as of 20:54, 6 December 2010

This template is the product of a custom export process of WikiPathways content as interactive pathway maps for Wikipedia articles. Please do not edit these templates directly as they include calculated hyperlinks and annotations based on original content curated at WikiPathways. Please feel free to edit and update the pathway content at WikiPathways. Your changes will be reflected here when the template is regenerated.

Features

  • Gene Wiki links - click on blue-underlined gene boxes in pathway to go to the corresponding Gene Wiki article
  • Metabolite links - click on blue-underlined metabolite boxes in pathway to go to the corresponding metabolite article
  • Start new pages - click on red-underlined boxes to start a new Wikipedia article where one currently does not exist
  • Bold self links - the gene or metabolite focused on in the current article is displayed as a bold-bordered self link
  • Pathway links - click anywhere in the background on the pathway to go to the corresponding pathway article with an expanded view of the interactive pathway map
  • Variable-controlled cropped view - pathway maps can be cropped by referencing a gene or metabolite (see Usages #2 and #3 below).
  • Variable-controlled scroll view - pathway maps can be viewed in a scrollable window at a particular width and height (see Usage #4 below).

Usage

This template is commonly transcluded into the following types of articles in the following ways:
1. Pathway articles

Where you want to see the full pathway
{{TCACycle_WP78}}


2. Gene Wiki articles

Where you want to crop the pathway view to center on a particular gene
{{TCACycle_WP78|highlight=Dihydrolipoyl_transacetylase}}


3. Metabolite articles

Where you want to crop the pathway view to center on a particular metabolite
{{TCACycle_WP78|highlight=Fumaric_acid}}


4. Miscellaneous

Where you override default views and specify the width and height of a scrollable window in which to view the entire pathway
{{TCACycle_WP78|width=600|height=300}}
  • width: the width of the scrollable window
  • height: the heigth of the scrollable window

Examples

Known Issues

  • When there is more than one copy of a gene or metabolite on a pathway, clicking on any copy will lead to the same page (as expected) and to the same highlighted and centered view (which may or may not be the particular copy you clicked on). This is because the highlighting and centering are determined by the variable passed in to the template and not by what exactly you click on. So, when using this template on a gene or metabolite article, take note of which copy (if there is more than one) is being highlighted in the view. The template knows about the other copies and you can choose which is the best representative copy to highlight by passing in the right variable. The first copy is given the name of the article (e.g., Apple_acid); additional copies are named "alt1", "alt2", etc (e.g., Apple_acid__alt1). Note the two underscore characters between the name and the "alt" designation. In this way you can preview and decide which copy you want to highlight on a given gene or metabolite article.