Anonymous
×
Create a new article
Write your page title here:
We currently have 1,806 articles on Everwind Wiki. Type your article name above or click on one of the titles below and start writing!



Everwind Wiki
1,806Articles

Template:Abb: Difference between revisions

Created page with "<onlyinclude><includeonly><!-- -->{{#switch:{{uc:{{{1|{{{abb|}}}}}}}}<!-- -->|AK=<!-- -->{{#switch:{{lc:{{{mode|}}}}}<!-- -->|icon =Booktitle-AK.png<!-- -->|li..."
 
No edit summary
Line 7: Line 7:
   -->|icon          =Booktitle-AK.png<!--
   -->|icon          =Booktitle-AK.png<!--
   -->|link          =Arkaeni (subchapter)<!--
   -->|link          =Arkaeni (subchapter)<!--
   -->|short        =AK<!--
   -->|short        =ARK<!--
   -->|text|#default =Arkaeni<!--
   -->|text|#default =Arkaeni<!--
  -->}}<!--
  -->}}<!--
Line 17: Line 17:
   -->|short        =AUX<!--
   -->|short        =AUX<!--
   -->|text|#default =Auxiliaries<!--
   -->|text|#default =Auxiliaries<!--
-->}}<!--
-->|GOTR=<!--
-->{{#switch:{{lc:{{{mode|}}}}}<!--
  -->|icon          =<!--
  -->|link          =Gift of the Rook<!--
  -->|short        =GOTR<!--
  -->|text|#default =Gift of the Rook<!--
  -->}}<!--
  -->}}<!--


Line 39: Line 31:
   -->|icon          =Booktitle-OR.png<!--
   -->|icon          =Booktitle-OR.png<!--
   -->|link          =Outrider (book)<!--
   -->|link          =Outrider (book)<!--
   -->|short        =OUTRIDER<!--
   -->|short        =POTO<!--
   -->|text|#default =Outrider<!--
   -->|text|#default =Path of the Outrider<!--
-->}}<!--
 
-->|RPG=<!--
-->{{#switch:{{lc:{{{mode|}}}}}<!--
  -->|icon          =Booktitle-RPG.png<!--
  -->|link          =Everwind RPG<!--
  -->|short        =RPG<!--
  -->|text|#default =EWRPG<!--
-->}}<!--
 
-->|ROI=<!--
-->{{#switch:{{lc:{{{mode|}}}}}<!--
  -->|icon          =Booktitle-ROI.png<!--
  -->|link          =Revelation of Influism (book)<!--
  -->|short        =INFLUISM<!--
  -->|text|#default =Revelation of Influism<!--
  -->}}<!--
  -->}}<!--



Revision as of 04:50, 23 July 2021

Template documentation (for the above template, sometimes hidden or invisible)

Small template which retrieves the name of an Everwind book for a given user entry.

Auxiliary template for {{Infobox}}.

Usage

{{abb|abbreviation}}

Parameters

{{#replace:{{#replace:{{#replace:{{#replace:<unnamed 1> // abb|| }}| >> | up to }}| // | or }}| ++ |, }}
Book abbrevation; see #Abbreviations below for list of valid inputs.
(default: "text")
{{#replace:{{#replace:{{#replace:{{#replace:mode|| }}| >> | up to }}| // | or }}| ++ |, }}
Determines the template output.

Available options:

  • icon: Returns the name of the book's icon (without "File:" prefix).
  • link: Returns the name of the book's overview article.
  • short: Returns a shortened version of the book's name for display in narrow spaces.
  • text: Returns the book's name.

Abbreviations

<section begin="abbrevations" />

Abbreviation text short link icon
AK Arkaeni ARK Arkaeni (subchapter)
AUX Auxiliaries AUX List of Auxiliary Short Stories File:Booktitle-AUX.png
GH Grimhall GRIM Grimhall (subchapter)
OR Path of the Outrider POTO Outrider (book) File:Booktitle-OR.png
SL Snowleaf SNOW Snowleaf (subchapter)
WS Wornspire WORNSPIRE Wornspire (subchapter)
WIKI About WIKI The Verges Wiki:About File:Booktitle-WIKI.png
none mentioned-only mentioned-only

<section end="abbrevations" />

Adding new abbrevations

Simply add the following to the template and fill it out:

-->|ABBREVIATION=<!--
 -->{{#switch:{{lc:{{{mode|}}}}}<!--
  -->|icon          =<!--
  -->|link          =<!--
  -->|short         =<!--
  -->|text|#default =<!--
 -->}}<!--

Please note:

  • The abbreviation needs to be in all-uppercase.
  • Icon file names should be specified without "File:" prefix.

In addition, please try to maintain alphabetical order of abbreviations within the template.

Examples

Input Result
{{abb|WS}} Wornspire
{{abb|mode=short|WS}} WORNSPIRE
{{abb|mode=link|WS}} Wornspire (subchapter)
{{abb|mode=icon|WS}} Booktitle-WS.png

Visit Template:Abb/doc to edit this text! (How does this work?)