Template:Func link: Difference between revisions
Jump to navigation
Jump to search
Red Leader (talk | contribs) (Add <span class="plainlinks"> + api -> 1. Could do this differently) |
Red Leader (talk | contribs) (Change structure slightly. Now it is much simpler to change formatting) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{ext|}}} <!-- is an external link is supplied? | <includeonly><!-- | ||
-->| | |||
--><span class="plainlinks"><code><!-- Extra formatting | |||
-->{{#if: {{{ext|}}} <!-- is an external link is supplied? | |||
-->| [{{{ext}}} {{{1|<big style="color: red">Missing argument!</big>}}}]<!-- yes, so link to that | |||
-->| {{#switch: {{{1|error}}} <!-- no, so use switch for pre-set APIs | -->| {{#switch: {{{1|error}}} <!-- no, so use switch for pre-set APIs | ||
-->| error = <big style="color:red">Missing argument!</big> <!-- error message --> | -->| error = <big style="color: red">Missing argument!</big> <!-- error message --> | ||
<!-- pre-made links for core library Nasal APIs below --> | <!-- pre-made links for core library Nasal APIs below --> | ||
| append | | append | ||
| append() = | | append() = [[User:Red_Leader/Nasal_library#append.28.29|append()]] | ||
| bind | | bind | ||
| bind() = | | bind() = [[User:Red_Leader/Nasal_library#bind.28.29|bind()]] | ||
| call | | call | ||
| call() = | | call() = [[User:Red_Leader/Nasal_library#call.28.29|call()]] | ||
| caller | | caller | ||
| caller() = | | caller() = [[User:Red_Leader/Nasal_library#caller.28.29|caller()]] | ||
| chr | | chr | ||
| chr() = | | chr() = [[User:Red_Leader/Nasal_library#chr.28.29|chr()]] | ||
| closure | | closure | ||
| closure() = | | closure() = [[User:Red_Leader/Nasal_library#closure.28.29|closure()]] | ||
| cmp | | cmp | ||
| cmp() = | | cmp() = [[User:Red_Leader/Nasal_library#cmp.28.29|cmp()]] | ||
| compile | | compile | ||
| compile() = | | compile() = [[User:Red_Leader/Nasal_library#compile.28.29|compile()]] | ||
| contains | | contains | ||
| contains() = | | contains() = [[User:Red_Leader/Nasal_library#contains.28.29|contains()]] | ||
| delete | | delete | ||
| delete() = | | delete() = [[User:Red_Leader/Nasal_library#delete.28.29|delete()]] | ||
| die | | die | ||
| die() = | | die() = [[User:Red_Leader/Nasal_library#die.28.29|die()]] | ||
| find | | find | ||
| find() = | | find() = [[User:Red_Leader/Nasal_library#find.28.29|find()]] | ||
| ghosttype | | ghosttype | ||
| ghosttype() = | | ghosttype() = [[User:Red_Leader/Nasal_library#ghosttype.28.29|ghosttype()]] | ||
| id | | id | ||
| id() = | | id() = [[User:Red_Leader/Nasal_library#id.28.29|id()]] | ||
| int | | int | ||
| int() = | | int() = [[User:Red_Leader/Nasal_library#int.28.29|int()]] | ||
| keys | | keys | ||
| keys() = | | keys() = [[User:Red_Leader/Nasal_library#keys.28.29|keys()]] | ||
| left | | left | ||
| left() = | | left() = [[User:Red_Leader/Nasal_library#left.28.29|left()]] | ||
| num | | num | ||
| num() = | | num() = [[User:Red_Leader/Nasal_library#num.28.29|num()]] | ||
| pop | | pop | ||
| pop() = | | pop() = [[User:Red_Leader/Nasal_library#pop.28.29|pop()]] | ||
| right | | right | ||
| right() = | | right() = [[User:Red_Leader/Nasal_library#right.28.29|right()]] | ||
| setsize | | setsize | ||
| setsize() = | | setsize() = [[User:Red_Leader/Nasal_library#setsize.28.29|setsize()]] | ||
| size | | size | ||
| size() = | | size() = [[User:Red_Leader/Nasal_library#size.28.29|size()]] | ||
| sort | | sort | ||
| sort() = | | sort() = [[User:Red_Leader/Nasal_library#sort.28.29|sort()]] | ||
| split | | split | ||
| split() = | | split() = [[User:Red_Leader/Nasal_library#split.28.29|split()]] | ||
| sprintf | | sprintf | ||
| sprintf() = | | sprintf() = [[User:Red_Leader/Nasal_library#sprintf.28.29|sprintf()]] | ||
| streq | | streq | ||
| streq() = | | streq() = [[User:Red_Leader/Nasal_library#streq.28.29|streq()]] | ||
| substr | | substr | ||
| substr() = | | substr() = [[User:Red_Leader/Nasal_library#substr.28.29|substr()]] | ||
| subvec | | subvec | ||
| subvec() = | | subvec() = [[User:Red_Leader/Nasal_library#subvec.28.29|subvec()]] | ||
| typeof | | typeof | ||
| typeof() = | | typeof() = [[User:Red_Leader/Nasal_library#typeof.28.29|typeof()]] | ||
<!-- extension functions --> | <!-- extension functions --> | ||
| cmdarg | | cmdarg | ||
| cmdarg() = | | cmdarg() = [[List_of_Nasal_extension_functions#cmdarg.28.29|cmdarg()]] | ||
| fgcommand | | fgcommand | ||
| fgcommand() = | | fgcommand() = [[List_of_Nasal_extension_functions#fgcommand.28.29|fgcommand()]] | ||
| addcommand | | addcommand | ||
| addcommand() = | | addcommand() = [[List_of_Nasal_extension_functions#addcommand.28.29|addcommand()]] | ||
| removecommand | | removecommand | ||
| removecommand() = | | removecommand() = [[List_of_Nasal_extension_functions#removecommand.28.29|removecommand()]] | ||
| print | | print | ||
| print() = | | print() = [[List_of_Nasal_extension_functions#print.28.29|print()]] | ||
| logprint | | logprint | ||
| logprint() = | | logprint() = [[List_of_Nasal_extension_functions#logprint.28.29|logprint()]] | ||
| getprop | | getprop | ||
| getprop() = | | getprop() = [[List_of_Nasal_extension_functions#getprop.28.29|getprop()]] | ||
| setprop | | setprop | ||
| setprop() = | | setprop() = [[List_of_Nasal_extension_functions#setprop.28.29|setprop()]] | ||
| interpolate | | interpolate | ||
| interpolate() = | | interpolate() = [[List_of_Nasal_extension_functions#interpolate.28.29|interpolate()]] | ||
| settimer | | settimer | ||
| settimer() = | | settimer() = [[List_of_Nasal_extension_functions#settimer.28.29|settimer()]] | ||
| maketimer | | maketimer | ||
| maketimer() = | | maketimer() = [[List_of_Nasal_extension_functions#maketimer.28.29_.282.11.2B.29|maketimer()]] | ||
| geodinfo | | geodinfo | ||
| geodinfo() = | | geodinfo() = [[List_of_Nasal_extension_functions#geodinfo.28.29|geodinfo()]] | ||
| airportinfo | | airportinfo | ||
| airportinfo() = | | airportinfo() = [[List_of_Nasal_extension_functions#airportinfo.28.29|airportinfo()]] | ||
| history | | history | ||
| history() = | | history() = [[List_of_Nasal_extension_functions#history.28.29_.283.1.2B.29|history()]] | ||
| flightplan | | flightplan | ||
| flightplan() = | | flightplan() = [[List_of_Nasal_extension_functions#flightplan.28.29|flightplan()]] | ||
| carttogeod | | carttogeod | ||
| carttogeod() = | | carttogeod() = [[List_of_Nasal_extension_functions#carttogeod.28.29|carttogeod()]] | ||
| geodtocart | | geodtocart | ||
| geodtocart() = | | geodtocart() = [[List_of_Nasal_extension_functions#geodtocart.28.29|geodtocart()]] | ||
| parsexml | | parsexml | ||
| parsexml() = | | parsexml() = [[List_of_Nasal_extension_functions#parsexml.28.29|parsexml()]] | ||
| resolvepath | | resolvepath | ||
| resolvepath() = | | resolvepath() = [[List_of_Nasal_extension_functions#resolvepath.28.29|resolvepath()]] | ||
| rand | | rand | ||
| rand() = | | rand() = [[List_of_Nasal_extension_functions#rand.28.29|rand()]] | ||
| srand | | srand | ||
| srand() = | | srand() = [[List_of_Nasal_extension_functions#srand.28.29|srand()]] | ||
| md5 | | md5 | ||
| md5() = | | md5() = [[List_of_Nasal_extension_functions#md5.28.29_.283.1.2B.29|md5()]] | ||
| abort | | abort | ||
| abort() = | | abort() = [[List_of_Nasal_extension_functions#abort.28.29|abort()]] | ||
| #default = | | #default = [[{{#if: {{{page|}}} <!-- is it on a different page? | ||
-->| {{{page}}} <!-- yes | -->| {{{page}}} <!-- yes | ||
-->| {{FULLPAGENAME}} }} <!-- no, it's on the page that the template is on | -->| {{FULLPAGENAME}} }}<!-- no, it's on the page that the template is used on | ||
-->#{{{1}}}| | -->#{{{1}}}|{{{1}}}]]<!-- | ||
-->}}<!-- end #switch | |||
-->}}<!-- end # | -->}}<!-- end #if | ||
--> | --></code></span><!-- end extra formatting | ||
--></includeonly><noinclude>{{Informative template|1= | |||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == |
Revision as of 12:51, 9 February 2015
The following template description is not displayed when the template is inserted in an article.
Goal
This template can be used to add a link to the documentation of a Nasal API function. It can also be used for others (for example C++ functions) and can link to external sites.
Usage
{{Func link|api|page|ext}}
All parameters except api are optional
- api
- Name of the function to link to.
- page
- Link to another wiki page, for example Help:Template.
- ext
- External link to another site. Overrides page.
Examples
{{Func link|maketimer}} is available in FG 2.11+
maketimer()
is available in FG 2.11+
See also {{Func link|http.load()|page=List_of_Nasal_extension_functions}}.
See also http.load()
.
{{Func link|printf()|ext=http://en.wikipedia.org/wiki/Printf_format_string}}