Difference between revisions of "Template:Content"
From VGD Wiki Farm
(Created page with "<includeonly><div class="d-none"> {{#set: |Subject={{{Subject|}}} |Topic={{{Topic|}}}|+sep=; |Tag={{lc:{{{Tags|}}}}}|+sep=; |Brief={{{Brief|}}} |Location={{{Location|}}} }} ...") |
|||
(12 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 68: | Line 67: | ||
|intro=<h3>tag: <b>@</b> ({{#ask: | |intro=<h3>tag: <b>@</b> ({{#ask: | ||
[[Tag::@]] | [[Tag::@]] | ||
− | [[ | + | [[:+]] |
[[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> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "Topic": { | ||
+ | "description": "A semi-colon delimited list of topics the article is categorized under.", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "Brief": { | ||
+ | "description": "Short announce of the article content to be used in infoboxes, lists, etc.", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "Tags": { | ||
+ | "description": "Semi-colon delimited arbitrary labels to categorize articles additionally.", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "Location": { | ||
+ | "description": "The in game place of a subject", | ||
+ | "type": "string" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Generic content metadata.", | ||
+ | "format": "block", | ||
+ | "paramOrder": [ | ||
+ | "Topic", | ||
+ | "Brief", | ||
+ | "Tags", | ||
+ | "Location" | ||
+ | ] | ||
+ | } | ||
+ | </templatedata> | ||
<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 = }}