FlightGear wiki:Village pump: Difference between revisions

Jump to navigation Jump to search
→‎Meta template and templates for commonly used logotypes and icons: Did Hooray mean both logotypes and icons? Some ideas and advice.
(→‎Meta template and templates for commonly used logotypes and icons: Did Hooray mean both logotypes and icons? Some ideas and advice.)
Line 27: Line 27:


—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 13:04, 15 March 2020 (EDT)
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 13:04, 15 March 2020 (EDT)
== Meta template and templates for commonly used logotypes and icons ==
Through a placeholder page (ugh!) and a edit summary Hooray suggested making a template for commonly used logotypes.
{{cquote|placeholder/stub for all sorts of wiki related logos that may need to be updated over time, but that are referenced on multiple pages - so that we don't need to edit each and every page here.|2=[http://wiki.flightgear.org/index.php?title=Template:Logo&oldid=123306 Hooray, 11 April 2020‎, 08:04]}}
{{cquote|@Johan: could use your help with this, unless I can write the heuristics in Php or JavaScript ;-)|Hooray, 11 April 2020‎, 08:04}}
I would guess you also intend it to be used for icons as well, for example the [[:Category:Ready icons|ready icons]]?  Logotype/icon templates might not be a bad idea.  Less typing is almost always good.
{{tl|logo}} should probably be a meta template, a template used by other templates in this case by logotype templates.  Meta templates are pretty common on MediaWiki wikis.
Essentially, there could be a set of logotype and icon templates, for example {{tl|Compositor logo}}, {{tl|FGInterface logo}}, {{tl|Air refueling ready icon}} etc, that pass the image for the logotype, an alt text (for accessibility and when the image is not shown, for example due to browser settings) and a link to a relevant wiki page to {{tl|logo}}.  Possibly also optional parameters like other sizes etc.  The meta template would then add the boilerplate stuff around that and set the size.
I would advise that having a suffix indicating the type of template, for example ''logo'', ''icon'' like mentioned above or ''navigation'' (for navigation boxes), in essence having less ambiguous names, is generally a good idea.
I should mention that I am generally against placeholder pages.
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 06:44, 12 April 2020 (EDT)

Navigation menu