Template:BSLjunc: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(BSLjunc now supports BSLvarinfo, and passes through all the info that is used by BSLfuncinfo and BSLtableinfo)
(undoing for now until I have time to troubleshoot it)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{tableform|}}}|yes<!--
<includeonly><!--
                                  -->|{{BSLtableinfo|group={{{group}}}|kind={{{kind}}}|type={{{type}}}|name={{{name}}}|mac={{{mac}}}|win={{{win}}}}}<!--
-->{{#ifeq:{{{tableform|}}}<!-- "if tableform == yes"
                                  -->|{{#ifeq:{{#replace:{{lcfirst:{{PAGENAME}}}}| |_}}|{{{name}}}<!--
      -->|yes<!--
                                                                                    -->|{{Retitle|{{{name}}}}}<!--
  then -->|{{BSLtableinfo
                                                                                    -->This is a single {{#ifeq:{{{kind}}}|func<!--
|group={{{group}}}
                                                                                                                        -->|function<!--
|kind={{{kind}}}
                                                                                                                        -->|variable<!--
                                                                                                      -->}} listing.<!--
                                                                                    -->To see this command in the context of related commands,<!--
                                                                                    --> see the [[BSL:{{Find BSL Group|{{{name}}}}}]] page.<!--
                                                                                    -->|Click [[{{{name}}}]] to edit info.}}<!--
                                                                                    -->{{#ifeq:{{{kind}}}|func
                                                                                                      -->|{{BSLfuncinfo
|type={{{type}}}
|type={{{type}}}
|default={{{default}}}
|name={{{name}}}
|name={{{name}}}
|mac={{{mac}}}
|mac={{{mac}}}
|win={{{win}}}
|win={{{win}}}<!--
|arg1optional={{{arg1optional}}}
        -->}}<!-- end BSLtableinfo
|arg1default={{{arg1default}}}
  else -->|{{#ifeq:{{#replace:{{lcfirst:{{PAGENAME}}}}| |_}}<!-- "if PAGENAME == name when we de-capitalize PAGENAME and restore the underscore"...
|arg1type={{{arg1type}}}
              -->|{{{name}}}<!--
|arg1name={{{arg1name}}}
              -->|{{Retitle|{{{name}}}}}<!--                ...fix page title
|arg1alttype={{{arg1alttype}}}
                -->Edit this page to change this command's information. <!-- and print "standalone" message
|arg1altname={{{arg1altname}}}
                -->To see this command in the context of related commands, <!--
|arg2optional={{{arg2optional}}}
                -->go to the [[BSL:{{Find BSL Group|{{{name}}}}}]] page.<br /><!--
|arg2default={{{arg2default}}}
        -->}}<!--                                            end "if PAGENAME == name"
|arg2type={{{arg2type}}}
        -->{{#ifeq:{{{kind}}}<!--                                "if kind == func"
|arg2name={{{arg2name}}}
              -->|func<!--
|arg2alttype={{{arg2alttype}}}
              -->|{{BSLfuncinfo
|arg2altname={{{arg2altname}}}
|type={{{type|}}}
|arg3optional={{{arg3optional}}}
|default={{{default|}}}
|arg3default={{{arg3default}}}
|name={{{name|}}}
|arg3type={{{arg3type}}}
|mac={{{mac|}}}
|arg3name={{{arg3name}}}
|win={{{win|}}}
|arg3alttype={{{arg3alttype}}}
|arg1optional={{{arg1optional|}}}
|arg3altname={{{arg3altname}}}
|arg1default={{{arg1default|}}}
|arg4optional={{{arg4optional}}}
|arg1type={{{arg1type|}}}
|arg4default={{{arg4default}}}
|arg1name={{{arg1name|}}}
|arg4type={{{arg4type}}}
|arg1alttype={{{arg1alttype|}}}
|arg4name={{{arg4name}}}
|arg1altname={{{arg1altname|}}}
|arg4alttype={{{arg4alttype}}}
|arg2optional={{{arg2optional|}}}
|arg4altname={{{arg4altname}}}
|arg2default={{{arg2default|}}}
|arg5optional={{{arg5optional}}}
|arg2type={{{arg2type|}}}
|arg5default={{{arg5default}}}
|arg2name={{{arg2name|}}}
|arg5type={{{arg5type}}}
|arg2alttype={{{arg2alttype|}}}
|arg5name={{{arg5name}}}
|arg2altname={{{arg2altname|}}}
|arg5alttype={{{arg5alttype}}}
|arg3optional={{{arg3optional|}}}
|arg5altname={{{arg5altname}}}
|arg3default={{{arg3default|}}}
|arg6optional={{{arg6optional}}}
|arg3type={{{arg3type|}}}
|arg6default={{{arg6default}}}
|arg3name={{{arg3name|}}}
|arg6type={{{arg6type}}}
|arg3alttype={{{arg3alttype|}}}
|arg6name={{{arg6name}}}
|arg3altname={{{arg3altname|}}}
|arg6alttype={{{arg6alttype}}}
|arg4optional={{{arg4optional|}}}
|arg6altname={{{arg6altname}}}
|arg4default={{{arg4default|}}}
|arg7optional={{{arg7optional}}}
|arg4type={{{arg4type|}}}
|arg7default={{{arg7default}}}
|arg4name={{{arg4name|}}}
|arg7type={{{arg7type}}}
|arg4alttype={{{arg4alttype|}}}
|arg7name={{{arg7name}}}
|arg4altname={{{arg4altname|}}}
|arg7alttype={{{arg7alttype}}}
|arg5optional={{{arg5optional|}}}
|arg7altname={{{arg7altname}}}
|arg5default={{{arg5default|}}}
|arg8optional={{{arg8optional}}}
|arg5type={{{arg5type|}}}
|arg8default={{{arg8default}}}
|arg5name={{{arg5name|}}}
|arg8type={{{arg8type}}}
|arg5alttype={{{arg5alttype|}}}
|arg8name={{{arg8name}}}
|arg5altname={{{arg5altname|}}}
|arg8alttype={{{arg8alttype}}}
|arg6optional={{{arg6optional|}}}
|arg8altname={{{arg8altname}}}<!--
|arg6default={{{arg6default|}}}
                                                                                                        -->}}<!-- end BSLfuncinfo
|arg6type={{{arg6type|}}}
                                                                                                      -->|{{BSLvarinfo
|arg6name={{{arg6name|}}}
|arg6alttype={{{arg6alttype|}}}
|arg6altname={{{arg6altname|}}}
|arg7optional={{{arg7optional|}}}
|arg7default={{{arg7default|}}}
|arg7type={{{arg7type|}}}
|arg7name={{{arg7name|}}}
|arg7alttype={{{arg7alttype|}}}
|arg7altname={{{arg7altname|}}}
|arg8optional={{{arg8optional|}}}
|arg8default={{{arg8default|}}}
|arg8type={{{arg8type|}}}
|arg8name={{{arg8name|}}}
|arg8alttype={{{arg8alttype|}}}
|arg8altname={{{arg8altname|}}}<!--
                        -->}}<!-- end BSLfuncinfo
                      -->|{{BSLvarinfo
|type={{{type}}}
|type={{{type}}}
|default={{{default}}}
|default={{{default}}}
Line 72: Line 80:
|mac={{{mac}}}
|mac={{{mac}}}
|win={{{win}}}<!--
|win={{{win}}}<!--
                                                                                                        -->}}<!-- end BSLvarinfo
                        -->}}<!-- end BSLvarinfo
                                                                                    -->}}<!-- end "if kind == func"
        -->}}<!--                                           end "if kind == func"
                                  -->}}<!-- end "if PAGENAME == name"
