Jump to content

Template:Platform: 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]] |- ! Tags | {{{Topic Tags|}}} |- ! URL | [[Has url::{{{URL|}}}]] |- ! Featured? | [[Is featured::{{{Is Featured|}}}]] |} <div style="display:none;"> Has resource type::Platform [[Has image::{{{Image|}}}]] [[Has description::{{{Description|}}}]] {{#arraymap:{{{Topic Tags|}}}|,|x|Has topic tag::x}} </div> </inc..."
 
No edit summary
 
(9 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:Platforms]]
|-
{{Resource
! Tags
|Resource Type=Platform
| {{{Topic Tags|}}}
|Status={{{Status|}}}
|-
|Display Title={{{Display Title|}}}
! URL
|Subtitle={{{Subtitle|}}}
| [[Has url::{{{URL|}}}]]
|Author={{{Author|}}}
|-
|Image={{{Image|}}}
! Featured?
|Description={{{Description|}}}
| [[Is featured::{{{Is Featured|}}}]]
|Topic Tags={{{Topic Tags|}}}
|}
|Is Featured={{{Is Featured|}}}
<div style="display:none;">
|Owner={{{Owner|}}}
[[Has resource type::Platform]]
|URL={{{URL|}}}
[[Has image::{{{Image|}}}]]
|Content={{{Content|}}}
[[Has description::{{{Description|}}}]]
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
</div>
</includeonly><noinclude>
== How to use this Template ==
<pre>
{{Platform
|Image=
|Topic Tags=
|URL=
|Description=
|Is Featured=
}}
}}
</pre>
</onlyinclude><noinclude>
Wrapper for Platforms. Call at page top; add main content below.
<templatedata>
{
  "description": "Wrapper for Platform 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":"Short tagline.","type":"line"},
    "Author": {"label":"Author/Organization","description":"Org, vendor, or maintainer.","type":"line"},
    "Image": {"label":"Image","description":"Logo/cover 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 Platform





Platform




false


Wrapper for Platforms. Call at page top; add main content below.

Wrapper for Platform 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

Short tagline.

Lineoptional
Author/OrganizationAuthor

Org, vendor, or maintainer.

Lineoptional
ImageImage

Logo/cover 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