Difference between revisions of "Template:Project"
From Mushpedia
m (bug fix, second try) |
(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}}}| | + | <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> |
| − | Use this Template to refer to a specific project in the [[NERON Projects]] page. By default, the text is " | + | 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). |
| − | '''Usage:''' <pre>{{Project|<project name>|[ | + | '''Usage:''' <pre>{{Project|<project name>|[long]}}</pre> |
| − | '''Demo:''' <pre>{{Project|General Patching Up| | + | '''Demo:''' <pre>{{Project|General Patching Up|long}} and {{Project|General Patching Up}}</pre> |
Result: | Result: | ||
| − | {{Project|General Patching Up| | + | {{Project|General Patching Up|long}} and {{Project|General Patching Up}} |
[[Category:Useful Templates|{{PAGENAME}}]] | [[Category:Useful Templates|{{PAGENAME}}]] | ||
Revision as of 19:57, 14 June 2014
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).
{{Project|<project name>|[long]}}
Demo: {{Project|General Patching Up|long}} and {{Project|General Patching Up}}
Result:
General Patching Up and
General Patching Up