Difference between revisions of "Template:CompLink"

From ChoralWiki
Jump to navigation Jump to search
(restrictions)
m (Always display PAGENAME)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><p>{{#switch:{{NAMESPACE}}
 
<includeonly><p>{{#switch:{{NAMESPACE}}
|User = '''See also:''' {{{1|{{PAGENAME}}}}}'s [[{{{1|{{PAGENAME}}}}}|'''composer page''']].
+
|User = '''See also:''' {{PAGENAME}}'s [[{{{1|{{PAGENAME}}}}}|'''composer page''']].
|    = '''See also:''' {{{1|{{PAGENAME}}}}}'s [[User:{{{1|{{PAGENAME}}}}}|'''user page''']].
+
|    = '''See also:''' {{PAGENAME}}'s [[User:{{{1|{{PAGENAME}}}}}|'''editor page''']].
 
|#default=<font color=red>This template is intended for use inside a composer or editor page only.</font>
 
|#default=<font color=red>This template is intended for use inside a composer or editor page only.</font>
 
}}</p></includeonly><noinclude>
 
}}</p></includeonly><noinclude>
 +
This template links from a composer page to his/her own user page and vice-versa.
 +
 
;Usage
 
;Usage
  
Line 11: Line 13:
 
*{{tl|CompLink|<editor name>}}
 
*{{tl|CompLink|<editor name>}}
  
Intended for use in Main and User namespaces. If used in any other namespace, it displays the message:
+
Intended for use in Main and User namespaces only; if used in any other namespace, it displays the message:
 
{{CompLink}}
 
{{CompLink}}
  
 
[[Category:Internal link templates]]
 
[[Category:Internal link templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 00:08, 3 September 2016

This template links from a composer page to his/her own user page and vice-versa.

Usage

or with an optional parameter

Intended for use in Main and User namespaces only; if used in any other namespace, it displays the message:

This template is intended for use inside a composer or editor page only.