Template:INIT RELEASE PARAM: Difference between revisions
From Variscite Wiki
(Created page with "{{#if: {{#urlget:release}} | Not Empty | Empty }}") |
Tag: Undo |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{#urlget:release}} | | <includeonly><!-- | ||
Try to get RELEASE_PARAM from URL | |||
-->{{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | |||
Override RELEASE_PARAM if variable passed to template | |||
-->{{#vardefine:RELEASE_PARAM|{{#var:RELEASE_PARAM | {{{1}}} }}}} <!-- | |||
Finally, use a global default variable if there is no url parameter and one is not passed to this template | |||
** This isn't working, leave it commented out for now ** | |||
{{#vardefine:RELEASE_PARAM|{{#var:RELEASE_PARAM | mx8mm-yocto-kirkstone-5.15-2.0.x-v1.0 }}}} | |||
Show a warning if URL release parameter is missing | |||
-->{{#if: {{#urlget:release}} || | |||
{{Note|'''Warning:''' This page is designed to be used with a 'release' URL parameter. | |||
This page is using the default release '''{{#var:RELEASE_PARAM}}'''.<br> | |||
To view this page for a specific Variscite SoM and software release, please follow these steps: | |||
# Visit [[Main_Page|variwiki.com]] | |||
# Select your SoM | |||
# Select the software release | |||
|error}}}}</includeonly> |