Template:RN GIT REPO WRAPPER: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>                                         <!-- Begin the inclusion section -->
<includeonly><!-- Begin the inclusion section
{{#ifeq: {{{HTTP|}}}                                 <!-- Check if the HTTP parameter is provided... -->
-->{{#ifeq: {{{HTTP|}}} | |<!-- Check if the HTTP parameter is an empty string, and provide a case for when it is empty. Keep it on the same line to avoid extra line breaks when it's empty -->
  |                                                  <!-- ...and compare it to this value (an empty string, in this case) -->
    |{{RN_GIT_REPO<!-- If HTTP is provided and not empty, insert the RN_GIT_REPO template -->
  |                                                  <!-- Case for HTTP not provided or empty -->
        |LABEL={{{LABEL}}}<!-- Provide the LABEL parameter -->
  | {{RN_GIT_REPO                                     <!-- If HTTP is provided and not empty, insert the RN_GIT_REPO template -->
        |HTTP={{{HTTP}}}<!-- Provide the HTTP parameter -->
      |LABEL={{{LABEL}}}                             <!-- Provide the LABEL parameter -->
        |BRANCH={{{BRANCH}}}<!-- Provide the BRANCH parameter -->
      |HTTP={{{HTTP}}}                               <!-- Provide the HTTP parameter -->
        |COMMIT={{{COMMIT}}}<!-- Provide the COMMIT parameter -->
      |BRANCH={{{BRANCH}}}                           <!-- Provide the BRANCH parameter -->
  }}
      |COMMIT={{{COMMIT}}}                           <!-- Provide the COMMIT parameter -->
}}</includeonly>
    }}
}}                                                   <!-- End the ifeq function -->
</includeonly>                                        <!-- End the inclusion section -->

Latest revision as of 01:40, 27 August 2023