User:Slashhearts/Sandbox
#if ParserFunction Work[edit source]
The goal is to hide any trace of unused parameters from both the template code and the output. The problem is that under normal #if statements, if the parameter is omitted from the template code, the output shows up by default. The solution might be to nest #if statements...
Original Code[edit source]
{{#if: {{{e4}}} | [[File:{{{e4}}}-icon.png|frameless|100px]] | }}
Solution Attempt[edit source]
Reminder: {{#if: string | output if string | blank if no string}} {{#if: {{#if: {{{e4}}} | {{{e4}}} | }} | [[File:{{{e4}}}-icon.png|frameless|100px]] | }}
Verdict: doesn't work... So then I combined the two extra parameters into an extra parameter and that seemed to work.
Event Template Work[edit source]
Infobox[edit source]
- Name of Event
- Banner
- Duration (Start/End Dates)
- Event Type (L / M / B / T)
- Gacha Banner
- Name of Gacha
{event banner}
name of event | |
type | start - end |
{gacha banner}
name of gacha |
First Draft[edit source]
<includeonly>{|class="infobox" style="width:22em; background:#fff6d9; text-align:center; font-size:95%; font-family:arial;" cellpadding="3" align="right" ! align="center"; bgcolor="#ffc0c0" | {{PAGENAME}} |- | align="center" | [[File:{{{banner}}}.png|320px]] |- | {| width="100%" border="0" style="text-align:left;" |- | ''Start'': || {{{start|?}}} |- | ''End'': || {{{end|?}}} |- | ''Type'': || {{{type|?}}} |- |} |- ! align="center"; bgcolor="#ffc0c0" | '''Related Gacha''' |- | align="center" | {{#if: {{{g-banner|}}} | [[File:{{{g-banner}}}.png|frameless|center]] | ''(none)''}} |- | <div style="text-align:center;">{{{gacha}}}</div> |} </includeonly>
Content[edit source]
- Featured Idols (GET Requirements)
- Mark off Burst Appeals
- Story
- Magazine Chapters
- Notes and Trivia
- Daily Log-In Bonus
- Ranking Rewards
- Individual
- Team
- Point Rewards
- Live Rewards
- Conversation Lines
- (Bingo Panels?)
Chronology Template[edit source]
←Previous | Current | Next→ |
Event | Event | Event |
Gacha | Gacha | Gacha |
Countdown Test[edit source]
Main Page Table Replacement[edit source]
In the style of Project iM@S.
Current Events | Idols and Units |
---|---|
(event banner)
(event type icon) Event name Countdown timer (gacha banner) Gacha name Countdown timer (idol contest banner) Gacha name: Idol Countdown timer |
|
My Desk | |
Idol
Unit
Work
Training
Story
| |
External Links | |
|
Tt template test[edit source]
Regular text
Regular text
with a line break
<span class="explain" title="Test
Line break">Regular text
with a line break
CardData Template testing[edit source]
Template:CardData[edit source]
[Card Title] Idol Name (JPN) | |||
---|---|---|---|
[Card Title] Idol Name (ENG) | |||
N | N+ | ||
[image 320x400px] | [image 320x400px] | ||
jpn text
eng text |
jpn text
eng text | ||
Vocal | X00/MM:X00 | Vocal | MMM:X00 |
Dance | X00/MM:X00 | Dance | MMM:X00 |
Visual | X00/MM:X00 | Visual | MMM:X00 |
編成値
Usage Cost |
X | 編成値
Usage Cost |
X |
移籍金
Transfer Reward |
X00 | 移籍金
Transfer Reward |
X00 |
特技
Skill |
jpn text
eng text |
特技
Skill |
jpn text
eng text |
効果
Effect |
jpn text
eng text |
効果
Effect |
jpn text
eng text |
*Notes on obtaining card. | |||
→ Card Conversations |
Template:CardData+[edit source]
To be used for special SR+ without an SR card.
[Card Title] Idol Name (JPN) | |
---|---|
Card Title] Idol Name (ENG) | |
SR+ | |
[image 320x400px] | |
jpn text
eng text | |
Vocal | X00/MM:X00 |
Dance | X00/MM:X00 |
Visual | X00/MM:X00 |
編成値
Usage Cost |
X |
移籍金
Transfer Reward |
X00 |
特技
Skill |
jpn text
eng text |
効果
Effect |
jpn text
eng text |
*Notes on obtaining card. | |
→ Card Conversations |
Card Data #if Statements[edit source]
Original Code[edit source]
|- <!--Image--> | colspan="2" style="width: 320px;height: 400px;" |[[File:【{{{title-eng}}}】{{{idol-eng}}}.png|320px]] | colspan="2" style="width: 320px;height: 400px;" |[[File:【{{{title-eng}}}】{{{idol-eng}}}+.png|320px]]
Modified Code[edit source]
|- <!--Image--> | colspan="2" style="width: 320px;height: 400px;" |[[File:{{#if:{{{title-eng|}}}|【{{{title-eng}}}】}}{{{idol-eng}}}.png|320px]] | colspan="2" style="width: 320px;height: 400px;" |[[File:{{#if:{{{title-eng|}}}|【{{{title-eng}}}】}}{{{idol-eng}}}+.png|320px]]
IT WORKS
nesting for title-jpn/title-fgn parameters...
{{#if:{{{title-jpn|}}}|【{{tt|{{{title-jpn}}}|{{{title-fgn}}}}}】}}
IT FUCKING WORKS
Old Business Table[edit source]
Tab Examples[edit source]
{{#tag:tabber| Main= [[File:{{PAGENAME}} 1.png|250px|link=]] {{!}}-{{!}} Unit= [[File:{{PAGENAME}} 2.png|250px]] {{!}}-{{!}} Manga= [[File:{{PAGENAME}} Manga Profile.png|250px]] {{!}}-{{!}} test= here is some content }}