m (add nav) |
(testing new badge template) |
||
Line 1: | Line 1: | ||
<noinclude>__NOINDEX__ | <noinclude>__NOINDEX__ | ||
{{User:ZASNK/Signature/s}} | {{User:ZASNK/Signature/s}} | ||
</noinclude>{{#if: | </noinclude><includeonly>|{{#if:{{{1}}}|- id="{{{1}}}"|- | ||
!colspan="8"{{!}}BELOW BADGE MISSING ID - PLEASE ADD | |||
{{!}}- | |||
}} | |||
}} | }} | ||
|style="text-align:center; background:{{{Icon_bg|}}}"|<!-- Icon_bg can customise Icon cell background | |||
-->{{#arraymap:{{{2}}}|,|@|[[File:@]]|<br><br>}}<!-- Format as image, separate using linebreaks | |||
--> | |||
|<span title="{{#if:a|{{{1}}}}}" tabindex="0"><!-- Wrap Name in a span with the id in a title. tabindex allows mobile clients to see id by tapping | |||
-->{{#if:a|{{{3}}}}}</span> | |||
|{{{4}}}<!-- BP -->|style="text-align:center; {{#if:{{{5}}}|{{{5}}}|background:#CCC}}}"|<!-- If no traits, dark cell | |||
-->{{#if:{{#pos:{{{5}}}|s hidden}}<!-- | |||
-->|<span tabindex="0" title="Hidden">🏆</span><br><!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Is hidden=true<!-- | |||
-->}}<!-- | |||
-->|<!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Is hidden=false<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{#pos:{{lc:{{{5}}}}}|is secret}}<!-- | |||
-->|<span tabindex="0" title="Secret">🔒</span><br><!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Is secret=true<!-- | |||
-->}}<!-- | |||
-->|<!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Is secret=false<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{#pos:{{{5}}}|as secret condition}}<!-- | |||
-->|<span tabindex="0" title="Secret condition">🤐</span><br><!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Has secret condition=true<!-- | |||
-->}}<!-- | |||
-->|<!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Has secret condition=false<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{#pos:{{{5}}}|as secret map}}<!-- | |||
-->|<span tabindex="0" title="Secret map">🗺</span><br><!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Has secret map=true<!-- | |||
-->}}<!-- | |||
-->|<!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Has secret map=false<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{{Parent|}}}<!-- | |||
-->|<span tabindex="0" title="Secret revealed by unlocking {{#show:YNOproject:Badges/{{#titleparts:{{PAGENAME}}|/|1}}#{{{Parent}}}|?Badge/Name|default=a previous badge}}">🔐</span><br><!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Has parent=true<!-- | |||
-->|Badge/Parent={{{Parent|}}}<!-- | |||
-->}}<!-- | |||
-->|<!-- | |||
-->{{#subobject:{{{1|}}}<!-- | |||
-->|Badge/Has parent=false<!-- | |||
-->}}<!-- | |||
-->}} | |||
|<!-- | |||
-->{{#if:{{{6|}}}<!-- | |||
-->|<!-- | |||
-->{{#arraymap:{{{6}}}<!-- Format and list locations as links using type | |||
-->|,<!-- | |||
-->|@<!-- | |||
-->|[[{{#titleparts:{{PAGENAME}}|/|1}}:@{{!}}{{#replace:@|:|#}}]]<!-- Replaces colon and space with a hash | |||
-->|,\s<!-- | |||
-->|and<!-- | |||
-->}}<!-- | |||
-->|style="background:#CCC"{{!}}<!-- | |||
-->}} | |||
|{{#if:{{{7}}}|{{{7}}}|style="background:#CCC"{{!}}}} | |||
|{{{8}}}<!-- Condition -->|{{#if:{{{9}}}|{{{9}}}|style="background:#CCC"{{!}}}} | |||
|{{{10}}}<!-- Authors should be separated by the usual & symbol -->|<!-- | |||
-->{{{Date|{{badge/Batch2Date|{{{11}}}}}}}}<br>Batch {{{11}}}<!-- | |||
-->{{#subobject:{{{1|}}} | |||
|Badge/ID = {{{1|}}} | |||
|Is part of game = {{#titleparts:{{PAGENAME}}|/|1}} | |||
|Badge/Icon = {{#arraymap:{{{2}}}|,|@|File:@|,}}|+sep=, | |||
|Badge/Name = {{{3}}} | |||
|Badge/BP = {{{4}}} | |||
|Badge/Location = {{#arraymap:{{{6}}}|,|@|{{{type|}}}:{{#explode:@|#|0}}|,}}|+sep=, | |||
|Badge/Description = {{{7}}} | |||
|Badge/Condition = {{{8}}} | |||
|Badge/Notes = {{{9}}} | |||
|Badge/Author = {{{10}}}|+sep=& | |||
|Badge/Date = {{{Date|{{badge/Batch2Date|{{{11}}}}}}}} | |||
|Badge/Batch = {{{11}}} | |||
}}<!-- | |||
--> | |||
<!-- Above is just a newline | |||
--></includeonly> |