Jump to content

Template:App: 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;"> <!-- Invisible Data Section --> Has resource type::App [[Has image::{{{Image|}}}]] [[Has description::{{{Description|}}}]] {{#arraymap:{{{Topic Tags|}}}|,|x|Has to..."
 
No edit summary
Tag: Manual revert
 
(14 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:Apps]]
|-
{{Resource
! Tags
|Resource Type=App
| {{{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|}}}
<!-- Invisible Data Section -->
|URL={{{URL|}}}
[[Has resource type::App]]
|Content={{{Content|}}}
[[Has image::{{{Image|}}}]]
[[Has description::{{{Description|}}}]]
{{#arraymap:{{{Topic Tags|}}}|,|x|[[Has topic tag::x]]}}
</div>
</includeonly><noinclude>
== How to use this Template ==
This template is for adding a new App to the WYOS database.
 
=== Syntax ===
<pre>
{{App
|Image=
|Topic Tags=
|URL=
|Description=
|Is Featured= <!-- "Yes" or "No" -->
}}
}}
</pre>
</onlyinclude><noinclude>
Wrapper for Apps. Call at page top; add main content below.
<templatedata>
{
  "description": "Wrapper for App 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/Creator","description":"Creator, vendor, or publisher as appropriate.","type":"line"},
    "Image": {"label":"Image","description":"Filename (e.g., \"Tool_Logo.png\").","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. Use either \"Tag:Habits, Tag:Productivity\" or \"Habits, Productivity\".","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 06:59, 23 September 2025


No image provided


Type App





App




false


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

Wrapper for App 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/CreatorAuthor

Creator, vendor, or publisher as appropriate.

Lineoptional
ImageImage

Filename (e.g., "Tool_Logo.png").

Fileoptional
DescriptionDescription

1–2 sentence card/list summary.

Stringrequired
Topic TagsTopic Tags

Comma-separated tags. Use either "Tag:Habits, Tag:Productivity" or "Habits, Productivity".

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