User:Bejeebs: Difference between revisions

From AnotherEidos R Wiki
Bejeebs (talk | contribs)
No edit summary
Bejeebs (talk | contribs)
No edit summary
Tag: 2017 source edit
Line 10: Line 10:


5) Remove more redundancies in infobox due to spaghetti code
5) Remove more redundancies in infobox due to spaghetti code
current
<pre>
{{Infobox Character
|image = rasho.png
|illustrator-link = [https://twitter.com/dkqthf ABSOL]
|class = Vanguard
|country = Yamato
|release-date = 01/10/2022
|rarity = 6 Stars ☆☆☆☆☆☆
|character-name = Rasho
|character-title = Half-Demon
|image2  = FULL_Rasho_2.png
|availability = Standard Scouting
|release-year = 2022
|alternate-list = {{Infobox Alternate List|Variants = {{Character FS | char=Rasho| class=Vanguard|rarity=☆☆☆☆☆☆}}{{Character FS | char=Rasho (Awakened) | class=Guard|rarity=☆☆☆☆☆☆|limited=}} }}
|eidos-list = {{Infobox Eidos List| Eidos= {{Eidos WF | rarity = ☆☆☆☆☆☆| eidos-name = Demon Breaking Him In for the New Year| eidos-num = 6003}} }}
| filename = rasho
| Good_name = Moonlight Blade
}}
</pre>
planned:
<pre>
{{Infobox Character
|character-name = {{Array|get|{{{PAGENAME}}}| |1}} could include logic where it does this if blank, and takes in an input in case character name is more than one word
|character-title = Half-Demon
|image-list = {{:{{{PAGENAME}}}/image list}}
|class = Vanguard
|country = Yamato
|release-date = 01/10/2022 *release year will be retrieved using {{Array|get|{{{release-date}}}|/|3}}
|illustrator-link = [https://twitter.com/dkqthf ABSOL] * might opt for something like {{:illustrator/ABSOL}} for links?
|rarity = 6 * would ideally still display the star rarity, might just take the switch case approach, but the filling yup template the stars has always been a headache
|availability = Standard Scouting
|Good_name = Moonlight Blade *good's image naming logic is pretty good alr and just needs character-name proccessed with {{lc:string}}
}}
* alternate and eidos list will be assumed to exist and create pages otherwise to hide broken links.
</pre>


6) Standardize all infoboxes somehow (in terms of template structure or css or smth
6) Standardize all infoboxes somehow (in terms of template structure or css or smth