Jump to content

Wikipedia:Route diagram template/Transwiki guide

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sameboat (talk | contribs) at 02:25, 22 January 2014 (Module and template). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Route diagram template (RDT) project involves lots of templates to be functional, in order to allow the map in other Wiki which has not yet adopted this project to display correctly, you will need to copy the required templates carefully. If you have more questions regarding transwikiing this project, go to the home discussion page, Wikipedia talk:Route diagram template, and leave the message.

Icon

You do not need to upload any icons to your local Wiki because they are shared in Wikimedia Commons. However, if your Wiki project is not directly affiliated to Wikimedia Foundation such as Wikia, you do need to upload all the license-free icons to your local Wiki web space, or enable InstantCommons if possible. You can find all the icons of this project in Commons:category:BSicon and its subcategories, or check the catalog of pictograms for list of explanation of the icons. For starter, you will at least need   (KBHFa),   (BHF),   (STR) and   (KBHFe) to compose the most basic map.

Module and template

Since 2013, Lua module has been created to replace to original method of stacking BS row templates repeatedly to form the route map. The Routemap module is being developed and tested in Russian Wikipedia. Ongoing updates are expected but the overall format of forming the basic route map is already stable, so Wikimedia projects have not yet adapted the RDT project are recommended to directly copy the module and transcluding template from Russian Wikipedia and make minor adjustments if needed. Notice that the namespaces of "Module" and "Template" in Russian are "Модуль" and "Шаблон" respectively. These should be changed to English or the language of your home project, otherwise the Russian namespaces are unrecognizable elsewhere.

The module itself will work perfectly without translating anything inside it (which are technically commented notes). The only real changes that should be made to the module is the width of the collapsible button which differ from language to language. These are at the lines ["row-collapsible-left-button-width"] and ["row-collapsible-right-button-width"]. Change the width values so they fit just the longest length of the show/hide and expand/collapse buttons.

The Russian transcluding template provides both English and Russian versions of named parameters. You may remove the Russian parameter names for the sake of loading speed (e.g. from {{{сворачиваемый|{{{collapsible|}}}}}} to {{{collapsible|}}}), or translate the Russian parameters names to the language of your Wikimedia project. Template document is still being translated to English at ru:Шаблон:Маршрутная карта/doc/en.

Transition from legacy BS template to Routemap module

See also

  • Meta:Help:Transwiki
  • Mediawiki:Version, if you are running your own Wiki for a long time, your Wiki software might be outdated. Some Wiki syntax or parser used by this project are not available in the older versions.