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
Line 1: Line 1:
<includeonly>
<includeonly>
{| 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|}}}|
|Author={{{Author|}}}
  |-
|Image={{{Image|}}}
  ! Instructor
|Topic Tags={{{Topic Tags|}}}
  | [[Has author::{{{Instructor|}}}]]
|URL={{{URL|}}}
|Description={{{Description|}}}
|Is Featured={{{Is Featured|}}}
}}
}}
|-
! 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|}}}]]
[[Has description::{{{Description|}}}]]
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
</div>
</includeonly><noinclude>
</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 ===
Line 32: Line 17:
{{Course
{{Course
|Image=
|Image=
|Instructor=
|Topic Tags=
|Topic Tags=
|URL=
|URL=
|Description=
|Description=
|Is Featured= <!-- "Yes" or "No" -->
|Is Featured=
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 02:33, 18 July 2025

How to use this Template

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

Syntax

{{Course
|Image=
|Topic Tags=
|URL=
|Description=
|Is Featured=
}}