Template:FunctionEmbed: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
   |{{
   |{{
     #if:{{data|{{{1}}}|function1.return_type}}
     #if:{{data|{{{1}}}|function1.return_type}}
      |;{{FunctionDeclaration|name={{{1}}}|func=1|format=signature}}{{
    |;{{FunctionDeclaration|name={{{1}}}|func=1|format=signature}}{{
        #if:{{data|{{{1}}}|function1.short_description}}
      #if:{{data|{{{1}}}|function1.short_description}}
        |:{{data|{{{1}}}|function1.short_description}}}}
      |:{{data|{{{1}}}|function1.short_description}}
 
    }}
 
  }}{{
}}{{
     #if:{{data|{{{1}}}|function2.return_type}}
     #if:{{data|{{{1}}}|function2.return_type}}
      |;{{FunctionDeclaration|name={{{1}}}|func=2|format=signature}}}}{{
    |;{{FunctionDeclaration|name={{{1}}}|func=2|format=signature}}{{
      #if:{{data|{{{1}}}|function2.short_description}}
      |:{{data|{{{1}}}|function2.short_description}}
    }}
  }}{{
     #if:{{data|{{{1}}}|function3.return_type}}
     #if:{{data|{{{1}}}|function3.return_type}}
      |;{{FunctionDeclaration|name={{{1}}}|func=3|format=signature}}}}{{
    |;{{FunctionDeclaration|name={{{1}}}|func=3|format=signature}}{{
      #if:{{data|{{{1}}}|function3.short_description}}
      |:{{data|{{{1}}}|function3.short_description}}
    }}
  }}{{
     #if:{{data|{{{1}}}|function4.return_type}}
     #if:{{data|{{{1}}}|function4.return_type}}
      |;{{FunctionDeclaration|name={{{1}}}|func=4|format=signature}}}}{{
    |;{{FunctionDeclaration|name={{{1}}}|func=4|format=signature}}{{
      #if:{{data|{{{1}}}|function4.short_description}}
      |:{{data|{{{1}}}|function4.short_description}}
    }}
  }}{{
     #if:{{data|{{{1}}}|function5.return_type}}
     #if:{{data|{{{1}}}|function5.return_type}}
      |;{{FunctionDeclaration|name={{{1}}}|func=5|format=signature}}}}
    |;{{FunctionDeclaration|name={{{1}}}|func=5|format=signature}}{{
      #if:{{data|{{{1}}}|function5.short_description}}
      |:{{data|{{{1}}}|function5.short_description}}
    }}
  }}
   |{{error|Cannot find page "{{{1|}}}" for Template:FunctionEmbed}}}}</includeonly><noinclude>
   |{{error|Cannot find page "{{{1|}}}" for Template:FunctionEmbed}}}}</includeonly><noinclude>



Revision as of 00:02, 19 December 2020


Generates a brief description of a function's signature(s). Used to embed function signatures in function list pages.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Function page name1

Must be a new-style function page

Page nameoptional

Examples

{{FunctionEmbed|User:Philmasterplus/Sandbox}}


Nothing to see here, move along. Nothing to see here, move along.( Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.? )
Nothing to see here, move along.
Nothing to see here, move along. Nothing to see here, move along.( Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.? )
Nothing to see here, move along.
Nothing to see here, move along. Nothing to see here, move along.( Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.? )
Nothing to see here, move along.
Nothing to see here, move along. Nothing to see here, move along.( Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.? )
Nothing to see here, move along.
Nothing to see here, move along. Nothing to see here, move along.( Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.?, Nothing to see here, move along.? )
Nothing to see here, move along.