Difference between revisions of "Help:Add new Honor"

From Pathfinder Wiki
Line 1: Line 1:
Here you'll find a guide on how to add a new honor to the wiki.
+
 
 
<div class="toc toccolours toclimit-3" style="float: left; margin-right: 1em;">
 
<div class="toc toccolours toclimit-3" style="float: left; margin-right: 1em;">
 
__TOC__
 
__TOC__
 
</div>
 
</div>
To know which pages are important for an honor, read the section about the [[Pathfinder_Wiki:Structure|Structure of an Honor]].
+
Here you'll find a guide on how to add a new honor to the wiki. To know which pages are important for an honor, read the section about the [[Pathfinder_Wiki:Structure|Structure of an Honor]].
  
 
== Create the Honor Landing Page ==
 
== Create the Honor Landing Page ==
Line 10: Line 10:
 
Source Code wise it has the following structure: Template call of [[Template:HonorLanding|HonorLanding]] followed by the Overview and the Challenging-Part-Section. The content ends with a call of the [[Template:CloseHonorPage|CloseHonorPage-Template]] Use the following code as a starting point and set the needed arguments of the [[Template:HonorLanding|HonorLanding Template]], they are described in the documentation of the template, and write an awesome overview. Then the Landing Page should be finished.
 
Source Code wise it has the following structure: Template call of [[Template:HonorLanding|HonorLanding]] followed by the Overview and the Challenging-Part-Section. The content ends with a call of the [[Template:CloseHonorPage|CloseHonorPage-Template]] Use the following code as a starting point and set the needed arguments of the [[Template:HonorLanding|HonorLanding Template]], they are described in the documentation of the template, and write an awesome overview. Then the Landing Page should be finished.
  
<syntaxhighlight lang="Wikitext" style="overflow:auto" highlight="15">
+
<syntaxhighlight lang="html+handlebars" style="overflow:auto">
<nowiki>{{</nowiki>HonorLanding<br>
+
{{HonorLanding
|skill=2<br>
+
|skill=2
|year=Unknown<br>
+
|year=Unknown
|category=Regional<br>
+
|category=Regional
|authority=Florida Conference<br>
+
|authority=Florida Conference
|insignia=Scrapbooking (FL) AY Honor.png<br>
+
|insignia=Scrapbooking (FL) AY Honor.png
|insignia_source=FL<br>
+
|insignia_source=FL
|primary=AY Honors/Scrapbooking<br>
+
|primary=AY Honors/Scrapbooking
 
}}  
 
}}  
  
<nowiki>== {{</nowiki>Localize|Overview}}==<br>
+
== {{Localize|Overview}}==
<nowiki><</nowiki>translate><br>
+
<translate>
WRITE AN AWESOME OVERVIEW HERE :)<br>
+
WRITE AN AWESOME OVERVIEW HERE :)
<nowiki><</nowiki>/translate>
+
</translate>
  
<nowiki>== {{</nowiki>Localize|The Challenging Part}} ==<br>
+
== {{Localize|The Challenging Part}} ==
<nowiki>{{</nowiki>Localize|Challenging Part}}
+
{{Localize|Challenging Part}}
  
