Difference between revisions of "Template:HonorRequirement"

From Pathfinder Wiki
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{#template_params:sectionID (label=ID of the Section)|groupID (label=ID of the Group)|level1_ID (label=ID of level 1)|level2_ID (label=ID of level 2)|level3_ID (label=ID of level 3)|level4_ID (label=ID of level 4)|level5_ID (label=ID of level 5)|level6_ID (label=ID of level 6)|minReqNeeded (label=Sub-Reqs. needed)|text (label=Text)|reqType (label=Type)|additinalDataType (label=Type of additional Data)|additionalData (label=Additional Data)}}
+
{{#template_params:sectionID (label=ID of the Section)
{{#cargo_declare:_table=Honors_Requirements
+
|groupID (label=ID of the Group)
|reqID=String (unique)
+
|level1_ID (label=ID of level 1)
|landingID=Page
+
|level2_ID (label=ID of level 2)
|reqPageID=Page
+
|level3_ID (label=ID of level 3)
 +
|level4_ID (label=ID of level 4)
 +
|level5_ID (label=ID of level 5)
 +
|level6_ID (label=ID of level 6)
 +
|isChallenging (label=Is a challenging Req.)
 +
|minReqNeeded (label=Sub-Reqs. needed)
 +
|text (label=Text)
 +
|reqTypes (label=Types)
 +
|additionalDataType (label=Type of additional Data)
 +
|additionalData (label=Additional Data)}}{{#cargo_declare:_table=Honors_Requirements
 +
|reqID=String (unique mandatory)
 +
|landingID=Integer (mandatory)
 +
|reqPageID=Integer (mandatory)
 
|reqVariantNo=Integer
 
|reqVariantNo=Integer
 
|sectionID=Integer
 
|sectionID=Integer
 
|groupID=Integer
 
|groupID=Integer
|level1_ID=Integer
+
|level1_ID=Integer (mandatory)
 
|level2_ID=Integer
 
|level2_ID=Integer
 
|level3_ID=Integer
 
|level3_ID=Integer
Line 14: Line 26:
 
|level5_ID=Integer
 
|level5_ID=Integer
 
|level6_ID=Integer
 
|level6_ID=Integer
 +
|isChallenging=Boolean
 
|minReqNeeded=Integer
 
|minReqNeeded=Integer
 
|text=Wikitext (mandatory)
 
|text=Wikitext (mandatory)
|reqType=String (allowed values=Text,Image,Match Data,Video,Honor,Honor Category,Draw,Practical,Video,Presentation,Certificate)
+
|language=String (mandatory)
|additinalDataType=String (allowed values=link,pageID,file,table)
+
|reqTypes=List (;) of String (allowed values=Text,Image,Match Data,Video,Honor,Honor Category,Draw,Practical,Presentation,Certificate)
 +
|additionalDataType=String (allowed values=link,pageID,file,table)
 
|additionalData=String
 
|additionalData=String
 
}}
 
}}
</noinclude><includeonly>{{#cargo_store:_table=Honors_Requirements
+
</noinclude><includeonly>{{#ifeq:{{GetLangSuffix}}|/en||{{#cargo_store:_table=Honors_Requirements
|reqID={{#var:landingID}}|{{#var:reqPageID}}|{{#var:reqVariantNo}}|{{{sectionID|}}}|{{{groupID|}}}|{{{level1_ID|}}}|{{{level2_ID|}}}|{{{level3_ID|}}}|{{{level4_ID|}}}|{{{level5_ID|}}}|{{{level6_ID|}}}|{{#var:language}}
+
|reqID={{{landingID|}}}
|landingID={{#var:landingID}}
+
{{!}}{{PAGEID}}
|reqPageID={{#var:reqPageID}}
+
{{!}}{{{reqVariantNo|}}}
|reqVariantNo={{#var:reqVariantNo}}
+
{{!}}{{{sectionID|}}}
}}{{{level1_ID|}}}. {{{level2_ID|}}}. {{{level1_ID|}}}. '''{{{text|}}}'''</includeonly>
+
{{!}}{{{groupID|}}}
 +
{{!}}{{{level1_ID|}}}
 +
{{!}}{{{level2_ID|}}}
 +
{{!}}{{{level3_ID|}}}
 +
{{!}}{{{level4_ID|}}}
 +
{{!}}{{{level5_ID|}}}
 +
{{!}}{{{level6_ID|}}}
 +
{{!}}{{PAGELANGUAGE}}
 +
|reqPageID={{PAGEID}}
 +
|isChallenging={{{isChallenging|false}}}
 +
|language={{PAGELANGUAGE}}
 +
}}}}{{#invoke:HonorUtils|printHonorRequirement}}</includeonly>

Latest revision as of 17:55, 11 June 2022

This is the "HonorRequirement" template.

It should be called in the following format:

{{HonorRequirement
|sectionID=
|groupID=
|level1_ID=
|level2_ID=
|level3_ID=
|level4_ID=
|level5_ID=
|level6_ID=
|isChallenging=
|minReqNeeded=
|text=
|reqTypes=
|additionalDataType=
|additionalData=
}}

Edit the page to see the template text.

This template defines the table "Honors_Requirements". View table.