Difference between revisions of "Template:Content"
From VGD Wiki Farm
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="d-none"> | <includeonly><div class="d-none"> | ||
{{#set: | {{#set: | ||
| − | |||
|Topic={{{Topic|}}}|+sep=; | |Topic={{{Topic|}}}|+sep=; | ||
|Tag={{lc:{{{Tags|}}}}}|+sep=; | |Tag={{lc:{{{Tags|}}}}}|+sep=; | ||
| Line 7: | Line 6: | ||
|Location={{{Location|}}} | |Location={{{Location|}}} | ||
}} | }} | ||
| − | + | {{#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 104: | 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 109: | Line 123: | ||
{ | { | ||
"params": { | "params": { | ||
| − | " | + | "Topic": { |
| − | "description": " | + | "description": "A semi-colon delimited list of topics the article is categorized under.", |
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
| − | " | + | "Brief": { |
| − | "description": " | + | "description": "Short announce of the article content to be used in infoboxes, lists, etc.", |
| − | "type": " | + | "type": "content" |
| − | |||
}, | }, | ||
"Tags": { | "Tags": { | ||
| − | "description": "Semi-colon delimited arbitrary labels to | + | "description": "Semi-colon delimited arbitrary labels to categorize articles additionally.", |
"type": "string" | "type": "string" | ||
}, | }, | ||
"Location": { | "Location": { | ||
| − | "description": " | + | "description": "The in game place of a subject", |
"type": "string" | "type": "string" | ||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
}, | }, | ||
| − | "description": "Generic content metadata | + | "description": "Generic content metadata.", |
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
| − | |||
"Topic", | "Topic", | ||
| + | "Brief", | ||
"Tags", | "Tags", | ||
| − | "Location | + | "Location" |
| − | |||
] | ] | ||
} | } | ||
| Line 145: | Line 153: | ||
<pre> | <pre> | ||
{{Content | {{Content | ||
| − | |||
|Topic = | |Topic = | ||
|Tags = | |Tags = | ||
Latest revision as of 21:10, 15 January 2021
Generic content metadata.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Topic | Topic | A semi-colon delimited list of topics the article is categorized under. | String | required |
| Brief | Brief | Short announce of the article content to be used in infoboxes, lists, etc. | Content | optional |
| Tags | Tags | Semi-colon delimited arbitrary labels to categorize articles additionally. | String | optional |
| Location | Location | The in game place of a subject | String | optional |
{{Content
|Topic =
|Tags =
|Brief =
|Location =
}}
