Template:Benelux Roads Table View history

mNo edit summary
m (Moved Category and Default sort)
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| border="1" align="center" cellpadding="5px" width="100%" style="border-collapse:collapse;"
<noinclude>__NOINDEX__</noinclude><includeonly>{| border="1" align="center" cellpadding="5px" width="100%" style="border-collapse:collapse;"
|-
|- {{#if: {{{Type|}}} | <nowiki/>
! Road type
! Road type }} {{#if: {{{Icon|}}} | <nowiki/>
! Icon
! Icon }} {{#if: {{{Street|}}} | <nowiki/>
! Street
! [[Benelux_Roads_(General)#nom_de_rue_-_Straatnamen|Street]] }} {{#if: {{{City|}}} | <nowiki/>
! City {{#if: {{{Direction|}}} |<nowiki/>
! [[Benelux_Roads_(General)#Road_Segment_City|City]] }} {{#if: {{{Direction|}}} | <nowiki/>
! Direction }} {{#if: {{{Level|}}} |<nowiki/>
! Direction }} {{#if: {{{Level|}}} | <nowiki/>
! Level }}
! Level }} {{#if: {{{Lock|}}} | <nowiki/>
! Lock
! [[Benelux_Roads_(General)#Road_Segment_Lock|Lock]] }}
|-
|- {{#if: {{{Type|}}} | <nowiki/>
| <center>
{{{Type}}} </center>
| <center>
[[File:{{{Icon}}}]] </center>
|
{{{Street}}}
|
{{{City}}} {{#if: {{{Direction|}}} |<nowiki/>
{{!}} <center>
{{!}} <center>
{{#ifeq: {{{Direction|}}} | 0 | Unknown |
{{{Type}}} </center> }} {{#if: {{{Icon|}}} | <nowiki/>
{{#ifeq: {{{Direction|}}} | 1 | One way (A&#65515;B) |
{{!}} <center> [[File:{{{Icon}}}]] </center> }} {{#if: {{{Street|}}} | <nowiki/>
{{#ifeq: {{{Direction|}}} | 2 | Two way (&#8644;) |
{{!}}
{{{Direction|}}} }} }} }}
{{{Street}}} }} {{#if: {{{City|}}} | <nowiki/>
{{!}}
{{{City}}} }} {{#if: {{{Direction|}}} | <nowiki/>
{{!}} <center>
{{#ifeq: {{{Direction|}}} | 0 | Unknown | {{#ifeq: {{{Direction|}}} | 1 | One way (A&#65515;B) | {{#ifeq: {{{Direction|}}} | 2 | Two way (&#8644;) | {{{Direction|}}} }} }} }}
</center> }} {{#if: {{{Level|}}} | <nowiki/>
</center> }} {{#if: {{{Level|}}} | <nowiki/>
{{!}} <center>
{{!}} <center>
{{{Level|}}} </center> }}
{{{Level|}}} </center> }} {{#if: {{{Lock|}}} |<nowiki/>
| <center>
{{!}} <center>
{{{Lock}}} </center> {{#if: {{{Infopage|}}} | {{#ifeq: {{{Infopage|}}} | {{PAGENAME}} || <nowiki/>
{{{Lock}}} </center> }}
{{!}}-
{{!}} colspan="100" style="padding-left: 2em" {{!}} &#8658; For more info see page [[{{{Infopage}}}]] }}}}  {{#ifeq: {{{Infopage|}}} | {{PAGENAME}} || {{#if: {{{Infopage|}}}{{{Info_FR|}}}{{{Info_NL}}} | <nowiki/>
{{!}}-
{{!}} colspan="100" {{!}} {{Benelux_FR|&#8658; [[{{{Infopage}}}{{!}}plus d'information]] }} {{Benelux_NL|&#8658; [[{{{Infopage}}}{{!}}meer info]]}} }}}}
|}
|}
</includeonly>
</includeonly><noinclude>
 
{{Benelux Roads Table/doc}}
<noinclude>
[[Category:Benelux Templates]]
 
{{DEFAULTSORT:RoadTable}}
Example:
<nowiki>{{Benelux_RoadTable|
Type=Road Type|
Icon=Other-roads.png|
Street=Plain text|
City=List:
* Symbols:
* &amp;&#35;x2714&#59; &amp;&#35;x2718&#59;
* <center>html</center>
* ...|
Direction=2|
Level=3|
Lock=1}}</nowiki>
 
Gives:
{{Benelux_RoadTable|
Type=Road Type|
Icon=Other-roads.png|
Street=Plain text|
City=List:
* Symbols:
* &#x2714; &#x2718;
* <center>html</center>
* ...|
Direction=2|
Level=3|
Lock=1}}
 
{{Benelux_RoadTable|
Type=Road Type|
Icon=Other-roads.png|
Street=Plain text|
City=List|
Level=3|
Lock=1}}
 
{{Benelux_RoadTable|
Type=Road Type|
Icon=Other-roads.png|
Street=Plain text|
City=List|
Direction=2|
Lock=1}}
 
{{Benelux_RoadTable|
Type=Road Type|
Icon=Other-roads.png|
Street=Plain text|
City=List|
Lock=1}}
 
[[Category:Benelux]]
 
</noinclude>
</noinclude>

Latest revision as of 21:11, 26 October 2013


Road Table template wordt gebruikt om een uniforme tabel aan te maken op alle verschillende road types pagina's. Met de template worden de verschillende parameters mee gegeven. De template zorgt dan voor een opgemaakte tabel.
Voorbeeld:
{{Benelux_RoadTable
|Type=Road Type
|Icon=Other-roads.png
|Street=Plain text
|City=List:
* Symbols:
* &#x2714; &#x2718;
* <center>html</center>
* ...
|Direction=2                      <!-- 0,1,2 or free text -->
|Level=3                          <!-- elevation -->
|Lock=1}}                         <!-- maximum lock level -->
Resultaat:
Road type Icon Street City Direction Level Lock
Road Type

Plain text

List:

  • Symbols:
  • ✔ ✘
  • html
  • ...

Two way (⇄)

3
1


Alle parameters zijn optioneel. Bij het ontbreken van een parameter zal de kolom ook niet getoond worden.
Road type Street City Level
Road Type

Plain text

List:

  • Symbols:
  • ✔ ✘
  • html
  • ...
3