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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<onlyinclude>
{| class="wikitable" style="float:right; margin-left:1em; width:300px;"
{{Resource
| colspan="2" style="text-align:center;" | [[File:{{{Image|}}}|290px]]
|Resource Type=Course
{{#if:{{{Instructor|}}}|
|Status={{{Status|}}}
  |-
|Display Title={{{Display Title|}}}
  ! Instructor
|Author={{{Author|}}}
  | [[Has author::{{{Instructor|}}}]]
|Image={{{Image|}}}
|Topic Tags={{{Topic Tags|}}}
|Main Categories={{{Main Categories|}}}
|URL={{{URL|}}}
|Description={{{Description|}}}
|Is Featured={{{Is Featured|}}}
}}
}}
|-
 
! Tags
<!-- Structured Content Sections for Next.js -->
| {{{Topic Tags|}}}
<div id="section-overview">{{{Overview|}}}</div>
|-
<div id="section-why-we-recommend-it">{{{Why We Recommend It|}}}</div>
! URL
<div id="section-who-its-for">{{{Who It's For|}}}</div>
| [[Has url::{{{URL|}}}]]
<div id="section-pro-tip">{{{Pro Tip|}}}</div>
|-
<div id="section-good-to-know">{{{Good to Know|}}}</div>
! Featured?
</onlyinclude><noinclude>
| [[Is featured::{{{Is Featured|}}}]]
|}
<div style="display:none;">
<!-- Invisible Data Section -->
[[Has resource type::Course]]
[[Has image::{{{Image|}}}]]
[[Has description::{{{Description|}}}]]
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
</div>
</includeonly><noinclude>
== How to use this Template ==
== How to use this Template ==
This template is for adding a new Course to the WYOS database. The Instructor field is optional.
This template is for adding a new course. It calls the master [[Template:Resource]].


=== Syntax ===
=== Syntax ===
<pre>
<pre>
{{Course
{{Course
|Status=
|Display Title=
|Author=
|Image=
|Image=
|Instructor=
|Topic Tags=
|Topic Tags=
|Main Categories=
|URL=
|URL=
|Description=
|Description=
|Is Featured= <!-- "Yes" or "No" -->
|Is Featured=
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 21:29, 30 July 2025


No image
Type Course


Topics
Categories
URL
Status
Featured?


How to use this Template[edit source]

This template is for adding a new course. It calls the master Template:Resource.

Syntax[edit source]

{{Course
|Status=
|Display Title=
|Author=
|Image=
|Topic Tags=
|Main Categories=
|URL=
|Description=
|Is Featured=
}}