Difference between revisions of "Template:Extensioninfobox"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
m (Changed protection level for "Template:Extensioninfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
  |title        = {{PAGENAME}}
+
  |title        = {{{title|{{PAGENAME}}}}}
 
  |name        = Extensioninfobox
 
  |name        = Extensioninfobox
  
 
  | label2 = Description
 
  | label2 = Description
  |  data2 = {{{desc}}}
+
  |  data2 = {{{desc|TBD}}}
 
  | label3 = Author(s)
 
  | label3 = Author(s)
  |  data3 = {{{auth}}}
+
  |  data3 = {{{auth|Unknown Author}}}
 
  | label4 = Status
 
  | label4 = Status
  |  data4 = {{{status}}}
+
  |  data4 = {{{status|Unknown Status}}}
 
  | label5 = Github
 
  | label5 = Github
  |  data5 = {{{github}}}
+
  |  data5 = {{{github|Not Applicable}}}
  |header5 = Contains a Migration
+
  | label6 = LK Version
  |header6 = Uses a Package
+
|  data6 = {{{LKVer|Unspecified}}}
 +
| header7 = {{#ifeq: {{{migration}}}|yes| Contains a Migration }}
 +
  | header8 = {{#ifeq: {{{package}}}|yes| Uses a Package }}
 +
| header9 = {{#ifeq: {{{modified-main}}}|yes| Is part of LK v2 (modified-main) }}
 +
| header10 = {{#ifeq: {{{dev300}}}|yes| Is part of LK v3.0.0's release }}
 +
| header11 = {{#iferror: {{#ifexpr: {{{LKVer}}} < 2 | <strong style="color:red">Warning: Severely Outdated</strong> }} }}
 +
| header12 = {{#ifeq: {{{dev310}}}|yes| Is part of LK v3.1.0's release }}
 
}}
 
}}
 
<includeonly>
 
<includeonly>
{{#ifeq:{{{Migration}}}|yes|[[Category:Extensions with migrations|{{PAGENAME}}]]}}  
+
 
{{#ifeq:{{{Package}}}|yes|[[Category:Extensions that use packages|{{PAGENAME}}]]}}  
+
[[Category:Extensions|{{PAGENAME}}]]
 +
{{#ifeq:{{{migration}}}|yes|[[Category:Extensions with migrations|{{PAGENAME}}]]}}  
 +
{{#ifeq:{{{package}}}|yes|[[Category:Extensions that use packages|{{PAGENAME}}]]}}
 +
{{#ifeq:{{{modified-main}}}|yes|[[Category:Extensions in modified-main|{{PAGENAME}}]]}}
 +
{{#ifeq:{{{dev300}}}|yes|[[Category:Extensions in 3.0.0 dev|{{PAGENAME}}]]}}
 +
 
 +
{{#switch: {{lc: {{{status}}} }}
 +
| testing = [[Category:Extensions in Testing Status|{{PAGENAME}}]]
 +
| stable = [[Category:Extensions in Stable Status|{{PAGENAME}}]]
 +
| #default = [[Category:Extensions with Unknown Status|{{PAGENAME}}]]
 +
}}
 +
 
 +
{{#switch: {{lc: {{{github}}} }}
 +
| Not Applicable = [[Category:Extensions without Github|{{PAGENAME}}]]
 +
| {{Github|user=username|branch=branch}} = [[Category:Extensions without Github|{{PAGENAME}}]]
 +
| #default =
 +
}}
 +
 
 +
{{#switch: {{lc: {{{auth}}} }}
 +
| Unknown Author = [[Category:Extensions with Unknown Author|{{PAGENAME}}]]
 +
| Author(s) = [[Category:Extensions with Unknown Author|{{PAGENAME}}]]
 +
| #default =
 +
}}
 +
 
 +
{{#switch: {{lc: {{{LKVer}}} }}
 +
| Unspecified = [[Category:Extensions with Unspecified LK version|{{PAGENAME}}]]
 +
| What Lorekeeper version the ext is built on = [[Category:Extensions with Unspecified LK version|{{PAGENAME}}]]
 +
| #default =
 +
}}
 +
 
 +
{{#iferror:{{#ifexpr:{{{LKVer}}} < 2 | [[Category:Extensions older than LKv2|{{PAGENAME}}]]}}}}  
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Latest revision as of 15:09, 26 June 2024

Extensioninfobox
Description TBD
Author(s) Unknown Author
Status Unknown Status
Github Not Applicable
LK Version Unspecified


50px Template documentation[view] [edit] [history] [purge]

Provides an at-a-glance summary of an extension.

Usage

{{Extensioninfobox|title=|desc=|auth=|status=|github={{Github|user=|branch=}}|LKVer=|migration=|package=}}

Parameters

Parameter Required? Default Description
title semi Page title The title for the infobox. Defaults to the page title, which isn't nice looking due to it including the Extensions: prefix.
desc yes A short description of the extension.
auth yes The extension's author(s).
status yes The extension's approximate status, such as WIP, testing, stable, that sort of thing.
github yes Template:Github Link to the github branch the extension is located at. This makes use of the Github template; see that page for information. As configured here, it expects your github username and the name of the branch the extension is at. The template will sort out the rest.
LKVer semi Unspecified What version of Lorekeeper the extension is built upon.
migration no Whether or not the extension contains and requires a migration. If so, enter yes for this parameter.
package no Whether or not the extension makes use of a package. If so, enter yes for this parameter.
modified-main no Whether or not the extension is included in the modified-main branch. If so, enter yes for this parameter.
dev300 no Whether or not the extension is included in the 3.0.0 develop branch. If so, enter yes for this parameter.