Template:AuthorizationCourseInfo/doc: Difference between revisions

From PS:1 Wiki Dev
Jump to navigationJump to search
Content deleted Content added
No edit summary
No edit summary
Line 9: Line 9:
<code><nowiki>https://wiki.pumpingstationone.org/wiki/Authorizations/</nowiki>'''Hot_Air_Balloon'''</code>
<code><nowiki>https://wiki.pumpingstationone.org/wiki/Authorizations/</nowiki>'''Hot_Air_Balloon'''</code>


; '''Create the page'''.<br>
'''Create the page'''.<br>


[[File:Authorization course info template example1.png|600px|frameless|center]]<br>
[[File:Authorization course info template example1.png|600px|frameless|center]]<br>
===Step 2:===
===Step 2:===


; From the '''Insert''' menu select '''Template'''. Type in <code>AuthorizationCourseInfo</code> and select '''AuthorizationCourseInfo'''...<br>
From the '''Insert''' menu select '''Template'''. Type in <code>AuthorizationCourseInfo</code> and select '''AuthorizationCourseInfo'''...<br>


[[File:VisualEditor Template Insert Menu-en.png|150px|frameless|center]]<br>
[[File:VisualEditor Template Insert Menu-en.png|150px|frameless|center]]<br>
Line 20: Line 20:
[[File:Authorization course info template example4.png|350px|frameless|center]]<br>
[[File:Authorization course info template example4.png|350px|frameless|center]]<br>


; If you don't see the Insert menu, switch over to the visual editor...<br>
If you don't see the Insert menu, switch over to the visual editor...<br>


[[File:Authorization course info template example3.png|200px|frameless|center]]<br>
[[File:Authorization course info template example3.png|200px|frameless|center]]<br>


; If you want to use the code editor, scroll down to find what to copy and paste.
If you want to use the code editor, scroll down to find what to copy and paste.


===Step 3:===
===Step 3:===


; '''Fill out the template form.''' Authorization Course Name, Authorizer Name, and Schedule Frequency are required fields. Check mark optional fields on the left as needed.<br>
'''Fill out the template form.''' Authorization Course Name, Authorizer Name, and Schedule Frequency are required fields. Check mark optional fields on the left as needed.<br>


; '''Insert the template.'''<br>
'''Insert the template.'''<br>


[[File:Authorization course info template example5.png|400px|frameless|center]]<br>
[[File:Authorization course info template example5.png|400px|frameless|center]]<br>


; Description of each field can be found at the end of this page. Refer to this example if you want some inspiration...<br>
Description of each field can be found at the end of this page. Refer to this example if you want some inspiration...<br>


<table style="background: Crimson; border: 1px solid Black; width=100% ; " align="center"><tr>
<table style="background: Crimson; border: 1px solid Black; width=100% ; " align="center"><tr>
Line 42: Line 42:
|Authorization Course Name=Hot Air Balloon|Authorizer Name=[[User:Jane_hacker|Jane Hacker]]|Schedule Frequency=Roughly once a week|Discord Channel Name=#aviation-club|Discord Channel Link=https://discord.com/channels/1270929620224704544/1271319468055855165|Prerequisites=Completed auth for [[Parachute]]|Step 1=[https://canvas.pumpingstationone.org/courses/40 Complete the Canvas course]|Step 2=Use Canvas to schedule with the next available in-person auth|Step 3=Complete the in-person auth|Required Materials=Aviator goggles, cape, propane.|Notes=Will be rescheduled if there's bad weather.}}</td></tr></table><br>
|Authorization Course Name=Hot Air Balloon|Authorizer Name=[[User:Jane_hacker|Jane Hacker]]|Schedule Frequency=Roughly once a week|Discord Channel Name=#aviation-club|Discord Channel Link=https://discord.com/channels/1270929620224704544/1271319468055855165|Prerequisites=Completed auth for [[Parachute]]|Step 1=[https://canvas.pumpingstationone.org/courses/40 Complete the Canvas course]|Step 2=Use Canvas to schedule with the next available in-person auth|Step 3=Complete the in-person auth|Required Materials=Aviator goggles, cape, propane.|Notes=Will be rescheduled if there's bad weather.}}</td></tr></table><br>


; Note that the '''Tools covered'' section will later autopopulate with every page that uses a copy of this Authorization Course Info page.
Note that the '''Tools covered'' section will later autopopulate with every page that uses a copy of this Authorization Course Info page.


===Step 4:===
===Step 4:===


; '''Save the page.''' Do not include any other content on the page.<br>
'''Save the page.''' Do not include any other content on the page.<br>


