Template:AuthorizationCourseInfo/doc: Difference between revisions
m More steps |
No edit summary |
||
| Line 1: | Line 1: | ||
| ⚫ | |||
'''''This is the MediaWiki ToolsAuthorization Template, please don't mess with the template (Template:ToolAuthorization) unless you know what you are doing''''' |
|||
=Authorization Info Box Template= |
|||
==How to create a new authorization info box== |
|||
= Template Info = |
|||
===Step 1:=== |
|||
| ⚫ | |||
;; Create a new child page under [[Authorizations]] using the title of the authorization course. Note that '''one authorization course page can cover multiple tools.''' To make a new page quick, type in the name at the end of the URL to the [[Authorizations]]: |
|||
<span style="font-size: 105%; font-weight: bold; ">Only use this template in the big list on the [[Authorizations]] page. You will later LINK TO the blue Authorization Info box in the [[Authorizations]] page from the tool page using the <code><nowiki>{{#lst:Authorizations|authslug_for_the_specific_auth_happening}}</nowiki></code> generated for that unique blue authorization box.</span> |
|||
<code><nowiki>https://wiki.pumpingstationone.org/wiki/Authorizations/</nowiki>'''Hot_Air_Balloon'''</code> |
|||
===Step 2:=== |
|||
; Description of fields: |
; Description of fields: |
||
* <span style="color: red ; ">'''Required:'''</span> |
* <span style="color: red ; ">'''Required:'''</span> |
||
Revision as of 17:01, 29 March 2025
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|Template:Error
}}
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|type = content
|image =
|smallimage = {{#if:|{{{smallimage}}}|}}
|imageright =
|smallimageright = {{#if:|{{{smallimageright}}}|}}
|class = ambox-{{#switch:content
|speedy = speedy
|delete = delete
|warning = warning
|content = content
|style = style
|move = move
|protection = protection
|notice|#default = notice
}}
|style =
|textstyle =
|smalltext =
|talk = {{#switch:¬
|¬ =
| = {{#ifeq:Template:FULLROOTPAGENAME|Template:|#}}
|#default = {{{talk}}}
}}
|issue = {{#switch:¬
|¬ =
| = This article
|This {{{sect}}}
}} DO NOT use this template on any tool pages, nor the central Authorizations page. Do not edit this template page directly, unless you know what you're doing.
|fix =
|date = {{#switch:¬
|¬ =
| = {{#ifeq:Template:FULLROOTPAGENAME|Template:|April 2026}}
|#default = {{{date}}}
}}
|info =
}}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:AuthorizationCourseInfo/doc }}|0|2}}
|
|
}}
}}
}}
}}
}}
| hide =
| #default =
{{#ifeq: h0#384!5nea+w9 | {{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}
|
{{#switch:
{{#if:
| {{{demospace}}}
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = | talk = | user = | project = | file | image = | mediawiki = | template = | help = | category = | book = | extension = | other | #default =
}}
|
{{#iferror: {{#expr: 1 + {{#switch:
{{#if:
| {{{demospace}}}
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = {{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}} | talk = | user = | project = | file | image = | mediawiki = | template = {{#switch:Template:
|Template:AuthorizationCourseInfo/doc = {{#ifexpr:{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}
|
}}{{#if:
|
}}
|Template: = {{#ifeq:AuthorizationCourseInfo|doc|}}
}}
| help = | category = | book = | extension = | other | #default =
}} }} | {{#switch:
{{#if:
| {{{demospace}}}
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = {{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if:
|{{#ifexist:Category: from |
|
}}
|[[Category:]]
}}
}}{{#if:
|[[Category:]]
}} | talk = | user = | project = | file | image = | mediawiki = | template = {{#switch:Template:
|Template:AuthorizationCourseInfo/doc = {{#ifexpr:{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}+{{#ifeq:¬|¬|1|0}}
|
}}{{#if:
|
}}
|Template: = {{#ifeq:AuthorizationCourseInfo|doc|}}
}}
| help = | category = | book = | extension = | other | #default =
}} | }}
}} }}
}}
Authorization Info Box Template
How to create a new authorization info box
Step 1:
- Create a new child page under Authorizations using the title of the authorization course. Note that one authorization course page can cover multiple tools. To make a new page quick, type in the name at the end of the URL to the Authorizations
https://wiki.pumpingstationone.org/wiki/Authorizations/Hot_Air_Balloon
Step 2:
- Description of fields
- Required:
- authslug: Short no spaces unique ID used to reference the auth information elsewhere on the wiki.
hotairballoon - authorization_name: Name of tool or bundled authorization.
Hot Air BalloonorGeneral Wood Shop - authorizer: Name of authorizer, preferably linked to their wiki user page where they can list off better contact info (like their Discord name).
[[User:kai_hacker|Kai]] - schedule_frequency: Roughly once a week, month, by request, etc.
By request
- authslug: Short no spaces unique ID used to reference the auth information elsewhere on the wiki.
- Optional:
- discord_channel_link: Right click the channel name to get a link.
https://discord.com/channels/1270929620224704544/1270938360394809489 - discord_channel_name:
#aviation-club - prerequisites: Any other auths the member needs to complete first, etc.
Completed auth for [[Parachute]] - step1: Free text field to provide steps needed to complete.
[https://canvas.pumpingstationone.org/courses/40 Complete the Canvas course] - step2: Free text field to provide steps needed to complete.
Use Canvas to schedule with the next available in-person auth - step3: Free text field to provide steps needed to complete.
Attend and complete in-person auth - step4: Free text field to provide steps needed to complete.
- step5: Free text field to provide steps needed to complete.
- required_materials: Tools or gear the member should bring.
Aviator goggles, cape, propane. - notes: Free text field to provide extra notes.
Will be rescheduled if there's bad weather.
- discord_channel_link: Right click the channel name to get a link.
- At the end add in links to the tool pages that this auth is required for, after the template, example:
[[Hot Air Balloon]]
- Copy and pasta this into the appropriate area section of Authorizations
{{Template:ToolAuthorization
|authslug =
|authorization_name =
|authorizer =
|schedule_frequency =
|discord_channel_link =
|discord_channel_name =
|prerequisites =
|step1 =
|step2 =
|step3 =
|step4 =
|step5 =
|required_materials =
|notes =
}}
<!-- List off links to tool pages that this auth is required for -->
[[Tool page]], [[Tool page]]
Finally save the Authorizations page
- Linking to the blue authorization info box from tool pages
Once the updated Authorizations loads, under the blue authorization box you just created you'll see "Wiki snippet for admins: [Expand]. Click on this, copy the snippet code, and paste it into the tool's page under the Template:EquipmentPage template. Save that page and you'll see the blue authorization box there.