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

Ir a la navegación Ir a la búsqueda
Should work like the artist template does now
(Testing to make era parameters on infobox pages into links)
 
(Should work like the artist template does now)
|id=User:Stargazer/General Testing
|1=
{{#if:{{{era|}}} |{{row/kv| Created in |[[{{{era}}}]]{{era/User:Stargazer|{{{era}}}|}}<!-- -->}}|}}
}}<noinclude>
'''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.
 
'''What changed?'''<br />
OriginalV. 0: <code><nowiki>{{#if:{{{era|}}} |{{row/kv| Created in |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}</nowiki></code><br />
NewV. 1: <code><nowiki>{{#if:{{{era|}}} |{{row/kv| Created in |[[{{{era}}}]]{{era/{{{era}}}|}}<!-- -->}}|}}</nowiki></code><br />
BracketsV. around first2: <code><nowiki>{{#if:{{{era|}}}</code> (after <code> |{{row/kv| Created in |{{User:Stargazer|{{{era}}}}}<!-- -->}}|}}</nowiki></code>)<br />
A lot, now. There's a revised {{t|era}} at the top of [[User:Stargazer|my actual user page]] that defines valid eras, modeled off of {{t|artist-license}}. That now feeds into this template (and would do so for all infoboxes, while also auto-generating the links.
 
<!-- Actualy infobox test -->

Menú de navegación