Wikipedia:Route diagram template/Transwiki guide
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
Legacy BS templates
The following content represents the legacy form of RDT. Editor is discouraged to use it unless there is a strong technical reason. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateThis project was originally created by German Wikipedians, but since its adoption to English Wikipedia, the project/templates continue to expand while the German Wikipedians prefer to keep the project as simple as possible. However, because the English Wikipedia counterpart has a backward compatibility with the German code (map code in German Wikipedia technically works fine in English Wikipedia without additional modification), it is highly recommended to apply the English Wikipedia version. Fundamental template
Row templateThe number in these row templates indicates how many grid the template provides to display the icon horizontally. Theoretically it can be expanded endlessly, 8 icons per row is enough in most cases. Otherwise the map will spread too far and other method of rendering the map is recommended over this project. Create more row templates on demand or the admin may delete the unused.
The BSrow* templates are used to define the master format for its child templates. This is especially helpful for wiki of right-to-left writing system so editor only needs to modify the BSrow* template rather than the rest of the child row templates one by one. A trial fix for the mobile view has been applied to all 3 BSrow* master templates in April 2012. However, on 17 April 2012 the mobile view has been presumably modified by the WMF and making the fix ineffective. LegendThe "legend" in BS-map or BS-table which links to any of these pages:
Although most legend pages use the If you find some of the term difficult to be translated into your home language, you can ring the code of the row by Optional template
Major difference in other Wikimedia projectThis section compares the major differences of other Wikimedia projects with English Wikipedia. If you have modified the RDT project in your home Wikimedia project, please kindly add or update the status in here.
^1 Parameters of all kinds of BSn row templates. DE - German Wikipedia
FR - French Wikipedia
JA - Japanese Wikipedia
KO - Korean Wikipedia
RU - Russian Wikipedia, UK - Ukrainian Wikipedia
|
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.