Difference between revisions of "Template:l/version"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
Line 2: Line 2:
  
 
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.part2}}}, although not all of this information is necessarily used.
 +
 +
Version and Project can be overridden.
  
 
Notes:
 
Notes:
Line 7: Line 9:
 
* 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}}|2|1}}}}}/{{{1}}}/{{{2}}}|{{{2}}}]]</includeonly>

Revision as of 10:45, 12 April 2019

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.part2}}}, although not all of this information is necessarily used.

Version and Project can be overridden.

Notes:

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