Difference between pages "Geeks on a Train" and "Template:!"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
 
m (Added the template documentation, due to missing $wgNamespacesWithSubpages variable.)
 
Line 1: Line 1:
KiwiRail's Northern Explorer is a well-known scenic train journey that operates three days a week from Auckland to Wellington.
+
<includeonly>|</includeonly><noinclude>
  
A group of intrepid LCA delegates are taking the train down on Saturday 17 January.
+
This is an auxiliary template allowing the pipe character "|" to be encoded within template parameters. The "|" delimiter for a Wiki table has to be escaped by a template if it's used within a template.
  
[http://www.seat61.com/northern-explorer.htm Seat61] has a great summary of the journey.
+
This template can be used to parse tables correctly in templates. For example, the table:
 
+
<pre>
== Tickets ==
+
{| some table
 
+
|- some row
Are available from [http://kiwirailscenic.co.nz Kiwi Rail Scenic]
+
| some cell
 
+
|
If you don't live in NZ, the only ticket price available is the Flexi fare, which is NZD$199. Cheaper tickets, starting at NZD$139 at the time of writing are available for online booking from NZ, or if you do location spoofing. [https://hola.org/ Hola] seems to work just fine for this purpose.
+
|}
 
+
}}
They accept all the major credit cards including Amex.
+
</pre>
 
+
Can be written as:
== Attending ==
+
<pre>
 
+
{{sometemplate|someparameter={
 
+
    {{!}} some table
=== To Auckland ===
+
    {{!}}- some row
 
+
    {{!}} some cell
=== To Wellington ===
+
    {{!}}
 
+
    {{!}}
==== Saturday 17 January ====
+
  }
 
+
}}
Please only list yourselves on this list once your ticket is booked. If at all possible, please list your name as it appears on your ticket, as I'll use this page to ask KiwiRail to seat as many of us together as possible.
+
</pre></noinclude>
 
+
* Christopher Neugebauer
+
* Jack Scott
+
* Cory Thompson
+
* Jethro Carr
+

Revision as of 14:06, 9 December 2014


This is an auxiliary template allowing the pipe character "|" to be encoded within template parameters. The "|" delimiter for a Wiki table has to be escaped by a template if it's used within a template.

This template can be used to parse tables correctly in templates. For example, the table:

{| some table
|- some row
| some cell
|
|}
}}

Can be written as:

{{sometemplate|someparameter={
    {{!}} some table
    {{!}}- some row
    {{!}} some cell
    {{!}}
    {{!}}
  }
}}