Template:Funclib: Difference between revisions
(adding instuctions for param 2, and {{{cat}}} param.) |
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Use this at the very first line of function library documentation pages (not the main page of the function library itself - just put those in the library documentation category manually - this template might grow larger in the future) | |||
;Example | |||
:<code><nowiki>{{funclib|Libram (Library)|Libram}}</nowiki></code> | |||
Format the parameters (after the first <code>|</code>) exactly as you would in a wikilink. | |||
[[Category:Interface customization templates|{{PAGENAME}}]] | |||
---- | |||
;Template | |||
<onlyinclude><!-- | |||
RENAME HACKS because there are so many references already | |||
swap this maybe for automatic exists test on (AddOn) | |||
-->{{#vardefine:tNAME|{{#if:{{{1|}}}|{{{1|}}}}}}}<!-- trim | |||
-->{{#vardefine:tNAME|{{#switch:{{#var:tNAME}} | |||
|Sea=Sea (AddOn) | |||
|Sky=Sky (AddOn) | |||
|Earth=Earth (AddOn) | |||
|#default={{#var:tNAME}}}}}}<!-- | |||
--><div style="width:40.5em; margin:0 auto 1em .5em; border:1px solid; padding:.25em 0 .25em 5em;">This article is a part of the documentation of the [[{{#var:tNAME}}{{#if:{{{2|}}}|{{!}} {{{2}}}}}]] function library</div><includeonly>[[Category:{{{cat|{{#var:tNAME}}}}}/documentation]]</includeonly><!-- | |||
--></onlyinclude> | |||
Latest revision as of 00:48, 2 December 2013
Use this at the very first line of function library documentation pages (not the main page of the function library itself - just put those in the library documentation category manually - this template might grow larger in the future)
- Example
{{funclib|Libram (Library)|Libram}}
Format the parameters (after the first |) exactly as you would in a wikilink.
- Template
This article is a part of the documentation of the [[]] function library