FANDOM


 
Line 22: Line 22:
 
[[Category:DPL Templates]]
 
[[Category:DPL Templates]]
 
</noinclude><includeonly>{{{{{|safesubst:}}}#if:{{{cats|}}}|
 
</noinclude><includeonly>{{{{{|safesubst:}}}#if:{{{cats|}}}|
{{#if:{{#pos:, {{{cats|}}},|, Activities,}}|{{#if:{{{foot|}}}|{{#if:{{{foot|}}}|{{Project_footer|Activity}}|Activity}}
+
{{#if:{{#pos:, {{{cats|}}},|, Activities,}}|{{#if:{{{foot|}}}|{{Project_footer|Activity}}|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Activities in Saints Row IV,}}|{{#if:{{{foot|}}}|{{Project_footer|Activity}}|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Activities in Saints Row IV,}}|{{#if:{{{foot|}}}|{{Project_footer|Activity}}|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row IV,}}|{{#if:{{{foot|}}}|{{Project_footer|Activity}}|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row IV,}}|{{#if:{{{foot|}}}|{{Project_footer|Activity}}|Activity}}

Latest revision as of 14:28, October 29, 2019

This template can be used in three ways

Usage: {{project categories|(To-do list name)}}

Used by {{To-do header}} and {{Random}}
  • Returns ¦ separated list of categories related to that to-do list, for use with DPL
  • Example: {{project categories|Mission}}

Usage: {{project categories|cat=(Category)}}

Unused, formerly used by {{Project_lookup}}
  • Parameter is one category only. Returns one to-do list based on that category.
  • Example: {{project categories|cat=Vehicles in Saints Row DLC}}
  • In this example, only "Vehicle" is returned.

Usage: {{project categories|cats=(Category list)}}

Used by {{Project_lookup}}, {{Navfooter}}
  • Parameter is comma separated list of categories, returns all to-do lists related to that category
  • Example: {{project categories|cats=Vehicles in Saints Row DLC, Vehicles in Saints Row IV}}
  • In this example, both "Vehicle" and "DLC" are returned.
  • This usage has the additional parameter "out", which can be used to format the output.
  • Example: {{project categories|cats=Vehicles in Saints Row DLC, Vehicles in Saints Row IV|out={{info|See the REPLACE to-do list}}}}
  • The word replace is replaced with Vehicle and DLC.
Community content is available under CC-BY-SA unless otherwise noted.