Diferencies ente revisiones de «Plantía:Routemap/doc»

Contenido eliminado Contenido añadido
m Replace BSicon(s): WBRÜCKE→hKRZWae, uWBRÜCKE→uhKRZWae
Xqbot (alderique | contribuciones)
m Bot: Reemplace la etiqueta obsoleta <source> y el parámetro "enclose"; cambios cosméticos
Llinia 5:
{{Usa TemplateStyles|Plantía:Routemap/styles.css}}
 
Esta plantía basada en [[Wikipedia:Lua|Lua]] sustituye a les plantíes de [[Wikipedia:Route diagram template]] antigües basaes en funciones d'analís {{tl|BS-map}} (y les obsoletes {{tl|Railway line header}}, {{tl|BS-header}} y {{tl|BS-table}}) porque los diagrames creaos por &#123;&#123;{{Routemap}} carguen primero.
 
== Usu ==
Llinia 45:
El marcáu pa componer el diagrama nel parámetru {{para|map}} ye distintu de les plantíes basaes en {{tl|BSrow}}. Les principales diferencies son los separadores en cada filera. Les subplantíes nun son necesaries, porque una filera nueva de la tabla créase simplemente con un [[retornu de carru]] (llinia nueva).
 
{{pre|{{blue|1=&#123;&#123;{{Routemap
<var style="font-family:sans-serif;color:#252525"><small>Añadir equí otros parámetros como {{para|títulu}}.</small></var>
&#124;mapa=
<var style="font-family:sans-serif;color:#252525"><small>El marcáu del mapa va equí</small></var>
&#125;&#125;}}}}}}
 
=== Básicu ===
Llinia 101:
{{pre|{{blue|*<var>{{color|#252525|text}}</var>\d*<var>{{color|#252525|text}}</var>\cd*<var>{{color|#252525|text}}</var>~~<var>{{color|#252525|main text}}</var>}}}}
{|
|<sourcesyntaxhighlight lang="moin">{{Routemap
|title=Example 1.3
|map=
Llinia 110:
cBS\vSTR\cBS
vCONTfge~~ ~~ ~~''to City''
}}</sourcesyntaxhighlight>
|style="vertical-align:top;"|{{{{PAGENAMETDOC}}
|collapsible=0
Llinia 609:
* If the empty icon cell of the collapsible row is being squashed, use empty icon {{bsq|leer}} to correct the icon columns.
 
== Transition from legacy BS row template to Routemap markup ==
=== Conversion policies ===
Many contributors of the English Route Diagram Template project during the implementation of Routemap have conflicting opinions about the justification of replacing all maps of legacy BS row templates by the Lua-based Routemap. Opponents deem the map markups of Routemap to be too esoteric for editors unfamiliar with Routemap markup to modify. While proponents support a complete conversion for better performance. There is no consensus reached at the moment so any transition without massively updating the map appearance for reflecting service and/or structural change in reality should only be done with the following considerations:
*The map of the legacy BS row template design has exceeded [[Wikipedia:Template limits|template size limit]] in the transcluding page, which means the template does not expand into its intended appearance but only the link to the template page is shown, so there is an imminent need to translate the map into Routemap design to reduce post-expand include size.
*If there is no template size issue, respect the preference of the initial contributor of the first completed version of the diagram. If that contributor contests the change to Routemap, retain the BS row template design.
 
=== Technical options ===
All [[:Categoría:Route diagram templates|BS row templates]] have had substitutable counterparts created; hence conversion can be easily done by prepending <code>subst:</code> and appending <code>/safesubst</code> to every BS row template name in the map. For example, change <code><nowiki>{{BS2|STR|BHF|0|1|2|3|O1=uSTRq}}</nowiki></code> in the map to <code><nowiki>{{subst:BS2/safesubst|STR|BHF|0|1|2|3|O1=uSTRq}}</nowiki></code>, then publish changes; it will produce <code><nowiki>STR!~uSTRq\BHF~~0~~1~~2~~3</nowiki></code>. The process can be sped up by using the "replace all" function of advanced edit tool o separate text editor such as [[Microsoft Notepad|Notepad]] o [[Notepad++]], but the search rule for the BS row templates should ideally be a [[regular expression]], like <code>\{\{(BS\d*(\-2)?)\{{!}}</code> → <code>{{((}}subst:$1/safesubst{{!}}</code>, in order to avoid templates with similar names such as BSto and BSsplit in case they are present in the map.
 
Llinia 622:
You can also use the "convertbs" function of Module:Routemap.
 
==== Function convertbs ====
Copy and paste the following code to any edit area of this wiki, maybe the map page you are working on:
<pre><nowiki>{{#invoke:Routemap|convertbs|<nowiki>