Difference between revisions of "Template:Custom TabMenu"
From The Embassy of Good Science
(MWBot) |
m (Protected "Template:Custom TabMenu": MWBot ([Edit=Allow only administrators] (indefinite))) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div id="gesinn-custom-tabs" class="tab"><span class="g-tablinks" data-tab="trainee">Trainee</span><span class="g-tablinks" data-tab="trainer">Trainer</span></div | + | {{#ifeq:{{{1|}}}|Instruction|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Instruction Step Trainee]]|?Instruction Step Title=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainee|disabled}} }} }}<!-- |
− | + | -->{{#ifeq:{{{1|}}}|Instruction|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Instruction Step Trainer]]|?Instruction Step Title=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainer|disabled}} }} }}<!-- | |
− | + | -->{{#ifeq:{{{1|}}}|Guide|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Guide Step Trainee]]|?Guide Step Type Trainee=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainee|disabled}} }} }}<!-- | |
− | + | -->{{#ifeq:{{{1|}}}|Guide|{{#ifexpr:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Category:Guide Step Trainer]]|?Guide Step Type Trainer=|mainlabel=-|limit=100|format=count}} >= 1| | {{#vardefine:showTabTrainer|disabled}} }} }}<!-- | |
+ | --><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> |
Latest revision as of 16:10, 28 November 2023
:TraineeTrainer