Wikimedia: Manual:Tag extensions
This example registers a callback function for the <sample> tag. When a user adds this tag to a page like this:
<sample arg1="xxx" arg2="xxx">...input...</sample>, the parser will call the wfSampleRender() function, passing in four arguments:
source:
$link[host]
Read Original Source