Template:SpecialCommon: Difference between revisions

From Ephinea PSO Wiki
(UGH i'll have to figure it out later)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
  | {{{3|}}}
  | {{{3|}}}
}}|<span class={{{2}}}>{{{3}}}</span>]] [[{{#switch: {{{2}}}
}}|<span class={{{2}}}>{{{3}}}</span>]] [[{{#switch: {{{2}}}
  | es = ES {{{4}}}
  | es
  | {{{4|}}}
| ES = ES {{{4}}}{{!}}<span class={{{2}}}>{{{4}}}</span>
}}|<span class={{{2}}}>{{{4}}}</span>]]<noinclude>
  | {{#if:{{{5|}}}|{{{4}}}{{!}}<span class={{{2}}}>{{{5}}}</span>|{{{4}}}{{!}}<span class={{{2}}}>{{{4}}}</span>}}}}]]<noinclude>
==Usage==
==Usage==
For creating more accurate-to-in-game-looking links for common (or event TypeM or I guess S-Rank) weapons with links to both the special and the weapon type itself, keeping the icon at the start.
For creating more accurate-to-in-game-looking links for common (or event TypeM or S-Rank) weapons with links to both the special and the weapon type itself, keeping the icon at the start.


<pre>{{SpecialCommon|icon|text color|special|weapon type}}</pre>
<pre>{{SpecialCommon|icon|text color|special|weapon type|link text}}</pre>
# Icon = Sword/Gun/Cane, there are more but this template isn't required for things other than weapons
# '''Icon''' = Sword, Gun, or Cane. There are more icons than just these three, but this template isn't required for things other than weapons, as only weapons with specials necessitate producing two separate links (e.g. "{{SpecialCommon|Mate|untekked|King's|Monomate}}" doesn't exist).
# Text color = Text color/class (See [[Style guide#Font colors]])
# '''Text color''' = Text color/class (See [[Style guide#Font colors]]). If this is set to "es" (or "ES") for ES weapons, the text "<code>ES </code>" (note the necessary space) will be appended to the link for the weapon type specified in #4 to facilitate correctly linking to their respective wiki pages, as the custom name otherwise overwrites the "ES" part of the name in-game.
# Special = Heat, Burning, Devil's, King's, etc.
# '''Special''' = Heat, Burning, Devil's, King's, etc.. If the special is Shock, Freeze, or Dark (which are other pages on the wiki, e.g. {{Shock}}), the text "<code> (special)</code>" (note the necessary space) will be appended to the link for the special.
# Weapon type = Saber, Pallasch, Rifle, Needle (for ES), etc.</pre>
# '''Weapon type''' = Saber, Pallasch, Rifle, Needle (for ES), etc.</pre>
<!--# Link text = Specifies link text if different than <code>4.</code> for any reason (e.g. Vulcan '''+9''')-->
# '''Link text''' = Specifies link text, if different than #4 for any reason (e.g. if the weapon type is Vulcan, adding "Vulcan +9" to the template will produce a link that ''displays'' "Vulcan +9," but ''links'' to "Vulcan").


'''Disclaimer''': Currently if you want the weapon name to say something like "Repeater +9" instead of just "Repeater" like you can do with most other links, that, uh, doesn't work cause I don't know exactly how to implement that, but I'll probably figure it out as soon as I run into a situation where it's required - Sundark
===Examples===
===Examples===
<pre>{{SpecialCommon|Sword|attributes|Demon's|Gladius}}</pre>
<pre>{{SpecialCommon|Sword|attributes|Demon's|Gladius|Gladius +18}}</pre>
{{SpecialCommon|Sword|attributes|Demon's|Gladius}}
{{SpecialCommon|Sword|attributes|Demon's|Gladius|Gladius +18}}
<pre>{{SpecialCommon|Sword|rare|Spirit|TypeSW/J-Sword}}</pre>
<pre>{{SpecialCommon|Sword|rare|Spirit|TypeSW/J-Sword}}</pre>
{{SpecialCommon|Sword|rare|Spirit|TypeSW/J-Sword}}
{{SpecialCommon|Sword|rare|Spirit|TypeSW/J-Sword}}

Latest revision as of 20:52, 1 November 2025

[[File:{{{1}}}.png|12px|baseline|link=]][[|{{{3}}}]] [[{{{4}}}|{{{4}}}]]

Usage

For creating more accurate-to-in-game-looking links for common (or event TypeM or S-Rank) weapons with links to both the special and the weapon type itself, keeping the icon at the start.

{{SpecialCommon|icon|text color|special|weapon type|link text}}
  1. Icon = Sword, Gun, or Cane. There are more icons than just these three, but this template isn't required for things other than weapons, as only weapons with specials necessitate producing two separate links (e.g. "Mate icon.pngKing's Monomate" doesn't exist).
  2. Text color = Text color/class (See Style guide#Font colors). If this is set to "es" (or "ES") for ES weapons, the text "ES " (note the necessary space) will be appended to the link for the weapon type specified in #4 to facilitate correctly linking to their respective wiki pages, as the custom name otherwise overwrites the "ES" part of the name in-game.
  3. Special = Heat, Burning, Devil's, King's, etc.. If the special is Shock, Freeze, or Dark (which are other pages on the wiki, e.g. Shock.pngShock), the text " (special)" (note the necessary space) will be appended to the link for the special.
  4. Weapon type = Saber, Pallasch, Rifle, Needle (for ES), etc.
  5. Link text = Specifies link text, if different than #4 for any reason (e.g. if the weapon type is Vulcan, adding "Vulcan +9" to the template will produce a link that displays "Vulcan +9," but links to "Vulcan").

Examples

{{SpecialCommon|Sword|attributes|Demon's|Gladius|Gladius +18}}

Sword icon.pngDemon's Gladius +18

{{SpecialCommon|Sword|rare|Spirit|TypeSW/J-Sword}}

Sword icon.pngSpirit TypeSW/J-Sword

{{SpecialCommon|Gun|attributes|Dark|Repeater}}

Gun icon.pngDark Repeater

{{SpecialCommon|Gun|es|Hell|Needle}}

Gun icon.pngHell Needle