VbzCart/Template:l/version: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
imported>Woozle
No edit summary
imported>Woozle
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Assuming that the first two parts of the title constitute a version-documentation path (<code>project/version_marker</code>), links to a subpage within that version.
<noinclude>Assuming that the first two parts of the title constitute a version-documentation path (<code>project/version_marker</code>), links to a subpage within that version.


The implicit understanding is that we're linking to a thing named {{{2}}} that is a {{{1}}} in version {{{title.part2}}} of project {{{title.part2}}}, although not all of this information is necessarily used.
The implicit understanding is that we're linking to a thing named {{{2}}} that is a {{{1}}} in version {{{title.part2}}} of project {{{title.part1}}}, although not all of this information is necessarily used.
 
If {{{2}}} is blank, then we're linking to a thing named {{{1}}} under {{arg|project}}/{{arg|version}}/
 
Version and Project can be overridden.


Notes:
Notes:
Line 7: Line 11:
* part 2: {{#titleparts:{{PAGENAME}}|1|2}}
* part 2: {{#titleparts:{{PAGENAME}}|1|2}}
* part 3: {{#titleparts:{{PAGENAME}}|1|3}}
* part 3: {{#titleparts:{{PAGENAME}}|1|3}}
</noinclude><includeonly>[[{{#titleparts:{{PAGENAME}}|2|1}}/{{{1}}}/{{{2}}}|{{{2}}}]]</includeonly>
</noinclude><includeonly>[[{{{project|{{#titleparts:{{PAGENAME}}|1|1}}}}}/{{{version|{{#titleparts:{{PAGENAME}}|1|2}}}}}/{{{1}}}{{#if:{{{2|}}}|/{{{2}}}|}}  |{{{3|{{{2|{{{1}}}}}}}}}]]</includeonly>

Latest revision as of 15:55, 16 January 2020

Assuming that the first two parts of the title constitute a version-documentation path (project/version_marker), links to a subpage within that version.

The implicit understanding is that we're linking to a thing named {{{2}}} that is a {{{1}}} in version {{{title.part2}}} of project {{{title.part1}}}, although not all of this information is necessarily used.

If {{{2}}} is blank, then we're linking to a thing named {{{1}}} under <project>/<version>/

Version and Project can be overridden.

Notes:

  • part 1: VbzCart
  • part 2: Template:l
  • part 3: version