; Once the page loads, '''click on the gear icon''' in the bottom right corner of the Authorization Course Info box, and '''copy the insert page code.'''<br>
Once the page loads, '''click on the gear icon''' in the bottom right corner of the Authorization Course Info box, and '''copy the insert page code.'''<br>


[[File:Authorization course info template example6.png|400px|frameless|center]]
[[File:Authorization course info template example6.png|400px|frameless|center]]<br>


===Step 5:===


; Copy and pasta this into the appropriate area section of [[Authorizations]]:
'''Paste the code into all related tool pages and the appropriate section in the [[Authorizations]] page.'''<br>

<nowiki>{{Template:ToolAuthorization
[[File:Authorization course info template example7.png|400px|frameless|center]]<br>
|authslug =

|authorization_name =
===Step 6:===
|authorizer =

|schedule_frequency =
In the future if you want to modify the authorization course info content, click on the go and go to the '''Edit this auth''' link.
|discord_channel_link =

|discord_channel_name =
That's it!
|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]]</nowiki>
<nowiki></nowiki>
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: <nowiki>[Expand]</nowiki>. Click on this, copy the snippet code, and paste it into the tool's page under the <span style="font-family: monospace ; " >Template:EquipmentPage</span> template. Save that page and you'll see the blue authorization box there.

Revision as of 19:42, 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 Course 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. Do not stick "auth" or "authorization" in the name. Note that a single authorization course page is all that's needed to cover multiple tools. To make a new page quickly, type in the name at the end of the URL to the Authorizations...

https://wiki.pumpingstationone.org/wiki/Authorizations/Hot_Air_Balloon

Create the page.

Error creating thumbnail: Unable to save thumbnail to destination


Step 2:

From the Insert menu select Template. Type in AuthorizationCourseInfo and select AuthorizationCourseInfo...

File:VisualEditor Template Insert Menu-en.png


Error creating thumbnail: Unable to save thumbnail to destination


If you don't see the Insert menu, switch over to the visual editor...

Error creating thumbnail: Unable to save thumbnail to destination


If you want to use the code editor, scroll down to find what to copy and paste.

Step 3:

Fill out the template form. Authorization Course Name, Authorizer Name, and Schedule Frequency are required fields. Check mark optional fields on the left as needed.

Insert the template.

Error creating thumbnail: Unable to save thumbnail to destination


Description of each field can be found at the end of this page. Refer to this example if you want some inspiration...

EXAMPLE:

Authorization Course Info
Error creating thumbnail: Unable to save thumbnail to destination

{{#if:Hot Air Balloon|Hot Air Balloon|REQUIRED INFO MISSING}}

Authorizer: {{#if:Jane Hacker|Jane Hacker|REQUIRED INFO MISSING}}
Schedule Frequency: {{#if:Roughly once a week|Roughly once a week|REQUIRED INFO MISSING}}
{{#if:https://discord.com/channels/1270929620224704544/1271319468055855165%7C{{#if: #aviation-club|Discord Channel: #aviation-club|}}|}}{{#if:Completed auth for Parachute|
Prerequisites: Completed auth for Parachute|}}{{#if:Complete the Canvas course|
Step 1: Complete the Canvas course|}}{{#if:Use Canvas to schedule with the next available in-person auth|
Step 2: Use Canvas to schedule with the next available in-person auth|}}{{#if:Complete the in-person auth|
Step 3: Complete the in-person auth|}}{{#if:|
Step 4: {{{Step 4}}}|}}{{#if:|
Step 5: {{{Step 5}}}|}}{{#if:Aviator goggles, cape, propane.|
Required Materials: Aviator goggles, cape, propane.|}}{{#if:Will be rescheduled if there's bad weather.|
Notes: Will be rescheduled if there's bad weather.|}}{{#if:Hot Air Balloon|
Tools covered: |}}
Edit this auth
Copy and paste this into the tool's wiki page
after the Template:EquipmentPage template.
{{:Authorizations/Hot Air Balloon}}
Auth info last updated by Rubin110 on {{#timel: F d, Y | 20250329194233 }}.


Note that the 'Tools covered section will later autopopulate with every page that uses a copy of this Authorization Course Info page.

Step 4:

Save the page. Do not include any other content on the page.

Once the page loads, click on the gear icon in the bottom right corner of the Authorization Course Info box, and copy the insert page code.

Error creating thumbnail: Unable to save thumbnail to destination


Step 5:

Paste the code into all related tool pages and the appropriate section in the Authorizations page.

Error creating thumbnail: Unable to save thumbnail to destination


Step 6:

In the future if you want to modify the authorization course info content, click on the go and go to the Edit this auth link.

That's it!