Difference between revisions of "Template:RenderLink"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>{{TemplateDocumentation |name = RenderLink |description = This template is used in top level templates to render a link. It handles determinging if the value sent...") |
MNDeveloper (talk | contribs) |
||
Line 4: | Line 4: | ||
|category=Shared Templates | |category=Shared Templates | ||
|example1 = <nowiki>{{RenderLink|Ruins of Gianthold (Pack)}}</nowiki> | |example1 = <nowiki>{{RenderLink|Ruins of Gianthold (Pack)}}</nowiki> | ||
|example1output = {{RenderLink| | |example1output = {{RenderLink|Ruins of Gianthold (Pack)}} | ||
|example2 = <nowiki>{{RenderLink|{{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}}</nowiki> | |example2 = <nowiki>{{RenderLink|{{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}}</nowiki> | ||
|example2output = {{RenderLink|{{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}} | |example2output = {{RenderLink|{{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}} | ||
Line 11: | Line 11: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#ifeq: {{padleft:|1|{{{1|}}}}}|{|{{{1}}}|[[{{{1}}}]]}}</onlyinclude> | <onlyinclude>{{padleft:|1|{{{1|}}}}}{{#ifeq: {{padleft:|1|{{{1|}}}}}|{|{{{1}}}|[[{{{1}}}]]}}</onlyinclude> |
Revision as of 16:53, 9 September 2019
RenderLink[edit]
This template is used in top level templates to render a link. It handles determinging if the value sent in is Template:PageLink or not, and does the appropriate action
Example Usage | |
{{RenderLink|Ruins of Gianthold (Pack)}} | RRuins of Gianthold (Pack) |
{{RenderLink|{{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}} | [[[[[Ruins of Gianthold (Pack)|Ruins of Gianthold]]]] |
Usage[edit]
{{RenderLink|(Link Text)}}
Parameter Documentation | |
Link Text | This is what the template was given for the link |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[{{{1}}}]]