<nowiki>{{</nowiki>#lst:<nowiki>{{</nowiki>#titleparts:<nowiki>{{</nowiki>PAGENAME}}|2|1}}/Requirements<nowiki>{{</nowiki>GetLangSuffix}} |challenge}}<br>
+
{{#lst:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}} |challenge}}
<nowiki>{{</nowiki>CloseHonorPage}}<br>
+
{{CloseHonorPage}}
 
</syntaxhighlight >
 
</syntaxhighlight >
  
Line 37: Line 37:
 
Use the following code as a template for the requirements page.
 
Use the following code as a template for the requirements page.
  
<syntaxhighlight lang="Wikitext" style="overflow:auto" highlight="15">
+
<syntaxhighlight lang="html+handlebars" style="overflow:auto">
<nowiki>{{</nowiki>HonorSubpage}}
+
{{HonorSubpage}}
  
<nowiki><</nowiki>section begin=Body />
+
<section begin=Body />
  
<nowiki><</nowiki>b>1. <nowiki><</nowiki>section begin=req1 /><nowiki><</nowiki>noinclude><nowiki><</nowiki>translate>
+
<b>1. <section begin=req1 /><noinclude><translate>
<nowiki><</nowiki>/noinclude>What is the purpose of Scrapbooking?
+
</noinclude>The first Requirement of this honor.
<nowiki><</nowiki>noinclude><nowiki><</nowiki>/translate><nowiki><</nowiki>/noinclude><nowiki><</nowiki>section end=req1 /><nowiki><</nowiki>/b>
+
<noinclude></translate></noinclude><section end=req1 /></b>
  
<nowiki><</nowiki>section begin=challenge />
+
<section begin=challenge />
<nowiki><</nowiki>b>N. <nowiki><</nowiki>section begin=reqN /><nowiki><</nowiki>noinclude><nowiki><</nowiki>translate>
+
<b>N. <section begin=reqN /><noinclude><translate>
<nowiki><</nowiki>/noinclude>Make a scrapbook of at least 12 pages (8 1/2 x 11 or larger) on one of the following themes, and incorporating the use of colored paper, stickers, decorative scissors, matting and journaling.
+
</noinclude>The N-th Requirement of this honor
<nowiki><</nowiki>noinclude><nowiki><</nowiki>/translate><nowiki><</nowiki>/noinclude><nowiki><</nowiki>section end=reqN /><nowiki><</nowiki>/b>
+
<noinclude></translate></noinclude><section end=reqN /></b>
<nowiki><</nowiki>section end=challenge />
+
<section end=challenge />
  
<nowiki><</nowiki>section end=Body />
+
<section end=Body />
  
 +
{{CloseHonorPage}}
 
</syntaxhighlight >
 
</syntaxhighlight >
 +
 +
The page needs to start with the Template-Call of [[Template:HonorSubpage|HonorSubpage]]. It generates the Honor-Navigation, Language Switcher, the Infobox and the basic page structure. At the end of the page, the Template [[Template:CloseHonorPage|CloseHonorPage]] needs to be called, to close the HTML-Page-Structure. Between the two Templage calls the <code><section begin=Body /></code>-Tag and the <code><section end=Body /></code>-Tag is needed. The section-tags enable the wiki, to include the enclosed content, on other pages, by the name of the section. Each section name, needs to be unique on the page.
 +
 +
The requirements are also enclosed by section-tags. The names of these start with "req", followed by the requirement number. Between the section-tags the translate-tags need to be opened and closed. That they aren't included on other pages they need to be surrounded by noinclude-tags. For the sake of styling the whole requirement is surrounded by the b-tags, those make the text bold.
 +
 +
Next one needs to define the requirement that is the challenging part of the honor. That is again done by using the section-tags using the section name "challenge". In the example that would be the N-th requirement.

Revision as of 13:43, 3 October 2023

Here you'll find a guide on how to add a new honor to the wiki. To know which pages are important for an honor, read the section about the Structure of an Honor.

Create the Honor Landing Page

That is the first page that need's to be created. It has the following structure: The Honor Navigation, followed by an Overview and the Challenging-Part-Section. On the right side it has the infobox that is displaying the most important information about an honor.

Source Code wise it has the following structure: Template call of HonorLanding followed by the Overview and the Challenging-Part-Section. The content ends with a call of the CloseHonorPage-Template Use the following code as a starting point and set the needed arguments of the HonorLanding Template, they are described in the documentation of the template, and write an awesome overview. Then the Landing Page should be finished.

{{HonorLanding
|skill=2
|year=Unknown
|category=Regional
|authority=Florida Conference
|insignia=Scrapbooking (FL) AY Honor.png
|insignia_source=FL
|primary=AY Honors/Scrapbooking
}} 

== {{Localize|Overview}}==
WRITE AN AWESOME OVERVIEW HERE :)

== {{Localize|The Challenging Part}} ==
{{Localize|Challenging Part}}

{{#lst:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}} |challenge}}
{{CloseHonorPage}}

Create the Requirements Page

To create the requirement page, just use the link to the requirements page on the newly created honor landing page. Use the following code as a template for the requirements page.

{{HonorSubpage}}

<section begin=Body />

<b>1. <section begin=req1 /><noinclude></noinclude>The first Requirement of this honor.
<noinclude></noinclude><section end=req1 /></b>

<section begin=challenge />
<b>N. <section begin=reqN /><noinclude></noinclude>The N-th Requirement of this honor
<noinclude></noinclude><section end=reqN /></b>
<section end=challenge />

<section end=Body />

{{CloseHonorPage}}

The page needs to start with the Template-Call of HonorSubpage. It generates the Honor-Navigation, Language Switcher, the Infobox and the basic page structure. At the end of the page, the Template CloseHonorPage needs to be called, to close the HTML-Page-Structure. Between the two Templage calls the -Tag and the -Tag is needed. The section-tags enable the wiki, to include the enclosed content, on other pages, by the name of the section. Each section name, needs to be unique on the page.

The requirements are also enclosed by section-tags. The names of these start with "req", followed by the requirement number. Between the section-tags the translate-tags need to be opened and closed. That they aren't included on other pages they need to be surrounded by noinclude-tags. For the sake of styling the whole requirement is surrounded by the b-tags, those make the text bold.

Next one needs to define the requirement that is the challenging part of the honor. That is again done by using the section-tags using the section name "challenge". In the example that would be the N-th requirement.