Difference between revisions of "Template:Infobox function"

From COPTR
Jump to navigation Jump to search
Line 1: Line 1:
<table class="infobox formatinfo" border="0" style="float: right; border: 1px solid #aaa; max-width: 45%; overflow: hidden; background-color: #f9f9f9; padding: 0.25em; margin: 0 0.25em 1em;">
+
<includeonly><table class="infobox formatinfo" border="0" style="float: right; border: 1px solid #aaa; max-width: 45%; overflow: hidden; background-color: #f9f9f9; padding: 0.25em; margin: 0 0.25em 1em;">
<tr><td align="center" colspan="2"><b>Function definition: </b>{{{definition|Missing definition}}}</td></tr>
+
<tr><td align="center" colspan="2"><b>Function definition: </b>{{{definition|Missing definition}}}</td></tr>{{#if: {{{definition|}}}|{{#set: Definition={{{definition}}} }} }}
 +
{{#if: {{{stage|}}}|<tr><td align="center" colspan="2"><b>Lifecycle stage: </b>[[{{{stage}}}]]</td></tr> {{#set: Stage={{{stage}}} }} }}
 
</table>
 
</table>
 +
{{#ifeq: {{NAMESPACE}}|Category|See this category's main page [[{{PAGENAME}}]] for more information about this function|[[Category:Functions]] {{DisplayFunctionInformation}} }}</includeonly>

Revision as of 09:51, 20 April 2021