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



YumeWiki
2,869Articles

User:ZASNK/Template: Difference between revisions

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: {{#ask: [[{{{1|}}}]] [[Category:Images]] }} | |<nowiki />
</noinclude><includeonly>|{{#if:{{{1}}}|- id="{{{1}}}"|-
{{#switch: {{{#userparam}}}
!colspan="8"{{!}}BELOW BADGE MISSING ID - PLEASE ADD
|images|visual|ListThumb=<nowiki />
{{!}}-
 
<div style="flex-basis:300px; padding:2px 0;"> <div style="display:inline-block; min-width:100px; text-align:center;">[[{{{1|}}}{{!}}100x100px]] </div> <div style="display:inline-block; width:190px; vertical-align:middle;">[[:{{{1|}}}|{{#explode:{{{1|}}}|:|1}}]]</div> </div>
|#default=*[[:{{{1|}}}]]
}}
}}
}}
|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&nbsp;{{{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>

Revision as of 04:13, 2 September 2024


User page Talk Sandbox Test Template Todo Signature Nav