Spring til indhold

Skabelon:NYCS time 2/doc

Fra Wikipedia, den frie encyklopædi
Denne skabelon indeholder en eller flere valgbare parametre.
Skabelonen anvender en syntaks, som er yderst kompliceret og esoterisk. Forsøg ikke at ændre den, medmindre du er helt sikker på, at du forstår opbygningen og er indstillet på at udbedre alle eventuelle uheldige følger af, at ændringer giver et uventet resultat. Alle eksperimenter bør udføres i sandkassen, sandkasse-skabelonen, eller på din egen brugerside.

This template formats the services that operate on a New York City Subway line. It should never be used directly, but rather through line templates.

{{ NYCS time 2 |1=<subway service>|<page to link to>|<time period icon>|<description of time period>|<time period icon for express service>|<description for time period, express service>|time={{{time|}}} }}

Of these parameters, unnamed parameter, icon, text and time are required. In addition, time must have the value {{{time|}}}, as in time={{{time|}}}. This last parameter allows the template to output different styles.

  • Unnamed parameter (or 1): subway service (ex. 7)
  • link: What page to link to (ex. IRT Flushing Line) (if not provided, links to the service page)
  • icon: What icon to show in the service time description. Use standard names. (ex. alltimes shows )
  • text: description of service pattern. Should be a readable version of icon (ex. All times)
  • dicon: Same as icon, but for diamond service.
  • dtext: Same as text, but for diamond service.
  • time: Display method. Passed through to article, use in article can be color, show, colorshow, box, full, text, nolink, or blank (nolinkatall is an additional option used in {{NYCS trains}} only).

For example, this is the template with the info described above. ({{NYCS Flushing}})

{{NYCS time 2|7|icon=alltimes|dicon=rushpeak|text=All times|dtext=rush hours in peak direction only|time={{{time|}}}}}

time= Result
color       7 All times (All times) <7>rush hours in peak direction only (rush hours in peak direction only)
show 7 All times <7>rush hours in peak direction only
colorshow       7 All times <7>rush hours in peak direction only
box  7   <7> 
bullets Add→{{rail-interchange}} Add→{{rail-interchange}}
full 7 All times (All times) <7>rush hours in peak direction only (rush hours in peak direction only)
text 7 (All times) <7> (rush hours in peak direction only)
nolink 7 <7>
<blank> 7 <7>