Permanently protected template

Template:Detect tabs

From Historical Hastings

Create or update sensor page     

To add new tabs:

Template documentation[view] [edit] [history] [purge]

Purpose: Detects the tabs subpages for a person. Placed on the /sensor subpage of a person article, the template performs a expensive #Ifexist calls and places the results in the Property:hint_tabs. This property among others will in turn be loaded by the {{get globals}} template for use in the main article. Various templates such as {{showfacts person}} will load these globals up into a string array when they run {{get globals}} as one of its parameters.

Tasks by global property set:

  • Property:hint_tabs: Check via ifexist if subpages exist, compile hint_tabs for all recognized.

Other properties that might in the future be set on the \sensor page:

Template writers technical section

'To add a new tab not currently supported Example for subpage foo:

  1. add a new entry in Strings fm list named fm-tab foo.
  2. add the English display text for fm-tab foo in Strings:en.
  3. at the top of the new subpages, place {{showfacts tabs|globals={{get globals}} }} , or incorporate it into the template that will reside on that subpage.