Difference between revisions of "Template:Content"

From VGD Wiki Farm
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div class="d-none">
 
<includeonly><div class="d-none">
 
{{#set:
 
{{#set:
|Subject={{{Subject|}}}
 
 
|Topic={{{Topic|}}}|+sep=;
 
|Topic={{{Topic|}}}|+sep=;
 
|Tag={{lc:{{{Tags|}}}}}|+sep=;
 
|Tag={{lc:{{{Tags|}}}}}|+sep=;
Line 7: Line 6:
 
|Location={{{Location|}}}
 
|Location={{{Location|}}}
 
}}
 
}}
[[Category:{{{Topic|}}}]]
+
{{#default_form: Content}}
 
</div>
 
</div>
 
<div class="d-flex flex-column float-lg-right">
 
<div class="d-flex flex-column float-lg-right">
 
<div class="gas-infobox card">
 
<div class="gas-infobox card">
<div class="card-header p-1 pl-3 d-flex align-items-center justify-content-between font-weight-bold"><!--
+
<div class="card-header p-1 pl-3 d-flex align-items-center justify-content-between font-weight-bold">{{#widget:discord-invite}} <!--
 
-->[{{fullurl: {{FULLPAGENAME}}|action=formedit}} <span class="mw-ui-button iconify small float-right p-1" title="Edit semantic data"><i class="fas fa-pencil-alt"></i></span>]</div>
 
-->[{{fullurl: {{FULLPAGENAME}}|action=formedit}} <span class="mw-ui-button iconify small float-right p-1" title="Edit semantic data"><i class="fas fa-pencil-alt"></i></span>]</div>
 
<div class="card-body">
 
<div class="card-body">
Line 68: Line 67:
 
   |intro=<h3>tag: <b>@</b> ({{#ask:  
 
   |intro=<h3>tag: <b>@</b> ({{#ask:  
 
       [[Tag::@]]
 
       [[Tag::@]]
       [[{{{Namespace|}}}:+]]  
+
       [[:+]]  
 
       [[Modification date::+]]  
 
       [[Modification date::+]]  
 
       |format=count
 
       |format=count
Line 96: Line 95:
 
<div class="d-table-cell">
 
<div class="d-table-cell">
 
<div class="ml-4 mb-1">{{#show: {{FULLPAGENAME}} |?Last editor is |?Modification date#-F[M j, Y] |format=plainlist }}</div>
 
<div class="ml-4 mb-1">{{#show: {{FULLPAGENAME}} |?Last editor is |?Modification date#-F[M j, Y] |format=plainlist }}</div>
 +
</div>
 
</div>
 
</div>
 
</div>
 
</div>
Line 103: Line 103:
 
</div>
 
</div>
 
</div>
 
</div>
 +
<!-- SEO -->
 +
{{#seo:
 +
|title={{PAGENAME}} - {{SITENAME}}
 +
|titlemode=append
 +
|keywords={{#arraymap:{{{Topic|}}}|;|@|@|, }}{{#if: {{{Tags|}}}|,{{#arraymap: {{{Tags|}}}|;|@|@|,}}}}
 +
|description={{{Brief|{{PAGENAME}}}}}
 +
|og:type=article
 +
|og:site_name={{SITENAME}}
 +
|og:locale=en_US
 +
|article:publisher={{SITENAME}}
 +
|article:section={{#arraymap:{{{Topic|}}}|;|@|@|, }}
 +
|article:tag={{#arraymap:{{{Tags|}}}|;|@|@|, }}
 +
|article:modified_time={{#show:{{FULLPAGENAME}}|?Modification date#iso}}
 +
|article:published_time={{#show:{{FULLPAGENAME}}|?Creation date#iso}}
 +
}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Line 108: Line 123:
 
{
 
{
 
"params": {
 
"params": {
"Subject": {
+
"Topic": {
"description": "The description of the article subject thet will be used as page name.",
+
"description": "A semi-colon delimited list of topics the article is categorized under.",
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 
},
 
},
"Topic": {
+
"Brief": {
"description": "A semi-colon delimited list of topics the article is categorized under. Omitted for Jobs pages.",
+
"description": "Short announce of the article content to be used in infoboxes, lists, etc.",
"type": "string",
+
"type": "content"
"required": true
 
 
},
 
},
 
"Tags": {
 
"Tags": {
"description": "Semi-colon delimited arbitrary labels to additionally categorize articles.",
+
"description": "Semi-colon delimited arbitrary labels to categorize articles additionally.",
 
"type": "string"
 
"type": "string"
 
},
 
},
 
"Location": {
 
"Location": {
"description": "For Event pages. The place of an event.",
+
"description": "The in game place of a subject",
 
"type": "string"
 
"type": "string"
},
 
"Brief": {
 
"description": "Short announce of the article content to be used in infoboxes, lists, etc.",
 
"type": "content"
 
 
}
 
}
 
},
 
},
"description": "Generic content metadata and approval policy.",
+
"description": "Generic content metadata.",
 
"format": "block",
 
"format": "block",
 
"paramOrder": [
 
"paramOrder": [
"Subject",
 
 
"Topic",
 
"Topic",
 +
"Brief",
 
"Tags",
 
"Tags",
"Location",
+
"Location"
"Brief"
 
 
]
 
]
 
}
 
}
Line 144: Line 153:
 
<pre>
 
<pre>
 
{{Content
 
{{Content
|Subject      =
 
 
|Topic        =
 
|Topic        =
 
|Tags        =
 
|Tags        =

Latest revision as of 21:10, 15 January 2021


Generic content metadata.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
TopicTopic

A semi-colon delimited list of topics the article is categorized under.

Stringrequired
BriefBrief

Short announce of the article content to be used in infoboxes, lists, etc.

Contentoptional
TagsTags

Semi-colon delimited arbitrary labels to categorize articles additionally.

Stringoptional
LocationLocation

The in game place of a subject

Stringoptional
{{Content
|Topic        =
|Tags         =
|Brief        =
|Location     = 
}}