Difference between revisions of "Template:Project"

From Mushpedia
Jump to: navigation, search
(Made the short version the default one. This template should be stable now (although improvements in the style are welcome!))
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch:{{{2}}}|long=[[NERON Projects#{{{1}}}|<span style="white-space:nowrap;">NERON Project</span> <span style="white-space:nowrap;">'''{{{1}}}'''</span>]]|[[NERON Projects#{{{1}}}|<span style="white-space:nowrap;">'''{{{1}}}'''</span>]]}}</onlyinclude></includeonly>
+
<includeonly><onlyinclude><span style="white-space:nowrap;">[[File:Conceptor_icon.png|class=icon-margin|link=NERON Projects|NERON project]] [[NERON Projects#{{{1}}}|'''{{{1}}}''']]</span></onlyinclude></includeonly>
  
Use this Template to refer to a specific project in the [[NERON Projects]] page. By default, the text shown is "<project name>". Second argument ''long'' can be used to add "NERON Project" to the beginning. The name must match exactly (including capitalization).  
+
Use this Template to refer to a specific project in the [[NERON Projects]] page. The name must match exactly (including capitalization).  
  
'''Usage:''' <pre>{{Project|<project name>|[long]}}</pre>
+
'''Usage:''' <pre>{{Project|<project name>}}</pre>
'''Demo:''' <pre>{{Project|General Patching Up|long}} and {{Project|General Patching Up}}</pre>
+
'''Demo:''' <pre>{{Project|General Patching Up}} </pre>
 
Result:
 
Result:
{{Project|General Patching Up|long}} and {{Project|General Patching Up}}
+
{{Project|General Patching Up}}
  
  
 
[[Category:Useful Templates|{{PAGENAME}}]]
 
[[Category:Useful Templates|{{PAGENAME}}]]

Revision as of 17:46, 18 June 2014


Use this Template to refer to a specific project in the NERON Projects page. The name must match exactly (including capitalization).

Usage:
{{Project|<project name>}}
Demo:
{{Project|General Patching Up}} 

Result: NERON project General Patching Up