Actions

Template

Difference between revisions of "Feat"

From P6 Spheres

 
 
(7 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
|Special=
 
|Special=
 
|Normal=
 
|Normal=
 +
|OGL=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
{{#cargo_declare:_table=Feats|Name=String|Fluff=String|MainCategory=String|SubCategories=List (,) of String|Keywords=List (,) of String|Classes=List (,) of String|Prereq=Wikitext|Short=Wikitext|Action=Wikitext|Benefit=Wikitext|Special=Wikitext|Normal=Wikitext}}
 
{{#cargo_declare:_table=Feats|Name=String|Fluff=String|MainCategory=String|SubCategories=List (,) of String|Keywords=List (,) of String|Classes=List (,) of String|Prereq=Wikitext|Short=Wikitext|Action=Wikitext|Benefit=Wikitext|Special=Wikitext|Normal=Wikitext}}
</noinclude><includeonly>{{#cargo_store:_table=Feats|Name={{{Name|}}}|Fluff={{{Fluff|}}}|MainCategory={{{MainCategory|}}}|SubCategories={{{SubCategories|}}}|Keywords={{{Keywords|}}}|Classes={{{Classes|}}}|Prereq={{{Prereq|}}}|Short={{{Short|}}}|Action={{{Action|}}}|Benefit={{{Benefit|}}}|Special={{{Special|}}}|Normal={{{Normal|}}} }}{| class="wikitable"
+
</noinclude><includeonly>{{#cargo_store:_table=Feats|Name={{{Name|}}}|Fluff={{{Fluff|}}}|MainCategory={{{MainCategory|}}}|SubCategories={{{SubCategories|}}}|Keywords={{{Keywords|}}}|Classes={{{Classes|}}}|Prereq={{{Prereq|}}}|Short={{{Short|}}}|Action={{{Action|}}}|Benefit={{{Benefit|}}}|Special={{{Special|}}}|Normal={{{Normal|}}} }}<!--
! Name
 
| {{{Name|}}}
 
|-
 
! Fluff
 
| {{{Fluff|}}}
 
|-
 
! MainCategory
 
| {{{MainCategory|}}}
 
|-
 
! SubCategories
 
| {{#arraymap:{{{SubCategories|}}}|,|x|[[x]]}}
 
  
|-
+
-->{{DISPLAYTITLE:{{{Name|}}}}}<!--
! Keywords
+
-->{{BreadCrumbs|Feats}}{{TOC}}{{#if: {{{SubCategories|}}}|
| {{#arraymap:{{{Keywords|}}}|,|x|[[x]]}}
+
<big>'''({{{SubCategories}}})'''</big>
  
|-
+
<b></b>|}}{{#if: {{{Fluff|}}}|
! Classes
+
''{{{Fluff}}}''
| {{#arraymap:{{{Classes|}}}|,|x|[[x]]}}
 
  
|-
+
<b></b>|}}{{#if: {{{Prereq|}}}|'''Prerequisites:''' {{{Prereq}}}
! Prereq
+
 
| {{{Prereq|}}}
+
<b></b>|}}{{#if: {{{Action|}}}|
|-
+
'''Action:''' {{{Action}}}
! Short
+
 
| {{{Short|}}}
+
<b></b>|}}{{#if: {{{Benefit|}}}|
|-
+
'''Benefit:''' {{{Benefit}}}
! Action
+
 
| {{{Action|}}}
+
<b></b>|}}{{#if: {{{Normal|}}}|
|-
+
'''Normal:''' {{{Normal}}}
! Benefit
+
 
| {{{Benefit|}}}
+
<b></b>|}}{{#if: {{{Special|}}}|
|-
+
'''Special:''' {{{Special}}}
! Special
+
 
| {{{Special|}}}
+
<b></b>|}}
|-
+
 
! Normal
+
'''Prerequisite for:'''
| {{{Normal|}}}
+
{{#cargo_query:tables=Feats
|}
+
|where=Prereq LIKE "%{{PAGENAME}}%"
 +
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' )
 +
|format=list
 +
}}
 +
 
 +
{{OGL|{{{OGL}}}}}
  
 
[[Category:Feats]]
 
[[Category:Feats]]
 
</includeonly>
 
</includeonly>

Latest revision as of 10:18, 9 May 2021

This is the "Feat" template. It should be called in the following format:

{{Feat
|Name=
|Fluff=
|MainCategory=
|SubCategories=
|Keywords=
|Classes=
|Prereq=
|Short=
|Action=
|Benefit=
|Special=
|Normal=
|OGL=
}}

Edit the page to see the template text. This template defines the table "Feats". View table.