Sjabloon:Lijnvoering

Uit Wiki Raamsdonks Historie



De sjabloonbeschrijving hieronder wordt niet afgebeeld wanneer het sjabloon wordt geplaatst

Doel

Dit sjabloon maakt het mogelijk om in een infobox voor stations compact per lijn de vorige en volgende stations alsook de termini weer te geven.

Gebruik

Gebruik met 1 regel
 
vorige1
begin1
Bestand:Octicons-chevron-left.svg lijn1 Bestand:Octicons-chevron-right.svg volgende1
einde1

Plak volgende code als een nieuwe lijn in een infobox en vervang de parameters door de gewenste waarden:

| breed1 = {{Lijnvoering|lijn1|vorige1|volgende1|begin1|einde1}}

De input van het sjabloon moet in de juiste volgorde ingevoerd worden. Parameters kunnen leeg zijn, maar mogen niet volledig weggelaten worden. Na de laatst ingevulde parameter mag de overschot wel verwijderd worden.

Gebruik met 10 regels
 
vorige1
begin1
Bestand:Octicons-chevron-left.svg lijn1 Bestand:Octicons-chevron-right.svg volgende1
einde1
vorige2
begin2
Bestand:Octicons-chevron-left.svg lijn2 Bestand:Octicons-chevron-right.svg volgende2
einde2
vorige3
begin3
Bestand:Octicons-chevron-left.svg lijn3 Bestand:Octicons-chevron-right.svg volgende3
einde3
vorige4
begin4
Bestand:Octicons-chevron-left.svg lijn4 Bestand:Octicons-chevron-right.svg volgende4
einde4
vorige5
begin5
Bestand:Octicons-chevron-left.svg lijn5 Bestand:Octicons-chevron-right.svg volgende5
einde5
vorige6
begin6
Bestand:Octicons-chevron-left.svg lijn6 Bestand:Octicons-chevron-right.svg volgende6
einde6
vorige7
begin7
Bestand:Octicons-chevron-left.svg lijn7 Bestand:Octicons-chevron-right.svg volgende7
einde7
vorige8
begin8
Bestand:Octicons-chevron-left.svg lijn8 Bestand:Octicons-chevron-right.svg volgende8
einde8
vorige9
begin9
Bestand:Octicons-chevron-left.svg lijn9 Bestand:Octicons-chevron-right.svg volgende9
einde9
vorige10
begin10
Bestand:Octicons-chevron-left.svg lijn10 Bestand:Octicons-chevron-right.svg volgende10
einde10

Dit sjabloon ondersteunt tot 50 parameters waarmee maximaal 10 regels weergegeven kunnen worden:

| breed1 = {{Lijnvoering
|lijn1|vorige1|volgende1|begin1|einde1
|lijn2|vorige2|volgende2|begin2|einde2
|lijn3|vorige3|volgende3|begin3|einde3
|lijn4|vorige4|volgende4|begin4|einde4
|lijn5|vorige5|volgende5|begin5|einde5
|lijn6|vorige6|volgende6|begin6|einde6
|lijn7|vorige7|volgende7|begin7|einde7
|lijn8|vorige8|volgende8|begin8|einde8
|lijn9|vorige9|volgende9|begin9|einde9
|lijn10|vorige10|volgende10|begin10|einde10}}

Doorgaans zal dit sjabloon ingevoegd worden in een infobox-sjabloon. Gebruik daarvoor volgende code:

| breed1 = {{#if:{{{lijn1|}}}{{{lijn2|}}}{{{lijn3|}}}{{{lijn4|}}}{{{lijn5|}}}{{{lijn6|}}}{{{lijn7|}}}{{{lijn8|}}}{{{lijn9|}}}{{{lijn10|}}}|{{Lijnvoering
|{{{lijn1|}}}|{{{vorige1|}}}|{{{volgende1|}}}|{{{begin1|}}}|{{{einde1|}}}|{{{lijn2|}}}|{{{vorige2|}}}|{{{volgende2|}}}|{{{begin2|}}}|{{{einde2|}}}|{{{lijn3|}}}|{{{vorige3|}}}|{{{volgende3|}}}|{{{begin3|}}}|{{{einde3|}}}|{{{lijn4|}}}|{{{vorige4|}}}|{{{volgende4|}}}|{{{begin4|}}}|{{{einde4|}}}|{{{lijn5|}}}|{{{vorige5|}}}|{{{volgende5|}}}|{{{begin5|}}}|{{{einde5|}}}|{{{lijn6|}}}|{{{vorige6|}}}|{{{volgende6|}}}|{{{begin6|}}}|{{{einde6|}}}|{{{lijn7|}}}|{{{vorige7|}}}|{{{volgende7|}}}|{{{begin7|}}}|{{{einde7|}}}|{{{lijn8|}}}|{{{vorige8|}}}|{{{volgende8|}}}|{{{begin8|}}}|{{{einde8|}}}|{{{lijn9|}}}|{{{vorige9|}}}|{{{volgende9|}}}|{{{begin9|}}}|{{{einde9|}}}|{{{lijn10|}}}|{{{vorige10|}}}|{{{volgende10|}}}|{{{begin10|}}}|{{{einde10}}|}}

De parameters kunnen vervolgens bij gebruik van het infobox-sjabloon ingevoerd worden. Geef dit zeker mee in de documentatie ervan:

| lijn1 = 
| vorige1 = 
| volgende1 = 
| begin1 = 
| einde1 = 

Deze code zal alleen een tabel tonen als er op zijn minst één lijn-parameter ingevuld is, anders wordt de volledige tabel weggelaten in de uiteindelijk output.

Voorbeeld

Voorbeeld
Naam Station Hoogwater
Opening 2050
Lijnen
 
Zaliger
Einder
Bestand:Octicons-chevron-left.svg Bestand:STIB-MIVB Line 3.svg Bestand:Octicons-chevron-right.svg terminus
Hoogwater
Lander
Arsel
Bestand:Octicons-chevron-left.svg Bestand:STIB-MIVB Line 4.svg Bestand:Octicons-chevron-right.svg Ginder
Daarsel
{{Infobox generiek
| bgcolor  = black
| color    = white
| kop      = Voorbeeld
| head1_1  = Naam             | item1_1 = Station Hoogwater
| head1_2  = Opening          | item1_2 = 2050
| kop2     = Lijnen
| breed2   = {{Lijnvoering
|{{Pictogram|MIVB|3|grootte=19}}|Zaliger||Einder|Hoogwater
|{{Pictogram|MIVB|4|grootte=19}}|Lander|Ginder|Arsel|Daarsel}}
|}}

Gebruikte sjablonen