Difference between revisions of "Template:Project"

From
Jump to: navigation, search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
=Function=
 
=Function=
  
This is a [https://www.mediawiki.org/wiki/Help:Templates template] for projects on the ENVRI wiki. The logic of using templates is explained in the [[Manual]].
+
This is a [https://www.mediawiki.org/wiki/Help:Templates template] for projects on the ENVRI wiki.
  
To add a new project correctly, follow the below instructions.
+
The logic of using templates is explained in [[Help:Manual]].
  
 
=Syntax=
 
=Syntax=
  
(1) [https://www.mediawiki.org/wiki/Help:Starting_a_new_page Create a new template] called '''Template:''YourProjectNameHere''''' and copy all of the following into it:
+
To add a new project correctly, follow the below instructions:
 +
 
 +
==Step 1: Create a new project template==
 +
 
 +
a) [[Special:Upload|Upload the project logo]], if you have one. The general naming convention has been ''ProjectName_logo.jpg''.
 +
 
 +
b) [https://www.mediawiki.org/wiki/Help:Starting_a_new_page Create a new template] called '''Template:''YourProjectNameHere''''' and copy all of the following into it:
  
 
  <nowiki>
 
  <nowiki>
 
[[File:''YourProjectNameHere''_logo.jpg|right|300px]]
 
[[File:''YourProjectNameHere''_logo.jpg|right|300px]]
 +
{{Subpages|mbox}}
 
{{Template:Project|{{PAGENAME}}}}
 
{{Template:Project|{{PAGENAME}}}}
  
...as well as any other information about the project you want to include.
+
...as well as any other information about the project you want to include.</nowiki>
</nowiki>
 
  
(2) Next, create a [https://www.mediawiki.org/wiki/Help:Subpages subpage] called '''Template:''YourProjectNameHere''/short'''. Insert a short description of the project.
+
==Step 2: Create subpages==
  
(3) Next, create a subpage called '''Template:''YourProjectNameHere''/summary'''. Copy in the following (and fill the blanks):
+
a) Next, create a [https://www.mediawiki.org/wiki/Help:Subpages subpage] called '''Template:''YourProjectNameHere''/short'''. Insert a short description of the project.
 +
 
 +
b) Next, create a subpage called '''Template:''YourProjectNameHere''/summary'''. Copy in the following (and fill the blanks):
  
 
  <nowiki>
 
  <nowiki>
Line 33: Line 41:
 
| call = (ID and/or name of the project call.)
 
| call = (ID and/or name of the project call.)
 
| topic = (ID and/or name of the project topic.)
 
| topic = (ID and/or name of the project topic.)
}}
+
}}</nowiki>
</nowiki>
 
  
(4) Next, create (in the same manner as explained above) a '''Category:''YourProjectNameHere''''' page, and [https://www.mediawiki.org/wiki/Help:Categories categorise] it under either [[:Category:Project]] or one of its subcategories.
+
==Step 3: Create a project category==
  
(5) Finally, [https://www.mediawiki.org/wiki/Help:Categories categorise] all pages belonging to that project.
+
Next, create (in the same manner as explained above) a '''Category:''YourProjectNameHere''''' page, and [https://www.mediawiki.org/wiki/Help:Categories categorise] it under either [[:Category:Project]] or one of its subcategories.
  
(6) Optionally, you may want to create an "About ''YourProjectNameHere''" page under the category you created in the previous step, with nothing but the following line:
+
==Step 4: Put things in the project category==
 +
 
 +
Finally, [https://www.mediawiki.org/wiki/Help:Categories categorise] all pages belonging to that project. (Uncategorised pages can be found via [[Special:SpecialPages]].)
 +
 
 +
==Step 5 (optional): Create an 'About' page for your project==
 +
 
 +
You may want to create an "About ''YourProjectNameHere''" page under the category you created in the previous step, with nothing but the following line:
  
 
  <nowiki>{{Template:''YourProjectNameHere''}}</nowiki>
 
  <nowiki>{{Template:''YourProjectNameHere''}}</nowiki>
Line 46: Line 59:
 
...which will [https://en.wikipedia.org/wiki/Help:Transclusion transclude] the entire template into a "normal" page (which eg. shows up in searches, unlike templates).
 
...which will [https://en.wikipedia.org/wiki/Help:Transclusion transclude] the entire template into a "normal" page (which eg. shows up in searches, unlike templates).
  
(7) Done!
+
Done!
 
{{Subpages|heading}}
 
{{Subpages|heading}}
 
=Wikitext=
 
=Wikitext=
 
''Transclusion starts from here.''
 
''Transclusion starts from here.''
 
<onlyinclude>
 
<onlyinclude>
{{Subpages|mbox}}
 
 
{{Template:{{PAGENAME}}/short}}
 
{{Template:{{PAGENAME}}/short}}
  
 
{{Template:{{PAGENAME}}/summary}}
 
{{Template:{{PAGENAME}}/summary}}
 
</onlyinclude>
 
</onlyinclude>

Latest revision as of 10:58, 27 August 2020

Function[edit]

This is a template for projects on the ENVRI wiki.

The logic of using templates is explained in Help:Manual.

Syntax[edit]

To add a new project correctly, follow the below instructions:

Step 1: Create a new project template[edit]

a) Upload the project logo, if you have one. The general naming convention has been ProjectName_logo.jpg.

b) Create a new template called Template:YourProjectNameHere and copy all of the following into it:

[[File:''YourProjectNameHere''_logo.jpg|right|300px]]
{{Subpages|mbox}}
{{Template:Project|{{PAGENAME}}}}

...as well as any other information about the project you want to include.

Step 2: Create subpages[edit]

a) Next, create a subpage called Template:YourProjectNameHere/short. Insert a short description of the project.

b) Next, create a subpage called Template:YourProjectNameHere/summary. Copy in the following (and fill the blanks):

{{Template:Project/summary
| url = (Project website.)
| alt-url = (An alternative URL if the official website no longer exists, eg. after the project has ended. The main url will be struck out.)
| funding-url = (A link to the funding institution's, eg. Horizon Europe's, project grant website.)
| id = (EU Grant Agreement or other project number.)
| start-date = 
| end-date = 
| length = (In months.)
| coordinating-institution = (Can be an external wikilink to a website.)
| call = (ID and/or name of the project call.)
| topic = (ID and/or name of the project topic.)
}}

Step 3: Create a project category[edit]

Next, create (in the same manner as explained above) a Category:YourProjectNameHere page, and categorise it under either Category:Project or one of its subcategories.

Step 4: Put things in the project category[edit]

Finally, categorise all pages belonging to that project. (Uncategorised pages can be found via Special:SpecialPages.)

Step 5 (optional): Create an 'About' page for your project[edit]

You may want to create an "About YourProjectNameHere" page under the category you created in the previous step, with nothing but the following line:

{{Template:''YourProjectNameHere''}}

...which will transclude the entire template into a "normal" page (which eg. shows up in searches, unlike templates).

Done!

Subpages

Wikitext[edit]

Transclusion starts from here.

Template:Project/short

Website {{{url}}}
Grant website {{{funding-url}}}
Project number (EU Grant Proposal) {{{id}}}
Starting date {{{start-date}}}
Ending date {{{end-date}}}
Project length in months {{{length}}}
Coordinating institution {{{coordinating-institution}}}
Call {{{call}}}
Topic {{{topic}}}