FANDOM


(testing)
(avoiding expansion depth limit, and allowing multiple task force footers when necessary (DLC vehicles, for example))
Line 6: Line 6:
 
The template is used for look up the task force based on categories.
 
The template is used for look up the task force based on categories.
   
</noinclude><includeonly>{{{{{|safesubst:}}}#if:{{{cats|}}}
+
</noinclude><includeonly>{{{{{|safesubst:}}}#if:{{{cats|}}}|
|{{#if:{{#pos:, {{{cats|}}},|, Activities,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
+
{{#if:{{#pos:, {{{cats|}}},|, Activities,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Activities in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Activities in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
Line 18: Line 18:
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row 2,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row 2,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Diversions in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Activity}}
+
}} }} }} }} }} }} }} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
+
{{#if:{{#pos:, {{{cats|}}},|, Radio Stations,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row 2,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row 2,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Radio Stations in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Audio}}
+
}} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Districts of Steelport,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
+
{{#if:{{#pos:, {{{cats|}}},|, Districts of Steelport,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Districts of Stilwater,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Districts of Stilwater,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Neighborhoods of Steelport,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Neighborhoods of Steelport,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
Line 48: Line 48:
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicle Stores,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicle Stores,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Liquor Stores,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Liquor Stores,}}|{{#replace:{{{out|}}}|REPLACE|Location}}
+
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Characters,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
+
{{#if:{{#pos:, {{{cats|}}},|, Characters,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Characters in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Characters in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Characters in Saints Row IV DLC,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Characters in Saints Row IV DLC,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
Line 67: Line 67:
 
|{{#if:{{#pos:, {{{cats|}}},|, Homies in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Homies in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Homies in Saints Row: The Third DLC,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Homies in Saints Row: The Third DLC,}}|{{#replace:{{{out|}}}|REPLACE|Character}}
+
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Customization,}}|{{#replace:{{{out|}}}|REPLACE|Customization}}
+
{{#if:{{#pos:, {{{cats|}}},|, Customization,}}|{{#replace:{{{out|}}}|REPLACE|Customization}}
+
}}
|{{#if:{{#pos:, {{{cats|}}},|, Missions,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
+
{{#if:{{#pos:, {{{cats|}}},|, Missions,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Strongholds,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Strongholds,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Missions in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Missions in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
Line 106: Line 106:
 
|{{#if:{{#pos:, {{{cats|}}},|, STAG Missions,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, STAG Missions,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, 3rd Street Saints Missions in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
 
|{{#if:{{#pos:, {{{cats|}}},|, 3rd Street Saints Missions in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Mission}}
+
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Multiplayer,}}|{{#replace:{{{out|}}}|REPLACE|Multiplayer}}
+
{{#if:{{#pos:, {{{cats|}}},|, Multiplayer,}}|{{#replace:{{{out|}}}|REPLACE|Multiplayer}}
+
}}
|{{#if:{{#pos:, {{{cats|}}},|, Achievements,}}|{{#replace:{{{out|}}}|REPLACE|Reward}}
+
{{#if:{{#pos:, {{{cats|}}},|, Achievements,}}|{{#replace:{{{out|}}}|REPLACE|Reward}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Unlockables,}}|{{#replace:{{{out|}}}|REPLACE|Reward}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Unlockables,}}|{{#replace:{{{out|}}}|REPLACE|Reward}}
+
}} }}
|{{#if:{{#pos:, {{{cats|}}},|, Cheats,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
+
{{#if:{{#pos:, {{{cats|}}},|, Cheats,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Credits,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Credits,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, User Interface,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, User Interface,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Controls,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Controls,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Crib features,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Crib features,}}|{{#replace:{{{out|}}}|REPLACE|UI}}
+
}} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
+
{{#if:{{#pos:, {{{cats|}}},|, Vehicles,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row 2,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row 2,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
Line 128: Line 128:
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row IV DLC,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row IV DLC,}}|{{#replace:{{{out|}}}|REPLACE|Vehicle}}
+
}} }} }} }} }} }} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Weapons,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
+
{{#if:{{#pos:, {{{cats|}}},|, Weapons,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Weapons in Saints Row,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Weapons in Saints Row,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Weapons in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Weapons in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
Line 138: Line 138:
 
|{{#if:{{#pos:, {{{cats|}}},|, Super Powers in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Super Powers in Saints Row IV,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Temporary Weapons in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Temporary Weapons in Saints Row: The Third,}}|{{#replace:{{{out|}}}|REPLACE|Weapon}}
+
}} }} }} }} }} }} }} }} }}
|{{#if:{{#pos:, {{{cats|}}},|, Downloadable Content,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
+
{{#if:{{#pos:, {{{cats|}}},|, Downloadable Content,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Saints Row DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Saints Row DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Saints Row 2 DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Saints Row 2 DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
Line 149: Line 149:
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row: The Third DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row: The Third DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row IV DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
 
|{{#if:{{#pos:, {{{cats|}}},|, Vehicles in Saints Row IV DLC,}}|{{#replace:{{{out|}}}|REPLACE|DLC}}
}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}
+
}} }} }} }} }} }} }} }} }} }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
[[Category:DPL Templates]]
 
[[Category:DPL Templates]]

Revision as of 04:59, March 27, 2014

Attempting to overhaul Template:Project_categories.

  • It's not broken, but it is overly complicated, and there might be a better way to do it.
  • Instead of check categories 1 through 6, and comparing each category to a list, compare the list to the category.

The template is used for look up the task force based on categories.

Community content is available under CC-BY-SA unless otherwise noted.