Template:INIT RELEASE PARAM: Difference between revisions
From Variscite Wiki
No edit summary |
Tag: Undo |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- | <includeonly><!-- | ||
Try to get RELEASE_PARAM from URL | Try to get RELEASE_PARAM from URL | ||
-->{{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | -->{{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | ||
Override RELEASE_PARAM if variable passed to template | Override RELEASE_PARAM if variable passed to template | ||
{{#vardefine:RELEASE_PARAM|{{#var:RELEASE_PARAM | {{{1}}} }}}} | -->{{#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 | 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 }}}} | {{#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 | Show a warning if URL release parameter is missing | ||
-->{{#if: {{#urlget:release}} || | -->{{#if: {{#urlget:release}} || | ||
{{Note|'''Warning:''' This page is designed to be used with a 'release' URL parameter. | {{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: | To view this page for a specific Variscite SoM and software release, please follow these steps: | ||
# Visit [[Main_Page| | # Visit [[Main_Page|variwiki.com]] | ||
# Select your SoM | # Select your SoM | ||
# Select the software release | # Select the software release | ||
|error}}}} | |error}}}}</includeonly> |