Difference between revisions of "Template:Pagelink"

From OpenGL Wiki
Jump to: navigation, search
(Oops: reversed the test.)
(Fixing bad link.)
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
For example: <code><nowiki>{{pagelink|Vertex Specification}}</nowiki></code> links like this: {{pagelink|Vertex Specification}}.
 
For example: <code><nowiki>{{pagelink|Vertex Specification}}</nowiki></code> links like this: {{pagelink|Vertex Specification}}.
  
However: <code><nowiki>{{pagelink|pagelink}}</nowiki></code> links like this: {{pagelink|pagelink}}.
+
However: <code><nowiki>{{pagelink|Template:pagelink}}</nowiki></code> links like this: {{pagelink|Template:pagelink}}.
  
 +
Can also have a text description: <code><nowiki>{{pagelink|Template:pagelink|desc}}</nowiki></code>, which links like this: {{pagelink|Template:pagelink|desc}}
 +
 +
[[Category:Common Templates]]
 
</noinclude><includeonly>{{#switch:{{PAGENAME}}
 
</noinclude><includeonly>{{#switch:{{PAGENAME}}
|{{{1}}} = '''{{{1}}}'''
+
|{{{1}}} = '''{{#if: {{{2|}}} | {{{2}}} | {{{1}}} }}'''
|[[{{{1}}}]]
+
|#default = {{#if: {{{2|}}} | [[{{{1}}}|{{{2}}}]] | [[{{{1}}}]]}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 02:27, 1 August 2013

This template is for linking to pages, but only if the target page is not the current page. If it is the current page, then we just bold the text of the link.

For example: {{pagelink|Vertex Specification}} links like this: Vertex Specification.

However: {{pagelink|Template:pagelink}} links like this: Template:pagelink.

Can also have a text description: {{pagelink|Template:pagelink|desc}}, which links like this: desc