Jump to content

Template:Course: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
[[Category:Resources]]
[[Category:Courses]]
{{Resource
{{Resource
|Resource Type=[[Courses]]
|Resource Type=Course
|Status={{{Status|}}}
|Status={{{Status|}}}
|Display Title={{{Display Title|}}}
|Display Title={{{Display Title|}}}
|Subtitle={{{Subtitle|}}}
|Subtitle={{{Subtitle|}}}
|Author={{{Author|}}}
|Author={{{Author|}}}
|Image={{{Image|}}}
|Image={{{Image|}}}
|Topic Tags={{{Topic Tags|}}}
|Description={{{Description|}}}
|URL={{{URL|}}}
|Topic Tags={{{Topic Tags|}}}
|Description={{{Description|}}}
|Is Featured={{{Is Featured|}}}
|Is Featured={{{Is Featured|}}}
|Owner={{{Owner|}}}
|Content=
|URL={{{URL|}}}
<!-- Structured Content Sections -->
|Content={{{Content|}}}
<div id="section-overview">{{{Overview|}}}</div>
<div id="section-why-we-recommend-it">{{{Why We Recommend It|}}}</div>
<div id="section-who-its-for">{{{Who Its For|}}}</div>
<div id="section-pro-tip">{{{Pro Tip|}}}</div>
<div id="section-good-to-know">{{{Good to Know|}}}</div>
}}
}}
</onlyinclude><noinclude>
</onlyinclude><noinclude>
Wrapper template for creating Course resources. Calls [[Template:Resource]].
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>

Latest revision as of 16:09, 22 September 2025


No image provided


Type Course





Course




false


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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
StatusStatus

Draft, Published, or Archived.

Suggested values
Draft Published Archived
Linerequired
Display TitleDisplay Title

User-facing title override.

Lineoptional
SubtitleSubtitle

Optional subtitle.

Lineoptional
Author/InstructorAuthor

Instructor or course creator.

Lineoptional
ImageImage

Cover/thumbnail filename.

Fileoptional
DescriptionDescription

1–2 sentence card/list summary.

Stringrequired
Topic TagsTopic Tags

Comma-separated tags (Tag:… or plain names).

Linerequired
Featured?Is Featured

Set to 'yes' to highlight.

Booleanoptional
OwnerOwner

Responsible username (no "User:" prefix).

Userrequired
URLURL

Primary external link.

URLoptional
Main ContentContent

Free-form body; wikitext/VE supported.

Contentsuggested