Jump to content

Template:Course: Difference between revisions

From WYOS Wiki
Created page with "<includeonly> {| class="wikitable" style="float:right; margin-left:1em; width:300px;" | colspan="2" style="text-align:center;" | [[File:{{{Image|}}}|290px]] {{#if:{{{Instructor|}}}| |- ! Instructor | [[Has author::{{{Instructor|}}}]] }} |- ! Tags | {{{Topic Tags|}}} |- ! URL | [[Has url::{{{URL|}}}]] |- ! Featured? | [[Is featured::{{{Is Featured|}}}]] |} <div style="display:none;"> <!-- Invisible Data Section --> Has resource type::Course Has image::{{{Image..."
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<onlyinclude>
{| class="wikitable" style="float:right; margin-left:1em; width:300px;"
[[Category:Resources]]
| colspan="2" style="text-align:center;" | [[File:{{{Image|}}}|290px]]
[[Category:Courses]]
{{#if:{{{Instructor|}}}|
{{Resource
  |-
|Resource Type=Course
  ! Instructor
|Status={{{Status|}}}
  | [[Has author::{{{Instructor|}}}]]
|Display Title={{{Display Title|}}}
|Subtitle={{{Subtitle|}}}
|Author={{{Author|}}}
|Image={{{Image|}}}
|Description={{{Description|}}}
|Topic Tags={{{Topic Tags|}}}
|Is Featured={{{Is Featured|}}}
|Owner={{{Owner|}}}
|URL={{{URL|}}}
|Content={{{Content|}}}
}}
}}
|-
</onlyinclude><noinclude>
! Tags
Wrapper for Courses. Call at page top; add main content below.
| {{{Topic Tags|}}}
<templatedata>
|-
{
! URL
  "description": "Wrapper for Course resources. Passes fields to Template:Resource. No predefined content sections—use the main Content area.",
| [[Has url::{{{URL|}}}]]
  "params": {
|-
    "Status": {"label":"Status","description":"Draft, Published, or Archived.","type":"line","suggestedvalues":["Draft","Published","Archived"],"required":true},
! Featured?
    "Display Title": {"label":"Display Title","description":"User-facing title override.","type":"line"},
| [[Is featured::{{{Is Featured|}}}]]
    "Subtitle": {"label":"Subtitle","description":"Optional subtitle.","type":"line"},
|}
    "Author": {"label":"Author/Instructor","description":"Instructor or course creator.","type":"line"},
<div style="display:none;">
    "Image": {"label":"Image","description":"Cover/thumbnail filename.","type":"wiki-file-name"},
<!-- Invisible Data Section -->
    "Description": {"label":"Description","description":"1–2 sentence card/list summary.","type":"string","required":true},
[[Has resource type::Course]]
    "Topic Tags": {"label":"Topic Tags","description":"Comma-separated tags (Tag:… or plain names).","type":"line","required":true},
[[Has image::{{{Image|}}}]]
    "Is Featured": {"label":"Featured?","description":"Set to 'yes' to highlight.","type":"boolean"},
[[Has description::{{{Description|}}}]]
    "Owner": {"label":"Owner","description":"Responsible username (no \"User:\" prefix).","type":"wiki-user-name","required":true},
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
    "URL": {"label":"URL","description":"Primary external link.","type":"url"},
</div>
    "Content": {"label":"Main Content","description":"Free-form body; wikitext/VE supported.","type":"content","suggested":true}
</includeonly><noinclude>
  },
== How to use this Template ==
  "format":"block"
This template is for adding a new Course to the WYOS database. The Instructor field is optional.
}
 
</templatedata>
=== Syntax ===
<pre>
{{Course
|Image=
|Instructor=
|Topic Tags=
|URL=
|Description=
|Is Featured= <!-- "Yes" or "No" -->
}}
</pre>
</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