Template:ConSurf

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
(creating a template that inserts ConSurf div)
(creating a template that inserts ConSurf div - reverse order of parameters)
Line 3: Line 3:
It '''cannot''' be used in the regular way, as <code><nowiki>{{ConSurf}}</nowiki></code>
It '''cannot''' be used in the regular way, as <code><nowiki>{{ConSurf}}</nowiki></code>
-
You must insert it as <code><nowiki>{{subst:ConSurf|st|1stp}}</nowiki></code>
+
You must insert it as <code><nowiki>{{subst:ConSurf|1stp|st}}</nowiki></code>
Where the 2 parameters, <code>st</code> and <code>1stp</code>, need to be adjusted to your case:
Where the 2 parameters, <code>st</code> and <code>1stp</code>, need to be adjusted to your case:
-
* 1st parameter is the folder where ....
+
* 1st parameter is the PDB ID of the model
-
* 2nd parameter is the PDB ID of the model
+
* 2nd parameter is the 2nd and 3rd characters of the ID
The result will look like below and will be made a hard-coded content of the page (i.e. the template wikitext is removed and the result is inserted into the page source).
The result will look like below and will be made a hard-coded content of the page (i.e. the template wikitext is removed and the result is inserted into the page source).
- 
-
<!--script /wiki/ConSurf/{{{1}}}/{{{2}}}_consurf.spt;-->
 
</noinclude>
</noinclude>
Line 24: Line 22:
select protein; define ~consurf_to_do selected;
select protein; define ~consurf_to_do selected;
consurf_initial_scene = true;
consurf_initial_scene = true;
-
script /wiki/ConSurf/{{#invoke:String|sub|{{{2}}}|1|2}}/{{{2}}}_consurf.spt;
+
script /wiki/ConSurf/{{{2}}}/{{{1}}}_consurf.spt;
</scriptWhenChecked>
</scriptWhenChecked>
<scriptWhenUnchecked>
<scriptWhenUnchecked>
Line 34: Line 32:
You may read the [[Conservation%2C_Evolutionary|explanation]]
You may read the [[Conservation%2C_Evolutionary|explanation]]
of the method and the full data available from
of the method and the full data available from
-
[http://bental.tau.ac.il/new_ConSurfDB/main_output.php?pdb_ID={{{2}}} ConSurf].
+
[http://bental.tau.ac.il/new_ConSurfDB/main_output.php?pdb_ID={{{1}}} ConSurf].
<!-- end of content inserted by the ConSurf template -->
<!-- end of content inserted by the ConSurf template -->

Revision as of 07:49, 13 October 2016

HOW TO USE THIS TEMPLATE:

It cannot be used in the regular way, as {{ConSurf}}

You must insert it as {{subst:ConSurf|1stp|st}}

Where the 2 parameters, st and 1stp, need to be adjusted to your case:

  • 1st parameter is the PDB ID of the model
  • 2nd parameter is the 2nd and 3rd characters of the ID

The result will look like below and will be made a hard-coded content of the page (i.e. the template wikitext is removed and the result is inserted into the page source).


Evolutionary Conservation

Check , as determined by ConSurfDB. You may read the explanation of the method and the full data available from ConSurf.

Proteopedia Page Contributors and Editors (what is this?)

Angel Herraez, Jaime Prilusky

Personal tools