Difference between revisions of "Template:ILink"

From IHE Wiki
Jump to navigation Jump to search
m
 
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[{{If|test={{Equal|{{PAGENAME}}|{{{1}}}}}|then={{{2}}}|else={{PAGENAME}}#{{{2}}}}}|{{{3|{{{2}}}}}}]]
+
<includeonly><span>[[{{If|test={{Equal|{{PAGENAME}}|{{{1}}}}}|then={{{2}}}|else={{PAGENAME}}#{{{2}}}}}|{{{3|{{{2}}}}}}]]</span></includeonly><noinclude>
 +
The ILink wiki macro is used to insert links to other pages into the PCC Technical Framework.
 +
 
 +
Usage:
 +
<pre>
 +
  {{ILink|{{subst:PAGENAME}}|LinkPage|Text}}
 +
</pre>
 +
 
 +
subst:PAGENAME text inserts the name of the current page, which is how the ILink macro knows when the link needs to be an internal page link when the page is included into other pages that contain the full framework, or a link to another page when the page is not included.
 +
 
 +
LinkPage gives the target of the link.
 +
 
 +
Text gives the text to display, and if omitted, LinkPage will be shown.
 +
 
 +
</noinclude>

Latest revision as of 02:18, 1 June 2008

The ILink wiki macro is used to insert links to other pages into the PCC Technical Framework.

Usage:

  {{ILink|{{subst:PAGENAME}}|LinkPage|Text}}

subst:PAGENAME text inserts the name of the current page, which is how the ILink macro knows when the link needs to be an internal page link when the page is included into other pages that contain the full framework, or a link to another page when the page is not included.

LinkPage gives the target of the link.

Text gives the text to display, and if omitted, LinkPage will be shown.