Template:BS11

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

See Project:ROUTE for usage instruction.

Template:BS11 is for simple use, Template:BS11/safesubst is for compilation purposes.

  1. Originally (2011) BSn templates were created to be used inside {{BS-map}} structures.
  2. These templates are using variables named Oj, Oj2, Oj3, Oj4, Oj5, where O is the letter 'O' (before P), not the digit 0 (before 1) and 1<=j<= n
  3. When n>11, you can no longer uniquely interpret the variable O12. It has been decided that, when n > 10, the numbers 1<=j<= n will be written with two digits, i.e. '01', '02', etc. So that O12 is O(12)(1) --where the 1 is not written-- while O(1)(2) is written O012. Remark: this applies also to n=11, even if not logically required.
  4. The same has been done with templates BSn-2 (that use a two columns scheme).
  5. Thereafter (2015), the format {{routemap}} has been created, to allow a compilation the maps written using {{BS-map}}. The key idea is to replace {{BSn| by {{subst:BSn|, {{BSn-2| by {{subst:BSn-2| and left the parser do the rest of the work. This requires to rewrite the BSn/BSn-2 templates using massively the {{{|safesubst:}}} construct... As a result, the maps {{BS-map}} are even more prone to overflow.
  6. It seems more efficient to keep the {{BSn}} and {{BSn-2}} in their 2013 form, for straightforward use in a {{BS-map}}, while providing separately the {{BSn/safesubst}} and {{BSn/safesubst}} templates for compilation of a {{BS-map}} into a {{routemap}}. This scheme is already in use for templates BSn where n>10. Once again, Template:BS11 is for simple use, Template:BS11/safesubst is for compilation purposes.