Difference between revisions of "Template:Custom TabMenu"

From The Embassy of Good Science
(MWBot)
(MWBot)
Line 1: Line 1:
<div id="gesinn-custom-tabs" class="g-tab"><div class="gesinn-custom-tabs-container"><span class="g-tab-info">{{{1|}}}:</span><span class="g-tablinks" data-tab="trainee">Trainee</span><span class="g-tablinks" data-tab="trainer">Trainer</span></div></div>
+
{{#ifeq:{{{1|}}}|Instruction|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Instruction Step Trainee]]|?Instruction Step Title=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainee|disbale-tab}} }} }}
 +
{{#ifeq:{{{1|}}}|Instruction|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Instruction Step Trainer]]|?Instruction Step Title=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainer|disbale-tab}} }} }}
 +
{{#ifeq:{{{1|}}}|Guide|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Guide Step Trainee]]|?Guide Step Type Trainee=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainee|disbale-tab}} }} }}
 +
{{#ifeq:{{{1|}}}|Guide|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Guide Step Trainer]]|?Guide Step Type Trainer=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainer|disbale-tab}} }} }}
 +
<div id="gesinn-custom-tabs" class="g-tab"><div class="gesinn-custom-tabs-container"><span class="g-tab-info">{{{2|}}}:</span><span class="g-tablinks {{#varexists:showTabTrainee | {{#var:showTabTrainee}} |}}" data-tab="trainee">Trainee</span><span class="g-tablinks {{#varexists:showTabTrainer | {{#var:showTabTrainer}} |}}" data-tab="trainer">Trainer</span></div></div>

Revision as of 15:41, 26 October 2020



:TraineeTrainer
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
5.1.6