Template:Pagelink: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Link text should work now.
Better docs.
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|pagelink|desc}}</nowiki></code>, which links like this: {{pagelink|pagelink|desc}}
Can also have a text description: <code><nowiki>{{pagelink|pagelink|desc}}</nowiki></code>, which links like this: {{pagelink|pagelink|desc}}

Revision as of 23:18, 13 February 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|pagelink|desc}}, which links like this: desc