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

Usuario:Stargazer/General Testing

De La Coppermind
Ir a la navegación Ir a la búsqueda






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.