Template:Get course details/doc
Appearance
| This is a documentation subpage for Template:Get course details. It may contain usage information, categories and other content that is not part of the original template page. |
| This template may be substituted. |
| This template is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome. |
Retrieves a desired param value (e.g., course name, start date, support staff) from the {{Course details}} template found on a given Wiki Ed course page.
Usage
[edit]{{Get course details|Course page|Field}}
Parameters
[edit]There are two unnamed parameters, one required and one optional:
|1=– course page having a {{course details}} template; typical: WP:Wiki Ed/University/Course/Season (Year)|2=– field to interrogate; e.g.,course name,instructor username,start date,support staffetc. (default:course name)
Examples
[edit]- {{get course details|WP:Wiki Ed/Brock University/FREN 3P05 - Business French (Fall)|course name}} → FREN 3P05 - Business French
- {{get course details|WP:Wiki Ed/Brock University/FREN 3P05 - Business French (Fall)|start date}} → 2022-09-09 00:00:00 UTC
- {{gcd|WP:Wiki Ed/Brock University/FREN 3P05 - Business French (Fall)|support staff}} → Ian (Wiki Ed)
- {{gcd|WP:Wiki Ed/Brock University/FREN 3P05 - Business French (Fall)|expert}} → Ian (Wiki Ed) (Note: supports aliases)
- {{gcd|WP:Wiki Ed/Brock University/FREN 3P05 - Business French (Fall)|instructor}} → Michaeliannozzi (a different field alias)
See also
[edit]- {{Course details}}
- {{Your Wiki Ed course}}
- {{Your Wiki Ed expert}}