Difference between revisions of "Template:Pagelink"

From OpenGL.org
Jump to: navigation, search
(Better docs.)
(categorization)
Line 7: Line 7:
 
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}}
  
 +
[[Category:Common Templates]]
 
</noinclude><includeonly>{{#switch:{{PAGENAME}}
 
</noinclude><includeonly>{{#switch:{{PAGENAME}}
 
|{{{1}}} = '''{{#if: {{{2|}}} | {{{2}}} | {{{1}}} }}'''
 
|{{{1}}} = '''{{#if: {{{2|}}} | {{{2}}} | {{{1}}} }}'''
 
|#default = {{#if: {{{2|}}} | [[{{{1}}}|{{{2}}}]] | [[{{{1}}}]]}}
 
|#default = {{#if: {{{2|}}} | [[{{{1}}}|{{{2}}}]] | [[{{{1}}}]]}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 19:26, 25 July 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