Template:Feattype: Difference between revisions

From Cormyrean Prophecies
(Новая страница: «<noinclude>This template formats the type of a feat with an appropriate wikilink. Its purpose is to remove a mess of code from template:feat, making that…»)
 
No edit summary
Line 2: Line 2:
----
----
</noinclude>{{
</noinclude>{{
#ifeq: {{{1}}} | class          | [[class feat|class]] | {{
#ifeq: {{{1}}} | class          | [[классовый|class]] | {{
#ifeq: {{{1}}} | classrace      | [[class feat|class]]/[[racial feat|race]] | {{
#ifeq: {{{1}}} | classrace      | [[классовый|class]]/[[расовый|race]] | {{
#ifeq: {{{1}}} | monster        | [[monster feat|monster]] | {{
#ifeq: {{{1}}} | monster        | [[monster feat|monster]] | {{
#ifeq: {{{1}}} | race          | [[racial feat|race]] | {{
#ifeq: {{{1}}} | race          | [[расовый|race]] | {{
#ifeq: {{{1}}} | general        | [[general feat|general]] | {{
#ifeq: {{{1}}} | general        | [[general feat|general]] | {{
#ifeq: {{{1}}} | metamagic      | [[metamagic]] ([[general feat]]) | {{
#ifeq: {{{1}}} | metamagic      | [[metamagic]] ([[general feat]]) | {{

Revision as of 11:42, 19 May 2016

This template formats the type of a feat with an appropriate wikilink. Its purpose is to remove a mess of code from template:feat, making that template easier to read.


{{

  1. ifeq: {{{1}}} | class | class | {{
  2. ifeq: {{{1}}} | classrace | class/race | {{
  3. ifeq: {{{1}}} | monster | monster | {{
  4. ifeq: {{{1}}} | race | race | {{
  5. ifeq: {{{1}}} | general | general | {{
  6. ifeq: {{{1}}} | metamagic | metamagic (general feat) | {{
  7. ifeq: {{{1}}} | instant | instant | {{
  8. ifeq: {{{1}}} | instant custom | instant (custom) |
(general feat)

}} }} }} }} }} }} }} }}


This template takes a single unnamed parameter that indicates the type of feat. Special formatting is applied to the following: general, class, race, metamagic, monster, classrace, instant, and "instant custom". All other types are assumed to be a specialization of "general" and formatted accordingly.