Template:TA

AM&C

The action of the TA template with no pass parameter is shown above. It forms a link to the AM&C TOC page.

 

usage

This template forms an internal link to the Trainz wikibook with placeholder parameter {{{1}}}, and incorporates an option to access a sub-sub-page given the optional 3rd default parameter: {{{3}}} as well allowing for as an optional pretty-link re-title parameter '2' allowing {{{2}}} and/or '|3=sub-page/' formatted link calls ... all forming the link and all links in the wikimarkup as:

  •   [[Trainz/AM&C/{{{3|}}}{{{1}}}|{{{p|{{{2|{{{1}}}}}}}}}]] 
  • Users unfamiliar with wiki-markup parameter parsing, just focus on {{{2}}} or '|2=text' overriding the presented text of the link,
  • and {{{3}}}/ or '|3=sub-sub-linktext/' giving a prefix to a sub-sub-page, so the subject page is:
[[Trainz/AM&C/{{{3}}}/{{{1}}} | {{{2}}}]], pipe-linked as {{{2}}}
if and when given, {{{3}}}/ MUST HAVE a trailing '/' to form a proper link.

  The observant and discerning reader will have noted the '| p=' for 'pretty parameter' overrides '2', as it does for most all Trainz link templates.   Example-1, expanded paste down:

This is because all template default parameters, formally 'numbered parameters' can also be specified like this:
{{TA
 |1=Tips And Tricks
 |2=Tips
 }}
which in wiki-markup language is processed exactly
the same as {{TA |Tips And Tricks |Tips }}. 

 

Warning icon.svg
caution  When using a template such as this which forms a link, it is best to NOT use spaces between the pipe characters "|" as done for clarity above.


P train grey.png
However... Spaces in the 'pretty-text' part are fine and dandy! Indulge yourself in clarity!

In-line Examples:

  • {{TA|Tips And Tricks}} links as:
[[Trainz/AM&C/Tips And Tricks|Tips And Tricks]] and the other formulation:
[[/AM&C/Tips And Tricks|Tips And Tricks]] both would.
But... is much easier to edit around on a page when trying to get the best prose presentation.
  • Similarly:
{{TA|Tips And Tricks|Tricks}} links as if the constructs:
[[Trainz/AM&C/Tips And Tricks|Tricks]] and
[[/AM&C/Tips And Tricks|Tricks]] which is perhaps part of the phrase you want.

Which do you think is easiest to look past in a paragraph filled with prose and multiple links?  

  • Sub-subpage links will mainly be needed in the forthcoming Errorfixing series of tutorials and the Programmed Instruction (Trainz A-Z) linked progressive tutorials off their own sub-TOC base page.

Planned use of Sub-sub-pages... Better than splitting the book down the multiple tracks... we're going to make a lot of new pages in the PI tutorials! Whether for beginners or intermediate Trainzers, they'll all end in content creation and other advanced topics like TransDEM map generation anyway.
https://en.m.wikibooks.org/wiki/Template:TA
en.m.wikibooks.org
crawl=CC-MAIN-2021-25
25449
application/http; msgtype=response
sha1:4GSERR7FHYLD3NI4GSC2D3NP2UZ6MUSR
<urn:uuid:141c8d39-6f04-4094-b4d1-c9cd3a1a64dd>
2021-06-23T05:09:17Z
208.80.154.224
text/html
sha1:VIB7LFXVTD7AIM3RLCRRPLCHFNNQQFH2
<urn:uuid:9a06c121-963d-492c-b49a-f30751ccb4d0>
https://en.m.wikibooks.org/wiki/Template:TA
response
<urn:uuid:311925c5-5299-47a7-9fc7-2d1c2acc2017>
isPartOf: CC-MAIN-2021-25
publisher: Common Crawl
description: Wide crawl of the web for June 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-182.ec2.internal
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/