Difference between revisions of "Template:RenderLink"

From DDO Compendium
(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...")
 
 
(6 intermediate revisions by the same user not shown)
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|Ruins_ f Gianthold (Pack)}}
|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)}}}}
|example3 = <nowiki>{{RenderLink|
* {{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}
* {{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}}</nowiki>
|example3output = {{RenderLink|
* {{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}
* {{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}}
|parameter1name = Link Text
|parameter1name = Link Text
|parameter1description = This is what the template was given for the link
|parameter1description = This is what the template was given for the link
}}
}}</noinclude><onlyinclude>{{#ifeq: {{padleft:|1|{{{1|}}}}}|[|{{{1}}}|{{#ifeq: {{padleft:|1|{{{1|}}}}}|*|{{{1}}}|[[{{{1}}}]]}}}}</onlyinclude>
</noinclude>
<onlyinclude>{{#ifeq: {{padleft:|1|{{{1|}}}}}|{|{{{1}}}|[[{{{1}}}]]}}</onlyinclude>

Latest revision as of 21:09, 5 November 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)}}Ruins of Gianthold (Pack)
{{RenderLink|{{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}}Ruins of Gianthold
{{RenderLink| * {{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}} * {{PageLink|Ruins of Gianthold|Ruins of Gianthold (Pack)}}}}* Ruins of Gianthold

Usage[edit]

{{RenderLink|(Link Text)}}

Parameter Documentation
Link TextThis 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}}}]]