틀:MRT/철도: 두 판 사이의 차이
< 틀:MRT
백괴게임>Whampoa 편집 요약 없음 |
imported>Regurus (rand함수 대체. 실수 죄송합니다.) |
||
1번째 줄: | 1번째 줄: | ||
<onlyinclude> | {{rand|<onlyinclude>{{rand|{{#vardefine:기본색|{{#switch:{{{1}}}|1=#aa9872|2=#0054a6|3=#ff9900|4=#bac429|5=#c8167e|6=#ccff33|7=#788097|8=#ea1a3e|9=#ffe6f2|10=#ffdd00|11=#151b54|12=#398b74|13=#a86141|14=#d28cd5|15=#1aabfa|16=#74afad|17=#b9cde5|18=#893a94|19=#dc5460|20=#9fa2ee|21=#2F8AAA|22=#fed5cc|23=#ea518a|201=#09b5cf|202=#dba697|203=#398e74|401=#4fbbbb|701=#93d500|801=#e10082|901=#ffe6f2|902=#00a1e9|903=#008B8B|1101=#4354c6|1102=#151b74|2001=#9fa2ee|2002=#9fa2ee|#default=#153090}}}}{{rand|<div style='width:23em;border:1px solid {{#var:기본색}};height:15.5em;text-align:center;position:relative;overflow:hidden;border-radius:10px;background:{{#if:{{{배경색}}}||#000000|{{{배경색}}}}}'><div style='width:100%;text-align:center;background-color:{{#var:기본색}};z-index:0;background-color:{{#var:기본색}};border-radius:10px>{{rand|{{색깔|'''{{MRT/철도/역명|{{{1}}}|이름}}'''|white}}</div>{{rand|{{rand|({{MRT/철도/역명|{{{1}}}|1}}, 시작 방향){{rand|{{rand|{{#ifexpr:{{{2}}}=0 or {{{2}}}=1||* {{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}-2}}}}}}{{rand|{{rand|{{#ifexpr:{{{2}}}=0||* {{ㅁ|../{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}-1}}}}|{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}-1}}}}}}|}}{{rand|{{rand|* <big>'''{{색깔|{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}}}}}'''|{{#var:기본색}}}}</big>{{rand|{{rand|{{#ifeq:{{{2}}}|종점||* {{ㅁ|../{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}+1}}}}|{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}+1}}}}}}}}{{rand|{{rand|{{#ifeq:{{{2}}}|종점||{{#ifeq:{{{2}}}||종점1|* {{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}+2}}}}}}}}{{rand|({{MRT/철도/역명|{{{1}}}|종점}}, 종점 방향){{rand|</div>{{rand|</onlyinclude>{{rand|{{rand|== 예시 =={{rand|{{MRT/철도|7|7}}{{rand|{{MRT/철도|11|15}}{{rand|{{MRT/철도|8|35}}{{MRT/철도|9|32}} | ||
{{#vardefine:기본색|{{#switch:{{{1}}}|1=#aa9872|2=#0054a6|3=#ff9900|4=#bac429|5=#c8167e|6=#ccff33|7=#788097|8=#ea1a3e|9=#ffe6f2|10=#ffdd00|11=#151b54|12=#398b74|13=#a86141|14=#d28cd5|15=#1aabfa|16=#74afad|17=#b9cde5|18=#893a94|19=#dc5460|20=#9fa2ee|21=#2F8AAA|22=#fed5cc|23=#ea518a|201=#09b5cf|202=#dba697|203=#398e74|401=#4fbbbb|701=#93d500|801=#e10082|901=#ffe6f2|902=#00a1e9|903=#008B8B|1101=#4354c6|1102=#151b74|2001=#9fa2ee|2002=#9fa2ee|#default=#153090}}}} | |||
<div style='width:23em;border:1px solid {{#var:기본색}};height:15.5em;text-align:center;position:relative;overflow:hidden;border-radius:10px;background:{{#if:{{{배경색}}}||#000000|{{{배경색}}}}}'><div style='width:100%;text-align:center;background-color:{{#var:기본색}};z-index:0;background-color:{{#var:기본색}};border-radius:10px> | |||
{{색깔|'''{{MRT/철도/역명|{{{1}}}|이름}}'''|white}}</div> | |||
({{MRT/철도/역명|{{{1}}}|1}}, 시작 방향) | |||
{{#ifexpr:{{{2}}}=0 or {{{2}}}=1||* {{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}-2}}}}}} | |||
{{#ifexpr:{{{2}}}=0||* {{ㅁ|../{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}-1}}}}|{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}-1}}}}}}|}} | |||
* <big>'''{{색깔|{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}}}}}'''|{{#var:기본색}}}}</big> | |||
{{#ifeq:{{{2}}}|종점||* {{ㅁ|../{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}+1}}}}|{{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}+1}}}}}}}} | |||
{{#ifeq:{{{2}}}|종점||{{#ifeq:{{{2}}}||종점1|* {{MRT/철도/역명|{{{1}}}|{{#expr:{{{2}}}+2}}}}}}}} | |||
({{MRT/철도/역명|{{{1}}}|종점}}, 종점 방향) | |||
</div> | |||
</onlyinclude> | |||
== 예시 == | |||
{{MRT/철도|7|7}} | |||
{{MRT/철도|11|15}} | |||
{{MRT/철도|8|35}} | |||
{{MRT/철도|9|32}} |
2020년 8월 26일 (수) 16:26 판
{{rand|{{rand|{{rand|
{{rand|{{rand|{{rand|== 예시 =={{rand|{{rand|{{rand|
{{rand|{{rand|{{rand|{{rand|
{{rand|{{rand|{{rand|{{rand|
{{rand|{{rand|{{rand|
{{rand|