Cosmere symbol.svg
Aon Rao.svg
Ettmetal.svg
Threnody icon.svg
Drominad icon.svg
Stormlight Decal Swords.svg
Soulstamp.png
Nalthis Icon.svg
White sand.svg

Diferencia entre revisiones de «Usuario:Stargazer/General Testing»

De La Coppermind
Ir a la navegación Ir a la búsqueda
m (Better than hitting show preview on the Warbreaker one)
m (Texto reemplazado: «lorem ipsum» por «testing»)
 
(No se muestran 38 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
<indicator name=cosmere >[[file: cosmere symbol.svg|x40px|link=cosmere]]</indicator>
<indicator name=series-elantris >[[File: Aon Rao.svg|x40px|link=Elantris]]</indicator>
<indicator name=series-mistborn >[[File: Ettmetal.svg|x40px|link=Mistborn_(series)]]</indicator>
<indicator name=series-sfs >[[File: Threnody icon.svg|x50px|link=Shadows for Silence in the Forests of Hell]]</indicator>
<indicator name=series-sotd >[[File: Drominad_icon.svg|25px|link=Sixth of the Dusk]]</indicator>
<indicator name=series-tes >[[File: Soulstamp.png|x40px|link=The Emperor's Soul]]</indicator>
<indicator name=series-white_sand >[[File: White sand.svg|x40px|link=White Sand]]</indicator>
<indicator name=series-warbreaker >[[File: Nalthis Icon.svg|x36px|link=Warbreaker]]</indicator>
<indicator name=series-warbreaker >[[File: Nalthis Icon.svg|x36px|link=Warbreaker]]</indicator>
<indicator name=series-stormlight >[[File: Stormlight Decal Swords.svg|x40px|link=Stormlight Archive]]</indicator>
<indicator name=series-stormlight >[[File: Stormlight Decal Swords.svg|x40px|link=Stormlight Archive]]</indicator>
<indicator name=status ><span title='This article is still missing information' style='font-size: 2em;'>&#x25D2;</span></indicator>
<indicator name=series-mistborn >[[File: Ettmetal.svg|x40px|link=Mistborn_(series)]]</indicator>

<indicator name=series-elantris >[[File: Aon Rao.svg|x40px|link=Elantris]]</indicator>
testing


== Infobox Testing ==
{{infobox
<onlyinclude>{{infobox
|title={{{name|{{#ifeq:{{{italic-title|}}}|n|{{PAGENAME}}|''{{PAGENAME}}''}}|}}}
|title={{{name|{{#ifeq:{{{italic-title|}}}|n|{{PAGENAME}}|''{{PAGENAME}}''}}|}}}
|id=User:Stargazer/General Testing
|id=User:Stargazer/General Testing
Línea 28: Línea 37:


<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
}}<noinclude>
}}</onlyinclude>
'''Currently testing:''' Adding links to era parameters on infoboxes. This specific example is from the {{t|literature}} infobox, but it should be applicable to all infoboxes with such a parameter. Also made changes to make the page name and infobox title italicized. This feature would be added only to the {{t|literature}} and the {{t|book}} infoboxes.
'''Currently testing:''' Adding links to era parameters on infoboxes. This specific example is from the {{t|literature}} infobox, but it should be applicable to all infoboxes with such a parameter. Also made changes to make the page name and infobox title italicized. This feature would be added only to the {{t|literature}} and the {{t|book}} infoboxes.



Revisión actual - 00:20 5 dic 2023






testing

Infobox Testing

Stargazer/General Testing
Featured In {{{books}}}

Currently testing: Adding links to era parameters on infoboxes. This specific example is from the {{literature}} infobox, but it should be applicable to all infoboxes with such a parameter. Also made changes to make the page name and infobox title italicized. This feature would be added only to the {{literature}} and the {{book}} infoboxes.

Why? The era parameters forward to {{era}}, which will break if a link is passed. By changing the templates to automatically link, we can allow the infoboxes to still generate links to the era. The italics are because, well, books titles should be italicized.

What changed?
V. 0: {{#if:{{{era|}}} |{{row/kv| Created in |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}
V. 1: {{#if:{{{era|}}} |{{row/kv| Created in |[[{{{era}}}]]{{era/{{{era}}}|}}<!-- -->}}|}}
V. 2: {{#if:{{{era|}}} |{{row/kv| Created in |{{User:Stargazer|{{{era}}}}}<!-- -->}}|}}
A lot, now. There's a revised {{era}} at the top of my actual user page that defines valid eras, modeled off of {{artist-license}}. That now feeds into this template (and would do so for all infoboxes, while also auto-generating the links.

Italic title code:
|title={{{User:Stargazer/General Testing|{{PAGENAME}}|}}} became
|title={{{name|{{#ifeq:{{{italic-title|}}}|n|{{PAGENAME}}|''{{PAGENAME}}''}}|}}}

Added line <includeonly>{{#ifeq:{{{italic-title|}}}|n||{{DISPLAYTITLE:''{{PAGENAME}}''}}}}</includeonly>

So, if italic-title=n is passed, the page name and infobox title are not italicized. This is needed for pages like The Way of Kings (in-world), where the whole title should not be italicized. These pages should manually be given, for example, {{DISPLAYTITLE:''The Way of Kings'' (in-world)}} (outside the infobox) and |name=''The Way of Kings'' (in the infobox).


Book name
Created in Classical Scadrial
Featured In {{{books}}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla non sapien urna. In aliquam accumsan risus ac placerat. Sed sollicitudin finibus mi ac ultrices. Curabitur porta, lectus non scelerisque varius, neque turpis iaculis augue, pretium hendrerit purus leo non arcu. Aenean mattis nisl id orci viverra suscipit. Sed nec gravida orci. Sed in luctus ex. In iaculis sollicitudin condimentum. Quisque non sodales diam, eget fermentum mi.

In sit amet libero sed felis aliquam imperdiet. Cras eu blandit velit. Aenean pretium, quam placerat cursus rutrum, elit augue maximus velit, et posuere odio augue at mauris. Curabitur quis posuere magna. Nulla at nibh sit amet dui rutrum tempor at non leo. Aenean auctor velit volutpat, volutpat nisl eu, condimentum nulla. Pellentesque mollis, erat ac pulvinar congue, metus mauris gravida erat, in viverra magna mi quis odio. Fusce consequat finibus lorem, sed accumsan est tincidunt sed. In dictum blandit orci. Aenean gravida aliquet massa, ac tincidunt enim tincidunt posuere. Nunc accumsan nulla ex, et accumsan risus iaculis nec.