-->}}<!--                                                   end "if tableform == yes"
          -->}}<!-- end "if tableform == yes"
--></includeonly><noinclude>
--></includeonly><noinclude>
BSLjunc is what could be called a "junction template"; in displaying the information about a function or variable which is passed into it, it determines which of three templates to call -- [[Template:BSLtableinfo|BSLtableinfo]], [[Template:BSLfuncinfo|BSLfuncinfo]], or [[Template:BSLvarinfo|BSLvarinfo]] -- depending on circumstances which are fully explained on [[BSL:Grouping]]. This template is used to display command information on individual BSL [[:Category:BSL functions|function]] and [[:Category:BSL variables|variable]] pages, on [[:Category:Scripting tasks|scripting task]] pages, and on [[BSL:List]]. It is also responsible for [[Template:Retitle|re-titling]] the individual function/variable pages to use the correct capitalization and underscores found in the original command names, and for displaying messages that direct the reader from the individual page to the scripting task page or vice versa.
BSLjunc is what could be called a "junction template"; in displaying the information about a function or variable which is passed into it, it determines which of three templates to call -- [[Template:BSLtableinfo|BSLtableinfo]], [[Template:BSLfuncinfo|BSLfuncinfo]], or [[Template:BSLvarinfo|BSLvarinfo]] -- depending on circumstances which are fully explained on [[BSL:Grouping]]. This template is used to display command information on individual BSL [[:Category:BSL functions|function]] and [[:Category:BSL variables|variable]] pages, on [[:Category:Scripting tasks|scripting task]] pages, and on [[BSL:List]]. It is also responsible for [[Template:Retitle|re-titling]] the individual function/variable pages to use the correct capitalization and underscores found in the original command names, and for displaying messages that direct the reader from the individual page to the scripting task page or vice versa.


[[Category:Basic formatting templates]]</noinclude>
[[Category:Table templates]]</noinclude>

Latest revision as of 05:40, 22 February 2018

BSLjunc is what could be called a "junction template"; in displaying the information about a function or variable which is passed into it, it determines which of three templates to call -- BSLtableinfo, BSLfuncinfo, or BSLvarinfo -- depending on circumstances which are fully explained on BSL:Grouping. This template is used to display command information on individual BSL function and variable pages, on scripting task pages, and on BSL:List. It is also responsible for re-titling the individual function/variable pages to use the correct capitalization and underscores found in the original command names, and for displaying messages that direct the reader from the individual page to the scripting task page or vice versa.