|
|
| (2 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| // Example Tab zwischen Seite und Diskussion | | // java |
| $(document).ready(function() {
| |
| var pageName = mw.config.get('wgPageName');
| |
|
| |
| // Liste der Protokolle mit Real Examples
| |
| var protocolsWithExamples = [
| |
| 'In_vitro_Tyrosine_Kinase_Activity_Assay',
| |
| 'Gentamicin_Protection_Assay',
| |
| 'LIC_Cloning_(Ligation_independent_cloning)',
| |
| 'Immunoprecipitation',
| |
| 'Protein_expression_and_purification',
| |
| 'Production_of_lentiviral_particles',
| |
| 'Bacterial_growth_curve'
| |
| ];
| |
|
| |
| if (protocolsWithExamples.includes(pageName)) {
| |
| var realExamplePage = pageName + '_Real_Example';
| |
|
| |
| // Tab zwischen "Seite" und "Diskussion" einfügen
| |
| var exampleTab = '<li><a href="/wiki/' + realExamplePage + '" title="Real Lab Notebook Example">Example</a></li>';
| |
| $('.vector-menu-tabs ul li:first').after(exampleTab);
| |
| }
| |
| });
| |