Template:IncludeTable: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#vardefine:sub|{{#if:{{{2|}}}|/{{{2}}}|{{#if:{{{sub|}}}|/{{{sub}}}}}}}}}<noinclude> | ||
</noinclude>{{anchor|includeTable}}<noinclude> | |||
{{#vardefine:sub|{{#if:{{{2|}}}|/{{{2}}}|{{#if:{{{sub|}}}|/{{{sub}}} | |||
{{ | |||
<noinclude> | |||
</noinclude>[[{{{1|template:table/{{PAGENAME}}}}}{{#var:sub}}|View/edit list on the separate source page.]]<br> | </noinclude>[[{{{1|template:table/{{PAGENAME}}}}}{{#var:sub}}|View/edit list on the separate source page.]]<br> | ||
{{ | {{{{{1|table/{{PAGENAME}}}}}{{#var:sub}}}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Template to uniformely include swapped content. | Template to uniformely include swapped content. | ||
Line 33: | Line 16: | ||
<pre>{{includeTable|1= |sub=}}</pre> | <pre>{{includeTable|1= |sub=}}</pre> | ||
==Example== | ==Example== | ||
<pre>{{includeTable|1=Table/IS:crossSection}}</pre>delivers | <pre>{{includeTable|1=Template:Table/IS:crossSection}}</pre>delivers | ||
{{includeTable|1=Table/IS:crossSection}} | |||
{{includeTable|1=Template:Table/IS:crossSection}} | |||
<pre>{{includeTable|1=Table/IS:crossSection|2=VII}}</pre>delivers | |||
{{includeTable|1=Template:Table/IS:crossSection|2=VII}} | |||
[[category:TableTemplate|*]] | [[category:TableTemplate|*]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:28, 14 October 2022
Usage
Template to uniformely include swapped content.
Please, employ it in combination with Template:TableDocu. Stick to the name schema described here.
Parameters
- 1 (default:table/{{PAGENAME}}): The place of the swapped object
- 2/sub: If several swapped objects exist for the page, a number has to be given. E.g. 1 will be expanded to /1, so if applied on page XYZ, {{includeTable|sub=69}} will expand to Template:Table/XYZ/69.
Copying templates
{{includeTable}}
{{includeTable|1= |sub=}}
Example
{{includeTable|1=Template:Table/IS:crossSection}}
delivers
View/edit list on the separate source page.
Identificator | AbsPos | OCP | Geographic Coordinate | ||||
---|---|---|---|---|---|---|---|
Line | Track | (in metres) | Name | Designator | Type | Latitude | Longitude |
2630 | 1 | 91232 | Bf Koblenz Hbf | KKO | Station | 50,350834 | 7,589025 |
2630 | 1 | 94353 | Bf Königsbach (b Kapellen-Stolzenfels) | KKOB | Station | 50,323351 | 7,586081 |
2630 | 1 | 99821 | Bf Rhens | KRHE | Station | 50,281444 | 7,620582 |
{{includeTable|1=Table/IS:crossSection|2=VII}}
delivers
View/edit list on the separate source page.
Template:Table/IS:crossSection/VII