Difference between revisions of "Template:Project"
From Mushpedia
(Created page with "<includeonly><onlyinclude><span style="white-space:nowrap;">NERON Project</span> <span style="white-space:nowrap;">'''{{{1}}}'''</span></onlyinclude...") |
(Enabling a second option for shorter text.) |
||
| Line 1: | Line 1: | ||
| − | <includeonly><onlyinclude>[[NERON Projects#{{{1}}}|<span style="white-space:nowrap;">NERON Project</span> <span style="white-space:nowrap;">'''{{{1}}}'''</span>]]</onlyinclude></includeonly> | + | <includeonly><onlyinclude>{{switch:{{{2}}}|short=[[NERON Projects#{{{1}}}|<span style="white-space:nowrap;">'''{{{1}}}'''</span>]]|[[NERON Projects#{{{1}}}|<span style="white-space:nowrap;">NERON Project</span> <span style="white-space:nowrap;">'''{{{1}}}'''</span>]]</onlyinclude></includeonly> |
| − | Use this Template to refer to a specific project in the [[NERON Projects]] page. The name must match exactly (including capitalization). | + | Use this Template to refer to a specific project in the [[NERON Projects]] page. By default, the text is "NERON Project <project name>". Second argument ''short'' can be use to have only the project name. The name must match exactly (including capitalization). |
| − | '''Usage:''' <pre>{{Project|<project name>}}</pre> | + | '''Usage:''' <pre>{{Project|<project name>|[short]}}</pre> |
| − | '''Demo:''' <pre>{{Project|General Patching Up}}</pre> | + | '''Demo:''' <pre>{{Project|General Patching Up|short}} and {{Project|General Patching Up}}</pre> |
Result: | Result: | ||
| − | {{Project|General Patching Up}} | + | {{Project|General Patching Up|short}} and {{Project|General Patching Up}} |
[[Category:Useful Templates|{{PAGENAME}}]] | [[Category:Useful Templates|{{PAGENAME}}]] | ||
Revision as of 19:47, 14 June 2014
Use this Template to refer to a specific project in the NERON Projects page. By default, the text is "NERON Project <project name>". Second argument short can be use to have only the project name. The name must match exactly (including capitalization).
{{Project|<project name>|[short]}}
Demo: {{Project|General Patching Up|short}} and {{Project|General Patching Up}}
Result:
General Patching Up and
General Patching Up