Template:Course: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{{Resource | {{Resource | ||
|Resource Type=Courses | |Resource Type=Courses | ||
|Status={{{Status|}}} | |Status={{{Status|}}} | ||
|Display Title={{{Display Title|}}} | |Display Title={{{Display Title|}}} | ||
|Subtitle={{{Subtitle|}}} | |Subtitle={{{Subtitle|}}} | ||
|Author={{{Author|}}} | |Author={{{Author|}}} | ||
|Image={{{Image|}}} | |Image={{{Image|}}} | ||
|Description={{{Description|}}} | |Description={{{Description|}}} | ||
|Topic Tags={{{Topic Tags|}}} | |Topic Tags={{{Topic Tags|}}} | ||
|Is Featured={{{Is Featured|}}} | |Is Featured={{{Is Featured|}}} | ||
|Owner={{{Owner|}}} | |Owner={{{Owner|}}} | ||
|URL={{{URL|}}} | |URL={{{URL|}}} | ||
|Content={{{Content|}}} | |Content={{{Content|}}} | ||
}} | }} | ||
</onlyinclude><noinclude> | </onlyinclude><noinclude> | ||
Wrapper for Courses. Call at page top; add main content below. | Wrapper for Courses. Call at page top; add main content below. | ||
<templatedata> | |||
{ | |||
"description": "Wrapper for Course resources. Passes fields to Template:Resource. No predefined content sections—use the main Content area.", | |||
"params": { | |||
"Status": {"label":"Status","description":"Draft, Published, or Archived.","type":"line","suggestedvalues":["Draft","Published","Archived"],"required":true}, | |||
"Display Title": {"label":"Display Title","description":"User-facing title override.","type":"line"}, | |||
"Subtitle": {"label":"Subtitle","description":"Optional subtitle.","type":"line"}, | |||
"Author": {"label":"Author/Instructor","description":"Instructor or course creator.","type":"line"}, | |||
"Image": {"label":"Image","description":"Cover/thumbnail filename.","type":"wiki-file-name"}, | |||
"Description": {"label":"Description","description":"1–2 sentence card/list summary.","type":"string","required":true}, | |||
"Topic Tags": {"label":"Topic Tags","description":"Comma-separated tags (Tag:… or plain names).","type":"line","required":true}, | |||
"Is Featured": {"label":"Featured?","description":"Set to 'yes' to highlight.","type":"boolean"}, | |||
"Owner": {"label":"Owner","description":"Responsible username (no \"User:\" prefix).","type":"wiki-user-name","required":true}, | |||
"URL": {"label":"URL","description":"Primary external link.","type":"url"}, | |||
"Content": {"label":"Main Content","description":"Free-form body; wikitext/VE supported.","type":"content","suggested":true} | |||
}, | |||
"format":"block" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Revision as of 18:39, 21 September 2025
| No image provided
| |
| Type | Courses
|
|---|---|
Wrapper for Courses. Call at page top; add main content below.
Wrapper for Course resources. Passes fields to Template:Resource. No predefined content sections—use the main Content area.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Status | Status | Draft, Published, or Archived.
| Line | required |
| Display Title | Display Title | User-facing title override. | Line | optional |
| Subtitle | Subtitle | Optional subtitle. | Line | optional |
| Author/Instructor | Author | Instructor or course creator. | Line | optional |
| Image | Image | Cover/thumbnail filename. | File | optional |
| Description | Description | 1–2 sentence card/list summary. | String | required |
| Topic Tags | Topic Tags | Comma-separated tags (Tag:… or plain names). | Line | required |
| Featured? | Is Featured | Set to 'yes' to highlight. | Boolean | optional |
| Owner | Owner | Responsible username (no "User:" prefix). | User | required |
| URL | URL | Primary external link. | URL | optional |
| Main Content | Content | Free-form body; wikitext/VE supported. | Content | suggested |