Difference between revisions of "Template:Pagelink"

From OpenGL Wiki
Jump to: navigation, search
(First attempt at self-link protection.)
 
(Oops: reversed the test.)
Line 6: Line 6:
  
 
</noinclude><includeonly>{{#switch:{{PAGENAME}}
 
</noinclude><includeonly>{{#switch:{{PAGENAME}}
|{{{1}}} = [[{{{1}}}]]
+
|{{{1}}} = '''{{{1}}}'''
|'''{{{1}}}'''
+
|[[{{{1}}}]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 04:05, 4 October 2012

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|pagelink}} links like this: pagelink.