Template:PageMeta: Difference between revisions

From Fate/Starry Night Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
'''Editability:''' {{{editability|}}}   
<!-- Page category -->
'''Status:''' {{{status|}}}
{{#switch: {{{page_category|}}}
'''Servant Class:''' {{{servant_class|}}}
| Character = [[Category:Characters]]
| Servant  = [[Category:Servants]]
| Location  = [[Category:Locations]]
| Faction  = [[Category:Factions]]
  | Lore      = [[Category:Lore]]
| Event    = [[Category:Events]]
| Thread    = [[Category:Threads]]
| Rule      = [[Category:Rules]]
| Guide    = [[Category:Guides]]
| Admin    = [[Category:Admin]]
| #default  = [[Category:Uncategorized]]
}}
 
<!-- Page type -->
{{#switch: {{{page_type|}}}
| Player Editable = [[Category:Player Editable]]
| Canon Locked    = [[Category:Canon Locked]]
}}
 
<!-- Optional status -->
{{#switch: {{{page_status|}}}
| Draft    = [[Category:Draft]]
| Proposal = [[Category:Proposal]]
|        = <!-- blank => no category -->
}}
 
<!-- Character type -->
{{#switch: {{{character_type|}}}
| Player Character = [[Category:Player Character]]
| Minor Character  = [[Category:Minor Character]]
| NPC              = [[Category:NPC]]
| #default        =
}}
 
<!-- Servant type -->
{{#switch: {{{servant_type|}}}
| Player Character = [[Category:Player Character]]
| Minor Character  = [[Category:Minor Character]]
| NPC              = [[Category:NPC]]
| #default        =
}}


{{#if: {{{editability|}}}
<!-- Servant class -->
  | {{#switch: {{{editability}}}
{{#switch: {{{servant_class|}}}
    | Draft   = [[Category:Player Editable]]
  | Saber    = [[Category:Saber Class Servants]]
    | Proposal = [[Category:Canon Locked]]
| Archer    = [[Category:Archer Class Servants]]
     | #default = [[Category:Pages with invalid editability]]
| Lancer   = [[Category:Lancer Class Servants]]
                <span class="error">Invalid status: {{{editability}}}. Use Player Editable or Canon Locked.</span>
| Caster    = [[Category:Caster Class Servants]]
  }}
| Rider     = [[Category:Rider Class Servants]]
| Assassin  = [[Category:Assassin Class Servants]]
| Berserker = [[Category:Berserker Class Servants]]
| #default  =
}}
}}


{{#if: {{{status|}}}
<!-- Location type -->
  | {{#switch: {{{status}}}
{{#switch: {{{location_type|}}}
    | Draft    = [[Category:Draft]]
  | Greater Region = [[Category:Greater Region]]
    | Proposal = [[Category:Proposal]]
| Nomadic City  = [[Category:Nomadic City]]
     | #default = [[Category:Pages with invalid status]]
| Landmark      = [[Category:Landmark]]
                <span class="error">Invalid status: {{{status}}}. Use Draft or Proposal.</span>
| Coordinate     = [[Category:Coordinate]]
  }}
| #default      =
}}
}}


{{#if: {{{servant_class|}}}
<!-- Event type -->
  | {{#switch: {{{servant_class}}}
{{#switch: {{{event_type|}}}
    | Saber    = [[Category:Saber]]
  | Season = [[Category:Season]]
    | Archer    = [[Category:Archer]]
| Event  = [[Category:Event]]
    | Lancer    = [[Category:Lancer]]
  | #default =
    | Rider    = [[Category:Rider]]
    | Caster    = [[Category:Caster]]
    | Assassin = [[Category:Assassin]]
    | Berserker = [[Category:Berserker]]
    | #default = [[Category:Pages with invalid servant class]]
                <span class="error">Invalid servant class: {{{servant_class}}}.</span>
  }}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 20:29, 9 February 2026